RE: raid1 disk format?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux