HYPHENS in Hostnames......a bad thing.....?

Kernels & Hardware, configuring network, installing services

HYPHENS in Hostnames......a bad thing.....?

Postby OHPRG » 2018-05-16 02:15

So this isint really a question, more of a "discovery" if you will.....

It seems that Debian (maybe other distros too..?) add a HYPHEN to the name when creating Volume Groups.....ie <Computer-1> becomes
<Computer--1-vg-root>...(note the DOUBLE dash after "Computer").....

Which tends to really mess things up...IF you try and CHANGE the Hostname, which come to find out is not as cut and dried as some make it sound.you will find yourself in a busybox if your lucky, at which point you had better know your way around vi.

HINT: Check in /etc/fstab for the proper nomenclature......6hrs down the rabbit hole today to figure this one out....
OHPRG
 
Posts: 1
Joined: 2018-05-16 01:25

Re: HYPHENS in Hostnames......a bad thing.....?

Postby p.H » 2018-05-16 10:18

Are you talking about hostnames or volume group names ? They have nothing to do with each other.

Hyphens in hostnames are perfectly fine.

LVM doubles hyhens in volume group and logical volume names when combining them into the /dev/mapper/vg-lv device name (actually a symlink to the real device /dev/dm-N), in order to differentiate them from the hyphen used to separate the volume group and the logical volume.
Bottom line : avoid hyphens in volume group and logical volume names.
p.H
 
Posts: 373
Joined: 2017-09-17 07:12


Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable