[BlueOnyx:17637] Re: Raid1 issue

Tom wcstaff at webcoast.com
Wed May 20 12:51:51 -05 2015


> Here's a how-to that can help you:
> https://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array
> 
> Be very careful, of course, when you're working with partitions.  The 
> old woodworking adage "measure twice, cut once" should apply here!
> 
followed the instructions from the link you specified. Was able to get rid 
of all partitions on new drive. 
"[root at ns ~]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda1[1]
      819136 blocks super 1.0 [2/1] [_U]

md1 : active raid1 sda2[1]
      243188736 blocks super 1.1 [2/1] [_U]
      bitmap: 2/2 pages [8KB], 65536KB chunk

unused devices: <none>
"
Rebooted and ran sfdisk -d /dev/sda | sfdisk /dev/sdb and get the 
following. I tried using -f and --force and get the exact same results. 
Should I manually fdisk the new disk?
"
[root at ns ~]# sfdisk -d /dev/sda | sfdisk /dev/sdb
Checking that no-one is using this disk right now ...
OK

Disk /dev/sdb: 38913 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/sdb1          0       -       0          0    0  Empty
/dev/sdb2          0       -       0          0    0  Empty
/dev/sdb3          0       -       0          0    0  Empty
/dev/sdb4          0       -       0          0    0  Empty
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sdb1   *      2048   1640447    1638400  fd  Linux raid autodetect
/dev/sdb2       1640448 488280063  486639616  fd  Linux raid autodetect
/dev/sdb3             0         -          0   0  Empty
/dev/sdb4             0         -          0   0  Empty
Warning: partition 1 does not end at a cylinder boundary

sfdisk: I don't like these partitions - nothing changed.
(If you really want this, use the --force option.)
"
Thanks
Tom





More information about the Blueonyx mailing list