Dostal jsem stoj po jednom expertovi,
na stroji chcipl patrne raid, z prvniho disku se neda cist, zustalo jen sdb, system bezi.
Rad bych obnovil raid na dalsi disk, bez restartu nicmene narazil jsem na:
A Fail event had been detected on md device /dev/md126.
It could be related to component device /dev/sda.
Faithfully yours, etc.
P.S. The /proc/mdstat file currently contains the following:
Personalities : [raid1]
md126 : active raid1 sda[1](F) sdb[0]
488383488 blocks super external:/md127/0 [2/1] [_U]
---------------------------------------------------
dd if=/dev/sda of=/dev/null bs=1M
dd: error reading ‘/dev/sda’: Input/output error
---------------------------------------------------
#sfdisk -d /dev/sdb |sfdisk /dev/sdg
sfdisk: Checking that no-one is using this disk right now ...
sfdisk: OK
Disk /dev/sdg: 60801 cylinders, 255 heads, 63 sectors/track
Old situation:
Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdg1 * 0+ 60799 60800- 488375968+ 7 HPFS/NTFS/exFAT
/dev/sdg2 0 - 0 0 0 Empty
/dev/sdg3 0 - 0 0 0 Empty
/dev/sdg4 0 - 0 0 0 Empty
New situation:
Units: sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/sdg1 1 976766975 976766975 ee GPT
/dev/sdg2 0 - 0 0 Empty
/dev/sdg3 0 - 0 0 Empty
/dev/sdg4 0 - 0 0 Empty
sfdisk: Warning: partition 1 does not end at a cylinder boundary
sfdisk: Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table
---------------------------------------------------
Re-reading the partition table ...
sda 8:0 0 465.8G 0 disk
sdb 8:16 0 465.8G 0 disk
└─md126 9:126 0 465.8G 0 raid1
├─md126p1 259:0 0 200M 0 md /boot/efi
├─md126p2 259:1 0 500M 0 md /boot
└─md126p3 259:2 0 465.1G 0 md
├─fedora_root 253:0 0 50G 0 lvm /
├─fedora_swap 253:1 0 7.8G 0 lvm [SWAP]
└─fedora_home 253:2 0 407.3G 0 lvm /home
sdg 8:96 0 465.8G 0 disk
---------------------------------------------------
cat /proc/mdstat
Personalities : [raid1]
md126 : active raid1 sdb[0]
488383488 blocks super external:/md127/0 [2/1] [_U]
---------------------------------------------------
skoncil jsem na:
mdadm --add /dev/md126 /dev/sdg
mdadm: Cannot add disks to a 'member' array, perform this operation on the parent container
Mel jsem za to, ze raid je to proto, aby se za jizdy vymenil disk a jede se dal, pod linuxem patrne ne.
Nejake rady?
Data zatim zalohuji na druhy disk, reinstal a znovu vytvoreni pole se mi nechce, to asi radej ten linux zahodim a hodim na to bsd a zfs.