Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

lvm question

23 views
Skip to first unread message

rvae...@gmail.com

unread,
Jul 30, 2012, 2:12:07 PM7/30/12
to
I have already a file system set up on a server like this:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/Vol-root
9.7G 2.8G 6.5G 31% /
/dev/mapper/Vol-varlv
3.9G 691M 3.1G 19% /var
/dev/mapper/Vol-tmplv
3.9G 137M 3.6G 4% /tmp
/dev/mapper/Vol-optlv
13G 9.9G 1.9G 85% /opt
/dev/mapper/Vol-homelv
992M 34M 908M 4% /home
/dev/vda1 487M 31M 431M 7% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm


I wanted to mount /usr using LVM. I wanted to add another volume-group.
Any suggestions?

F. Michael Orr

unread,
Aug 1, 2012, 11:28:07 AM8/1/12
to
Create the new volume group. Create an LV in the new VG of appropriate
size to hold the /usr data, & 'mke2fs' it. Boot the machine from a LiveCD
or installation media, mount the appropriate LVs (/ & the new /usr), &
'cpio' the data from the /usr subdir to the new LV. Rename /usr to
something else, create an empty '/usr'. Edit /etc/fstab to mount /usr at
boot. Boot the machine normally. When you're sure everything is OK,
delete the old /usr subdir.

rvae...@gmail.com

unread,
Aug 3, 2012, 10:38:57 AM8/3/12
to
thanks
0 new messages