On 10/24/2016 06:29 AM, Carlos E. R. wrote:
On 2016-10-24 12:23, Constant Brouerius van Nidek wrote:
With the last update or the one before I found that my 3 harddrives have been
renamed. What was sda, sdb and sdc is now sde,sdf and sdg.
I have done nothing with my drives and there seems to be no harm done but I
wonder if somebody else has had this change too.
Well, that's why we were told years ago to NOT use such names as sda,
sdb etc in our config files and scripts. They can change.
While I understand UUIDs, they are about as memorable as 64-charectore
passwords. I mean when you have
7wqSb}jAQR2ew)\g&lW^J|,ZE;M?HwMM{P^aL/T+z\(kT7E6rVl|-fw}xqW.,b6Q
LDTf=h'cD2DL',swpZzwL?*,zOa?j(4E`)w&Me9(FOkMP0[%+Zrq,^Gx)?+9Qz#$ShQ~h)9
it may be great for security (assuming you're not dealing with one of those
crippled sites that won't accept non-alpha or truncates to 8 characters), but
its not exactly memorable..
So I LABEL everything.
let's face it,
/dev/disk/by-label/BOOT
/dev/disk/by-label/HOME
/dev/disk/by-label/LOCAL
/dev/disk/by-label/ROOT
/dev/disk/by-label/SWAP
/dev/disk/by-label/TMP
/dev/disk/by-label/USERSHARE
are more intelligible than
/dev/sda1
/dev/dm-10
/dev/dm-6
/dev/dm-2
....
Or, for that matter, PCI bus address & sub-address or SCSI address.
Labelling drives is a little more than labelling partitions or file
systems. That's not to depreciate partition names, they are better than
Disklabel/1, Disklabel/2 ...
But then again, things like
scsi-SATA_WDC_WD10EACS-00Z_WD-WCASJ2195141
scsi-SATA_ST31000528AS_9VP4P4LN
scsi-SATA_OCZ-VECTOR_OCZ-0974C023I4P2G1B8
are immensely useful when trying to relate the s/w side to the hardware
side. Just not easy to remember!
But look at this way.
Ultimately all those names and labels are symlinks.
In /usr/lib/udev/rules.d you will find a file 60-persistent-storage.rules
which defines the way symlinks are dynamically set up on boot. All those
/dev/disk/{by-id,by-uuid,by-label,by-path} symlinks are set up.
Based on that you can add your own, local, custom set of symlinks for
the drives with /etc/udev/rules.d/60-persistent-storage.rules
One reason I use LVM is that it makes persistent names and mapping more
apparent. You can see mention of this, in passing, in the LVM
documentation.
--
Without friends no one would choose to live, though he had all other goods.
-- Aristotle (384 BC - 322 BC), Nichomachean Ethics
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-factory+owner@opensuse.org