one of our server's drive failed due to power cord issue.
however i plug it back and due to less experience with "parted" i messed
the whole thing.

i have 2tbx2 RAID 1 mirror and have 4x500GB partitions.

even i selected the right drive by "select command" and deleted the right
partition but parted did something worst though, i take it as my own
mistake as i am not that experience with parted i am usually using fdisk.

so the case is. i destroyed 1 partition data. and 3 are still save and
accessible. though i do had a backup of the first drive that way things are
still in my hand taking all the 3 partitions backup on another drive fore
safe side.

now the problem part is i can not re attach the fail drive partition with
RAID /dev/md[2,3,4] devices.


Personalities : [raid1]
md1 : active (auto-read-only) raid1 sdc1[0]
      488147776 blocks super 1.2 [2/1] [U_]

md4 : active raid1 sdb4[0]
      488670072 blocks super 1.2 [2/1] [U_]

md3 : active raid1 sdb3[0]
      488279928 blocks super 1.2 [2/1] [U_]

md2 : active raid1 sdb2[0]
      488279928 blocks super 1.2 [2/1] [U_]




(parted) select /dev/sdb
Using /dev/sdb
(parted) print
Model: ATA WDC WD20EARX-00P (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size   File system  Name      Flags
 1      1049kB  500GB   500GB               primary   raid
 2      500GB   1000GB  500GB               projects
 3      1000GB  1500GB  500GB               dump1
 4      1500GB  2000GB  500GB               dump2



root@nasbox:~# parted /dev/sdc
GNU Parted 2.3
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA WDC WD20EARX-00P (scsi)
Disk /dev/sdc: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size   File system  Name      Flags
 1      2097kB  500GB   500GB               a-backup
 2      500GB   1000GB  500GB               projects
 3      1000GB  1500GB  500GB               dump1
 4      1500GB  2000GB  500GB               dump2



please ignore partition 1 of both drives as i already messed them up.
however i can not make all other remaining partition back on track as RAID.

when i pass this command.

root@nasbox:~# mdadm --manage /dev/md2 --add /dev/sdc2
mdadm: add new device failed for /dev/sdc2 as 2: Invalid argument


i did googled but didn't found something near to my issue. please help.



Thanks
Myk

Reply via email to