Forum » Operacijski sistemi » kako restavrirati SW RAID 1
kako restavrirati SW RAID 1
srus ::
SW RAID 1 mi je delal brez težav, potem pa se mu je nekaj zmedlo. RAID je bil sestavljen iz dveh diskov, kar pa lahko razberem je, da sta sedaj oba diska označena kot spare (S), in da sdb ni več del RAID. Disk sdb je sicer v redu, z njim ni nič narobe.
Neuspešno sem poizkusil
# mdadm --add /dev/md0 /dev/sdb
mdadm: Cannot open /dev/sdb: Device or resource busy
Kakšna ideja za recovery?
Status je sledeč:
# cat /proc/mdstat
Personalities : [raid1]
md127 : active raid1 sda[0]
244137984 blocks super external:/md0/0 [2/1] [_U]
md0 : inactive sdb[1](S) sda[0](S)
4514 blocks super external:imsm
unused devices: none
# cat /etc/mdadm.conf
# mdadm.conf written out by anaconda
MAILADDR root
AUTO +imsm +1.x -all
ARRAY /dev/md0 UUID=abf0b79a:6411b37d:447a5363:84cd15d0
ARRAY /dev/md127 UUID=5526dbd9:3fce64b8:17335f91:8f928c66
# mdadm -D /dev/md0
/dev/md0:
Version : imsm
Raid Level : container
Total Devices : 2
Working Devices : 2
UUID : abf0b79a:6411b37d:447a5363:84cd15d0
Member Arrays :
Number Major Minor RaidDevice
0 8 0 - /dev/sda
1 8 16 - /dev/sdb
# mdadm -D /dev/md127
/dev/md127:
Container : /dev/md0, member 0
Raid Level : raid1
Array Size : 244137984 (232.83 GiB 250.00 GB)
Used Dev Size : 244138116 (232.83 GiB 250.00 GB)
Raid Devices : 2
Total Devices : 1
Update Time : Mon May 18 03:02:30 2015
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 5526dbd9:3fce64b8:17335f91:8f928c66
Number Major Minor RaidDevice State
0 0 0 0 removed
0 8 0 1 active sync /dev/sda
Izpis iz dmesg
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: Autoassembling MD Raid
md: md0 stopped.
md: bind sda
md: bind sdb
dracut: mdadm: Container /dev/md0 has been assembled with 2 drives (out of 2)
md: md127 stopped.
md: bind sda
md: raid1 personality registered for level 1
raid1: raid set md127 active with 1 out of 2 mirrors
md127: detected capacity change from 0 to 249997295616
md127: p1 p2
md: md127 switched to read-write mode.
dracut: mdadm: Started /dev/md127 with 1 devices
Neuspešno sem poizkusil
# mdadm --add /dev/md0 /dev/sdb
mdadm: Cannot open /dev/sdb: Device or resource busy
Kakšna ideja za recovery?
Status je sledeč:
# cat /proc/mdstat
Personalities : [raid1]
md127 : active raid1 sda[0]
244137984 blocks super external:/md0/0 [2/1] [_U]
md0 : inactive sdb[1](S) sda[0](S)
4514 blocks super external:imsm
unused devices: none
# cat /etc/mdadm.conf
# mdadm.conf written out by anaconda
MAILADDR root
AUTO +imsm +1.x -all
ARRAY /dev/md0 UUID=abf0b79a:6411b37d:447a5363:84cd15d0
ARRAY /dev/md127 UUID=5526dbd9:3fce64b8:17335f91:8f928c66
# mdadm -D /dev/md0
/dev/md0:
Version : imsm
Raid Level : container
Total Devices : 2
Working Devices : 2
UUID : abf0b79a:6411b37d:447a5363:84cd15d0
Member Arrays :
Number Major Minor RaidDevice
0 8 0 - /dev/sda
1 8 16 - /dev/sdb
# mdadm -D /dev/md127
/dev/md127:
Container : /dev/md0, member 0
Raid Level : raid1
Array Size : 244137984 (232.83 GiB 250.00 GB)
Used Dev Size : 244138116 (232.83 GiB 250.00 GB)
Raid Devices : 2
Total Devices : 1
Update Time : Mon May 18 03:02:30 2015
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 5526dbd9:3fce64b8:17335f91:8f928c66
Number Major Minor RaidDevice State
0 0 0 0 removed
0 8 0 1 active sync /dev/sda
Izpis iz dmesg
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: Autoassembling MD Raid
md: md0 stopped.
md: bind sda
md: bind sdb
dracut: mdadm: Container /dev/md0 has been assembled with 2 drives (out of 2)
md: md127 stopped.
md: bind sda
md: raid1 personality registered for level 1
raid1: raid set md127 active with 1 out of 2 mirrors
md127: detected capacity change from 0 to 249997295616
md127: p1 p2
md: md127 switched to read-write mode.
dracut: mdadm: Started /dev/md127 with 1 devices
zee ::
potem pa se mu je nekaj zmedlo.
Si lahko bolj natancen? Katera distribucija? Kaj si pocel, ko se je pojavila napaka?
zee
Linux: Be Root, Windows: Re Boot
Giant Amazon and Google Compute Cloud in the Sky.
Linux: Be Root, Windows: Re Boot
Giant Amazon and Google Compute Cloud in the Sky.
srus ::
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | MBWE-WL 1 TB nadgradnja na 2 TBOddelek: Pomoč in nasveti | 2103 (1729) | sas084 |
» | Software raid 1 (strani: 1 2 )Oddelek: Pomoč in nasveti | 11707 (10849) | uporabniik |
» | [Ubuntu] SambaOddelek: Programska oprema | 1843 (1633) | black ice |
» | Končno Linux podpora za pisanje na NTFS (strani: 1 2 )Oddelek: Novice / Ostala programska oprema | 8736 (5740) | desperados |
» | [ Linux ] RAID problem ...Oddelek: Operacijski sistemi | 1444 (1370) | kekz |