README_RAID.TXT unexpectedly clones disk identifier
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
README_RAID.TXT unexpectedly clones disk identifier
The command provided for convenience to clone partitions of member disks:
Code:
Now that /dev/sda is partitioned as appropriate, copy the partitions to all
the other drives to be used in your RAID arrays.
An easy way to do this is:
sfdisk -d /dev/sda | sfdisk --Linux /dev/sdb
This will destroy all partitions on /dev/sdb, and replicate /dev/sda's
partition setup onto it.
also clones the disk identifier, which causes management problems. It would be nice to add a command here to reset the disk identifier to some other random value, or just don't clone that.
AFAIK that sfdisk command just copies the MBR partition table in the first block of the disk, which does not contain any identifiers. It will not work for GPT disks. Please explain what identifier you are seeing.
I was wrong, Looks like there can be an identifier in the MBR. It seems totally unexpected that copying the partition table would also copy the identifier. Seems like a bug in sfidsk as it's not stated on the sfdisk man page.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.