Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


LVM Commands

Author:black - Tue Nov 7 11:24:34 2006

# Grow a file system:
SIZE=+220G
DEVICE=/dev/vg1/misc

lvextend -L${SIZE} ${DEVICE} && umount ${DEVICE} && e2fsck -f ${DEVICE} && resize2fs ${DEVICE} ; mount ${DEVICE}


# Shrink a filesystem:

umount ${DEVICE} && e2fsck -f ${DEVICE} && resize2fs ${DEVICE} ${SIZE} && lvresize -L${SIZE} ${DEVICE} ; mount ${DEVICE}


# Remount all volume groups
find /dev/vg?/* | xargs -l umount && find /dev/vg?/* | xargs -l mount
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk