LVM

Frank DiPrete fdiprete at comcast.net
Mon Sep 22 20:52:38 EDT 2008



Bruce Labitt wrote:
> A while back I added a 1TB drive to my mythtv box.  My 500GB drive was 
> about full so I thought I'd lvm the 1TB drive onto the existing.  I did 
> not do it correctly apparently.  My system is only reporting the 
> original 500GB.  If, however, I open up the lvm gui I see a Volume Group 
> 00 that consists of sda and sdb?  with a total of 1.5TB?  It does not 
> look like anything is on the new drive.  How can I fix this.  My video 
> is on /mnt/store, I suppose that is the section that I would like to 
> migrate to the new drive?
> 
> Any suggestions?  Step away from the computer before I mess something up? 
> 

Nah - it just sounds like you didn't resize the logical volume and the 
file system. You just need to extend the logical volume that is 
/mnt/store (assuming that /mnt/store is on a logical volume), make it 
bigger, make the file system bigger, then remount it.

The hierarchy (from low to high)
disk partition
physical volume
volume group
logical volume
file system

so It sounds like you
1) installed the drive and partitioned it as type lvm
then using the gui
2) did a pvcreate on it
3) did a vgexpand to add the pv to the volume group

did you
4) do an lvextend to extend the size of the logical volume?
5) do a resize2fs to resize the file system to the extended logical volume?

if not(4) {
  use vgdisplay to see how much unused space is on your volume group;
  use lvextend -L +(space)G on the logical volume that is used for 
/mnt/store
  lvdisplay to check it;
}

if not(5) {
   unmount the partition;
   fsck it (resize2fs makes you do it anyway);
   resize2fs the logical volume partition
   mount it
}

If memory serves me the default for resize2fs is to extend to the end of 
the partition.

If I got the assumptions about your setup wrong let me know.

Can you post the results of
pvdisplay
vgdisplay
lvdisplay

and the content of fstab?



> Thanks,
> -Bruce
> 
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
> 
> 


More information about the gnhlug-discuss mailing list