Archiwa tagu: raid

IBM RAID firmware upgrade (x3650, HS21 i inne)

Jeśli RAID nie widzi dużych dysków (np. 2TB) to trzeba uaktualnić firmware sterownika RAID. Firmware jest do pobrania ze strony ibm.com w postaci 4 dyskietek 1.44MB. Trzeba wszystkie zgrać do wspólnego obrazu na pamięć USB razem np. z FreeDOSem.

dd if=FreeDOS-1.0-USB-Boot.img of=/dev/sdb
partprobe
mount /dev/sdb1 /mnt

podmontowujemy po kolej dyskietki i kopiujemy zawartość:
mount -o loop ibm_fw_aacraid-8k-1_5.2.0.15407_anyos_i386.img /mnt2
cp /mnt2/a* /mnt
umount /mnt2

Na koniec odmontowujemy pamięć USB
umount /mnt
sync

Docelowo w katalogu mamy:
-rwxr-xr-x 1 root root 193114 2007-09-21 afu.exe
-rwxr-xr-x 1 root root 643264 2011-08-04 AS481001.ufi
-rwxr-xr-x 1 root root 1454080 2011-08-04 as481002.ufi
-rwxr-xr-x 1 root root 1454080 2011-08-04 as481003.ufi
-rwxr-xr-x 1 root root 643264 2011-08-04 as481004.ufi
-rwxr-xr-x 1 root root 66945 2006-08-29 command.com
-rwxr-xr-x 1 root root 44889 2006-08-20 kernel.sys

Wkładamy pamięć USB do serwera, startuje nam FreeDOS:

FreeDOS kernel version 1.1.37w (Build 2037w-UNSTABLE, Aug 19 2006)
Kernel compatibility 7.10 – WATCOMC – FAT32 support

Z poziomu dosa musimy uruchomić program tak:
C:\>AFU UPDATE AS4810 /CALL

Po instalacji nowego firmware należy zrestartować serwer.

aktywacja LVM

mdadm –assemble /dev/md0 /dev/sdb1
mdadm: /dev/md0 has been started with 1 drive (out of 2).

pvscan
PV /dev/md0 VG host lvm2 [1,36 TB / 580,86 GB free]
Total: 1 [1,36 TB] / in use: 1 [1,36 TB] / in no VG: 0 [0 ]

vgscan
Reading all physical volumes. This may take a while…
Found volume group „host” using metadata type lvm2

cat /proc/mdstat
Personalities : [raid1]
md0 : active (auto-read-only) raid1 sdb1[1]
1465135936 blocks [2/1] [_U]

mdadm –readwrite /dev/md0

lvscan
inactive ‚/dev/host/swap’ [2,93 GB] inherit
inactive ‚/dev/host/root’ [29,30 GB] inherit
inactive ‚/dev/host/home’ [781,25 GB] inherit
inactive ‚/dev/host/tmp’ [2,93 GB] inherit

lvdisplay /dev/host/tmp
— Logical volume —
LV Name /dev/host/tmp
VG Name host
LV UUID xY3Q6E-3LNG-Qw49-UXMo-wryK-7Vm4-W2Aulh
LV Write Access read/write
LV Status NOT available
LV Size 2,93 GB
Current LE 750
Segments 1
Allocation inherit
Read ahead sectors auto

vgchange -a y host

ACTIVE ‚/dev/host/swap’ [2,93 GB] inherit
ACTIVE ‚/dev/host/root’ [29,30 GB] inherit
ACTIVE ‚/dev/host/home’ [781,25 GB] inherit
ACTIVE ‚/dev/host/tmp’ [2,93 GB] inherit

lvdisplay /dev/host/tmp

LV Name /dev/host/tmp
VG Name host
LV UUID xY3Q6E-3LNG-Qw49-UXMo-wryK-7Vm4-W2Aulh
LV Write Access read/write
LV Status available
# open 0
LV Size 2,93 GB
Current LE 750
Segments 1
Allocation inherit
Read ahead sectors auto
– currently set to 256
Block device 253:3

Po pracy:
lvchange -a n host
mdadm –stop /dev/md0