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

Re: Unpredictable drive naming with multiple SATA controllers



NN_il_Confusionario wrote:
On Tue, Mar 18, 2008 at 07:25:57PM -0700, agenkin@gmail.com wrote:
old disk.  The newly inserted disks will have a different UUID, and,
should we use UUIDs, the operation will require reconfiguring the host
to mount the new drives, which is a hassle.

You can use filesystem labels, they are easiser to configure on the
drives than uuids


I would agree with this. Since the disk being swapped in is defined as a replacement, and so assuming that it will have a new FS built on it, you would add the FS specific option to create a label. For example, if you're creating an ext3 FS, add '-L new-volume-label' to the command line, where the label name is the same as the name used for the original disk.

Your fstab entry would be:

 LABEL=new-volume-label  <mnt pnt> .....usual fstab stuff.....

Edit fstab once for all the disks, then every time mkfs is run, with the
relevant '-L value', the new disk will mount where the original one did.

--
Bob McGowan

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Reply to: