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....
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body,
but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming
‘Wow! What a Ride!”
User avatar
OHPRG
 
Posts: 12
Joined: 2018-05-16 01:25
Location: California, Orange County, USA

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: 424
Joined: 2017-09-17 07:12

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

Postby OHPRG » 2018-05-24 03:34

Correct I do mean volume group names, I am now suffering from a "mapper" issue that seems related I have another post about it which I am afraid i dont know how to link here but I will try and find a way....
As of right now the system is un usable....

this may do the trick:

viewtopic.php?f=30&t=137603
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body,
but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming
‘Wow! What a Ride!”
User avatar
OHPRG
 
Posts: 12
Joined: 2018-05-16 01:25
Location: California, Orange County, USA

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

Postby debiman » 2018-05-26 08:10

OHPRG wrote: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....

sounds like you took a wrong turn somewhere, borked your system, are angry and eager to spread the blame around...
in any case, there's no valid problem description here.
what messed up? what helped?
commands and their output, no paraphrasing.
please.
User avatar
debiman
 
Posts: 2586
Joined: 2013-03-12 07:18

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

Postby OHPRG » 2018-05-26 10:39

Please see:

viewtopic.php?f=30&t=137603&p=673821#p673821

My deepest apologies if I am using the forum incorrectly. I am new to this and may not be as proficient SIR as yourself, however I don't think that it is cause to reply angrily, as it could serve only to make some feel as if they don't belong. Which I think defeats the purpose of this forum, and leads some to think that the users here are arrogant and inflexible, which I am sure you are not.

I do try my best, to provide the best.

If not mistaken I do believe that on <2018-05-23 19:34 > I DID in fact directly state that I may have errantly posted in either the wrong location or in too many locations and left a link in that post to the other post with the troubleshooting commands and output, so that it COULD be referenced to if such were the case.

Thank you for your comment and insight to my issue and my continuing education.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body,
but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming
‘Wow! What a Ride!”
User avatar
OHPRG
 
Posts: 12
Joined: 2018-05-16 01:25
Location: California, Orange County, USA


Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable