[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

split root logical volume to var tmp home etc



Hi, debian list,
I had a lenny installation that has the lvm setup done by the lenny
installer, I knew nothing about lvm then so it ended up with a single
root lv.

Now I would like to follow other list member's advice to have separate
LVs for var, tmp, home etc. But I don't know how to perform the
operation to make it happen, I have skimmed lvm howto but I don't see a
chapter detailing on this task.

Thanks for any pointers!

Here is my setup

Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/debian-root
                       50G   19G   28G  41% /
tmpfs                1008M     0 1008M   0% /lib/init/rw
udev                   10M   80K   10M   1% /dev
tmpfs                1008M     0 1008M   0% /dev/shm
/dev/sda1             228M   28M  189M  13% /boot

the harddrive is 250G

zhengquan@craig:/$ sudo pvs
  PV         VG     Fmt  Attr PSize   PFree
  /dev/sda2  debian lvm2 a-   249.80G 195.80G

zhengquan@craig:/$ sudo lvs
  LV   VG     Attr   LSize  Origin Snap%  Move Log Copy%  Convert
  root debian -wi-ao 50.00G
  swap debian -wi-ao  4.00G

zhengquan@craig:/$ sudo vgs
  VG     #PV #LV #SN Attr   VSize   VFree
  debian   1   2   0 wz--n- 249.80G 195.80G

there are only two LVs in root PV, the root lv is 50G and the sap lv is
4G. and the pv is 249.80G.  it has 195.80G free PEs.

-- 
Zhengquan


Reply to: