|
From: Friedrich L. <fl...@fl...> - 2003-12-24 02:50:13
|
Bruce Smith wrote on 24.12.2003 03:34 MET: >>>>All LVs get mounted under /var when they're not "special". >>>>You get a list of all available LVs in this folder: >>>>/proc/lvm/VGs/devil-linux/LVs/ >>> >>>If we find a LV xyz in the VG devil-linux that is not listet >>>in /etc/sysconfig/lvmtab we try to create /var/xyz/ and mount >>>it there. Is that what you mean? >> >>Yes, it was my understanding that we exactly do this. > > > I can do that. So the only entries in the default lvmtab file are: > /home /opt & swap ??? Probably but why not put the standard LVs there too so the user has a place to lock at than to dig into the source of the script to find out where things get mounted. > How is /proc/lvm/VGs/devil-linux/LVs/ different than > /dev/devil-linux/ ? Or which is the best one to use? /proc/lvm/VGs/devil-linux/LVs/ is probably the cleaner way. Before a certain release of LVM it was not possible to get the info via that path, that's why I did stick with the "old" way when I did the current script. > You can mount disks on existing directories on the CD, you just can't > create new directories. (i.e. I can mount something under /mnt) > > So, if the directory doesn't already exist, try to create it. If it > can't be created then display an error. What I meant was if we have to creat a directory we might want to check first if the filesystem is read-only and display an error in this case. Can the mkdir fail because of something else? If not, then just checking if mkdir fails would do it too I think. -- MfG / Regards Friedrich Lobenstock ____________________________________________________________________ Friedrich Lobenstock Linux Services Lobenstock URL: http://www.lsl.at/ Email: fl...@fl... ____________________________________________________________________ |