Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > lvm question
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 2nd August 17:23
External User
 
Posts: 1
Default lvm question



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?
  Reply With Quote


  sponsored links


2 2nd August 21:40
f. michael orr
External User
 
Posts: 1
Default lvm question



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.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666