on 6-10-2008 9:59 AM Ross S. W. Walker spake the following: > Les Mikesell wrote: > >> If you have a disk with several partitions set up as members of a raid1 >> md devices, can you make a dd image of that disk to replace its matching >> drive with identical partitions or are there differences between the >> mirrored partitions? > > you can 'dd' the MBR and then re-add the partitions to the raid for > resyncing with 'mdadm'. > > # dd if=/dev/sda of=/dev/sdb bs=512 count=1 > # mdadm /dev/md0 --add /dev/sdb1 > # mdadm /dev/md1 --add /dev/sdb2 > > If you want to really make sure you got everything you could dd the > whole first track with: > > # dd if=/dev/sda of=/dev/sdb bs=512 count=63 > > -Ross > Or sfdisk -d /dev/sdX | sfdisk /dev/sdY where x is source and y is the target. This will work across drives that have slight geometry differences. -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 258 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20080610/32f4c46e/attachment-0005.sig>