Posts for: #Lvm

growing a live LVM volume

I have an LVM volume, with xfs on it, that is almost full:

$ df /scratch -h
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/vg-scratch    180G  175G  5.4G  98% /scratch

$ sudo lvdisplay /dev/mapper/vg-scratch
...
  LV Size                180.00 GB
...

But I have some more space in the physical volume. Let’s grow the logical volume.

Read more →

LVM2 on RAID1 mirror

This is part of my [xen box setup]{rtag/xen-box-setup} “series”. :)

I’ve installed debian on a RAID1 device, /dev/md0. This takes up a fraction of the disk, and my plan is to create a large LVM2 group on another RAID1 that I can use to dynamically create devices for my xen domains.

Read more →