View previous topic :: View next topic |
Author |
Message |
plate Bodhisattva
Joined: 25 Jul 2002 Posts: 1663 Location: Berlin
|
Posted: Sat Aug 10, 2002 1:35 pm Post subject: Chicken and egg problem with LVM |
|
|
It's either my faulty logic or lack of experience or both or worse: I've just added a second HDD to a stone-age desktop PC to alleviate the pressure on its legacy 1.5 GB drive that didn't have enough space left to emerge X... It's still not impressive, the new 2 GB disk that's now spinning inside that case is actually a leftover from my four year old notebook, and whatever I did, it doesn't make a 166 Mhz MMX and 64 MB RAM look any faster. Anywho, I'd love to span the root partition over both disks now, to which end I've a) compiled LVM support in the kernel and b) emerged the lvm-user apps.
Here's what's baking my noodle: I already have a very nice root partition, /dev/hda3, like I'm s'pposed to. If I pvcreate a physical volume LVM style on an existing partition to add to a volume group now, I'll lose all the data on that partition, says the book. If I create the volume group on /dev/hdb instead, I can't extend it over /dev/hda3 unless I pvcreate it, can I? No chicken, no egg, much less the reverse.
Anybody know a good way out of this? Will I have to move the entire root partition out of the way while I'm redecorating my disk space? Can I do that at all, I mean, what happens to all the devices in that case? I could always break up /dev/hdb into chunks of /var and /usr and /home and mount those individually, but the whole LVM idea is that I wanted to avoid fixed partition sizes.
Really grateful for any idea you might have. |
|
Back to top |
|
|
Cyrix n00b
Joined: 05 Jul 2002 Posts: 3 Location: Hamburg
|
Posted: Wed Aug 14, 2002 2:34 pm Post subject: |
|
|
As of the LVM documentation it is not recommended to use LVM for the root partition. It is easier and safer to use a fixed root-partition.
I would suggest you to use LVM for other partitions and to use symlinks if you run into space problems.
In order to emerge X you just need to throw /usr and /var/tmp to your LVM partition. _________________ Wo ein Willis ist, ist auch ein Weg. |
|
Back to top |
|
|
plate Bodhisattva
Joined: 25 Jul 2002 Posts: 1663 Location: Berlin
|
Posted: Wed Aug 14, 2002 2:59 pm Post subject: |
|
|
Cyrix wrote: | I would suggest you to use LVM for other partitions and to use symlinks if you run into space problems. |
Eventually, that's what I did, and moving /var to the second disk made X compile nicely, but it's not solving my initial problem. I now have a 1.5 GB root partition (and would only need about half that, I suppose) because I couldn't make the LVM span the remaining space on the first disk without fear of kicking my root partition into oblivion. That's really what it was, lack of audacity to resize /dev/hda3 and add a new partition to put under the LVM umbrella. Anyway, thanks for your help, symlinks are a good way of avoiding to go back and try my luck with parted some day when I really run out of space... |
|
Back to top |
|
|
Cyrix n00b
Joined: 05 Jul 2002 Posts: 3 Location: Hamburg
|
Posted: Wed Aug 14, 2002 8:02 pm Post subject: |
|
|
If you really want root on a Logical Volume, you should make a complete backup of your root-system on CD or another Systems HD and consult
http://www.sistina.com/lvm_howtos/lvm_howto/Converting_a_root_filesys.html
(but read the NOTE carefully !)
I'd rather suggest you to make a full backup and rearrange your partitions then.
Use 512 MB for / and the rest under a new partition which can be "put under the LVM umbrella" as you would call it.
I personally fear the complications for system-updates when using lvm for / because the easiness of this task brought me to gentoo and before it to debian...
But in the end the choice is up to you ! _________________ Wo ein Willis ist, ist auch ein Weg. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|