Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Resize existing filesystem

pvs
  PV         VG   Fmt  Attr PSize   PFree
  /dev/sda3  rose lvm2 a-   144.85G 44.85G

lvm

lvm> lvs
  LV   VG   Attr   LSize  Origin Snap%  Move Log Copy%
  home rose -wi-ao 50.00G
  opt  rose -wi-ao 10.00G
  root rose -wi-ao 10.00G
  tmp  rose -wi-ao 10.00G
  var  rose -wi-ao 20.00G
lvm> lvresize -L +30G /dev/rose/home /dev/sda3
  Extending logical volume home to 80.00 GB
  Logical volume home successfully resized
lvm> quit
  Exiting.

resize_reiserfs -s +30G /dev/rose/home

df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/rose-home  80G   49G   32G  61% /home

using LVM on Live CD

here is a great howto getting LVM working.

what I did here was

aptitude install lvm2 dmsetup
modprobe dm-mod
pvscan
vgscan
vgchange -a y

and all the lvm's are active and mountable

  • No labels