>>>>> On Thu, 24 Sep 2009 10:47:50 +0200, Darshaka Pathirana <d...@syn-net.org> 
>>>>> said:

    > Is there a way to set the vg-name same as the current hostname?
    > Something like this (which does NOT work):

    > ,----
    > | disk_config sda bootable:1 fstabkey:uuid
    > | primary  /boot         250       ext3  rw
    > | primary  -             1500-       -     -
    > | disk_config lvm
    > | vg $HOSTNAME sda2
    > | $HOSTNAME-root  /       250-      ext3  rw,errors=remount-ro
    > | $HOSTNAME-swap  swap    250-1000  swap  sw
    > | $HOSTNAME-var   /var    500-2G    ext3  rw createopts="-m15" 
tuneopts="-c0 -i0"
    > | $HOSTNAME-tmp   /tmp    250-1000  ext3  rw createopts="-m1"  
tuneopts="-c0 -i0"
    > | $HOSTNAME-usr   /usr    500-3G    ext3  rw                   
tuneopts="-c0 -i0"
    > | $HOSTNAME-home  /home   100-2G    ext3  rw,nosuid  createopts="-m1" 
tuneopts="-c0 -i10"
    > `----
You can write a hook that replaces $HOSTNAME with the current
hostname. This is the easiest way.

-- 
regards Thomas

Antwort per Email an