Since it's been over 5 weeks since you posted this, I think it's safe to jump in. -- It's not like I'm knocking your thread off the 0-reply list prematurely, or displacing better advice.
DISCLAIMER: I am just beginning to learn about LVM, getting ready to implement on a system for the 1st time.
Quote:
Originally Posted by ReachingFarr
This post isn't so much about a problem I'm having as it is about me trying to find a way to do something I would really like to do.
|
Quote:
Originally Posted by ReachingFarr
The situation is this: I have several disks all under LVM, and this LVM has a root partition, a swap partition and a lot of extra space. What I really want to do is have my /home and another directory /data share this space. The point of the /data directory is to put files I want to share there. The directory will be mounted by both SMB and NFS, and most likely shared via FTP.
|
"I have several disks all under LVM," i.e. PV's
"and this LVM " I don't think you're using "LVM" correctly here. I believe this is where you should be telling us about the arrangement of your Volume Groups (VG's) & the Logical Volumes (LV's) in them.
Quote:
Originally Posted by ReachingFarr
The problem with making two separate volumes is that I don't want to resize them every time one of them starts to grow beyond their allotted size. As well, the amount of data on either of them will probably fluctuate fairly rapidly.
|
To me, this sounds counter to one of the main advantages I have heard touted for LVM -- the ability to resize easily in the face of changing needs.
Quote:
Originally Posted by ReachingFarr
The other option I tried was with a single volume containing two directories that I `mount -o bind`ed at /home and /data. GNOME doesn't like this. As well, when I move a file it decides to re-write it instead of moving the inode pointer because it thinks /data and /home are two separate file systems.
|
What if you mounted the volume at "/V" (or "/.V"), wouldn't you then see /V/home & /V/data, which you could then symlink to /home and /data?
Quote:
Originally Posted by ReachingFarr
I don't make the whole thing my root because I don't want to lose all of my data when I upgrade. Having these directories separate allows me to simply format my root and leave my data alone when I re-install.
|
Makes sense to me.
Quote:
Originally Posted by ReachingFarr
What should I do?
|
[Resisting the urge to make a flip response like 'punt'
]
Hope this is some help.