Difference between revisions of "lvm resize"

From thelinuxwiki
Jump to: navigation, search
(Created page with " lvdisplay /dev/mapper/root lvdisplay /dev/mapper/home vgdisplay lvdisplay ping 4.2.2.2 lveresize -L +40GB /dev/vg1/home lvresize -L +40GB /dev/vg1/home df -h resize2fs -p /...")
 
 
Line 3: Line 3:
  
 
lvdisplay /dev/mapper/root
 
lvdisplay /dev/mapper/root
 +
 
lvdisplay /dev/mapper/home
 
lvdisplay /dev/mapper/home
 +
 
vgdisplay
 
vgdisplay
 +
 
lvdisplay
 
lvdisplay
 +
 
ping 4.2.2.2
 
ping 4.2.2.2
 +
 
lveresize -L +40GB /dev/vg1/home
 
lveresize -L +40GB /dev/vg1/home
 +
 
lvresize -L +40GB /dev/vg1/home
 
lvresize -L +40GB /dev/vg1/home
 +
 
df -h
 
df -h
 +
 
resize2fs -p /dev/mapper/crypthome
 
resize2fs -p /dev/mapper/crypthome
 +
 
resize2fs -p /dev/mapper/home-home
 
resize2fs -p /dev/mapper/home-home
 +
 
resize2fs -p /dev/mapper/crypthome
 
resize2fs -p /dev/mapper/crypthome
 +
 
cfdisk /dev/mapper/crypthome
 
cfdisk /dev/mapper/crypthome
 +
 
e2fsck -f /dev/mapper/crypthome
 
e2fsck -f /dev/mapper/crypthome
cd /
+
 
 +
 
 
vgdisplay
 
vgdisplay
 +
 
lvdisplay
 
lvdisplay
 +
 
lvresize --help
 
lvresize --help
 
lvextenn --help
 
lvextenn --help
 
lvextend --help
 
lvextend --help
 +
 
cat /etc/fstab
 
cat /etc/fstab
 +
 
umount /dev/mapper/crypthome
 
umount /dev/mapper/crypthome
 +
 
cd /
 
cd /
 +
 
umount /dev/mapper/crypthome
 
umount /dev/mapper/crypthome
 +
 
which vlc
 
which vlc
 +
 
resize2fs /dev/mapper/crypthome
 
resize2fs /dev/mapper/crypthome
 +
 
fdisk -l /dev/vgq
 
fdisk -l /dev/vgq
 +
 
fdisk -l /dev/vg1
 
fdisk -l /dev/vg1
 +
 
fdisk -l /dev/vg1/home
 
fdisk -l /dev/vg1/home
 +
 
df -h
 
df -h
 +
 
resize2fs /dev/mapper/crypthome
 
resize2fs /dev/mapper/crypthome

Latest revision as of 20:13, 17 January 2014


lvdisplay /dev/mapper/root

lvdisplay /dev/mapper/home

vgdisplay

lvdisplay

ping 4.2.2.2

lveresize -L +40GB /dev/vg1/home

lvresize -L +40GB /dev/vg1/home

df -h

resize2fs -p /dev/mapper/crypthome

resize2fs -p /dev/mapper/home-home

resize2fs -p /dev/mapper/crypthome

cfdisk /dev/mapper/crypthome

e2fsck -f /dev/mapper/crypthome


vgdisplay

lvdisplay

lvresize --help lvextenn --help lvextend --help

cat /etc/fstab

umount /dev/mapper/crypthome

cd /

umount /dev/mapper/crypthome

which vlc

resize2fs /dev/mapper/crypthome

fdisk -l /dev/vgq

fdisk -l /dev/vg1

fdisk -l /dev/vg1/home

df -h

resize2fs /dev/mapper/crypthome