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

Re: LVM2, Debian, and changing the hostname



On Sat, Sep 27, 2008 at 03:08:11PM -0700, Jim McCloskey wrote:
> 
> I am about to migrate a small server to a new box. Some weeks ago I
> installed Lenny (amd64) on the new box and used a temporary hostname
> for it, planning on changing the hostname after the system had been
> tested and was ready to take the place of the existing machine. The
> installation used LVM2 (I'm very happy about that), but I have a
> niggling worry.
> 
> The device-names in /dev-mapper/ by convention include the system's
> hostname as one of their sub-parts:
> 
>   /dev/mapper/temporaryhostname-root /    
>   /dev/mapper/temporaryhostname-home /home
>   /dev/mapper/temporaryhostname-tmp /tmp 
>   /dev/mapper/temporaryhostname-usr /usr 
>   /dev/mapper/temporaryhostname-var /var 
>   /dev/mapper/temporaryhostname-swap_1 none
> 
> As far I can tell, this naming convention is irrelevant for all
> networking purposes and shouldn't cause a problem when the hostname
> and the mailname and so on are changed. But I haven't been able to
> *absolutely* reassure myself about this. Am I missing something?  Is
> there maybe a risk of creating confusion within LVM itself if there is
> a mismatch between the hostname and the name used in these device-file
> names?

why not use the names under /dev/<vgroupname>/<vgname>

I have a vg group call raid0 and a lvm on that vggroup called so I
access it via

/dev/raid0/tmp 

of just use labels !


> 
> Thanks very much for any advice,
> 
> Jim
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 

-- 
"To YOU I'm an atheist; to God, I'm the Loyal Opposition."
		-- Woody Allen

Attachment: signature.asc
Description: Digital signature


Reply to: