Skip to contentSkip to conversation

badiane: Problem

linux-lvm [email protected] 3 participants 3 messages Nov 1, 2001

lore
Share & tools
lore
#0 lore raw

I have created five volume groups (vg0 - vg4) to hold respectively /var, /home, /home/music, /usr, /usr/local.

I started with a 500MB / partition then created the pv, vg and lv. Now what I wanted to know is how to have the system reboot and have the partitions mounted properly since the lvm binary and library cannot be found properly. The libraries are in /usr/lib/lvm and should be in /lib and the binary in /sbin or /bin.

The install is from the debian binaries. I can't compile on my system without getting a seg fault (that's another story.) So I'm thinking that I would have to move the libraries to /lib and hope that the system will find them upon boot and proceed without errors.

I would like to know the proper way to do this.

Oh! I had mounted the lv's on temp mount points /var2/, /home2/ etc and copied the original's data over and umounted so that upon remount they would again be avail able.

Thanks in advance.

Badiane

#1 lore raw

On my redhat system, I had to build LVM into the kernel ... but I had to fix the Segmentation fault you talked about. Search the archives for that one ... it's a compiler issue.

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of [email protected]
Sent: Thursday, November 01, 2001 9:57 AM
To: [email protected]
Subject: [linux-lvm] badiane: Problem

I have created five volume groups (vg0 - vg4) to hold respectively /var, /home, /home/music, /usr, /usr/local.

I started with a 500MB / partition then created the pv, vg and lv. Now what I wanted to know is how to have the system reboot and have the partitions mounted properly since the lvm binary and library cannot be found properly. The libraries are in /usr/lib/lvm and should be in /lib and the binary in /sbin or /bin.

The install is from the debian binaries. I can't compile on my system without getting a seg fault (that's another story.) So I'm thinking that I would have to move the libraries to /lib and hope that the system will find them upon boot and proceed without errors.

I would like to know the proper way to do this.

Oh! I had mounted the lv's on temp mount points /var2/, /home2/ etc and copied the original's data over and umounted so that upon remount they would again be avail able.

Thanks in advance.

Badiane

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

#2 lore raw
In reply to [email protected]
Quoted 2 lines · On Nov 01, 2001 10:57 -0500, [email protected] wrote:

I have created five volume groups (vg0 - vg4) to hold respectively /var, /home, /home/music, /usr, /usr/local.

Just as an FYI - this is a very bad setup. You should have 1 (or maybe 2) VGs set up for these filesystems. For a normal system, having a single VG is far more flexible. You can then "share" all of the unused PEs and add them to whatever LV needs them. If you have separate VGs, then you are not much better off than having DOS partitions.

Quoted 3 lines

Oh! I had mounted the lv's on temp mount points /var2/, /home2/ etc and copied the original's data over and umounted so that upon remount they would again be avail able.

I would also suggest that you create these LVs as small as possible. On Debian in particular, you can have /usr almost 100% full, and only extend it as necessary to install new packages. Same with /home and /home/music - give yourself a "reasonable" amount of free space in each, and leave the rest unallocated, so you can add it where it is needed later.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/