# pvcreate -f /dev/rdsk/c0t4d0
# mkdir /dev/vg05
# mknod /dev/vg05/group c 64 0x050000
# vgcreate /dev/vg05 /dev/dsk/c0t4d0
# lvcreate -L 100 vg05
# lvcreate -L 100 vg05
# newfs /dev/vg05/rlvol1
# newfs /dev/vg05/rlvol2
# mkdir /vg5lv1 /vg5lv2
# mount /dev/vg05/lvol1 /vg5lv1
# mount /dev/vg05/lvol2 /vg5lv2
# vgcfgbackup vg05
Extend An LVM Logical Volume:
# lvextend -L 200 /dev/vg05/lvol2
# umount /dev/vg05/lvol2
# extendfs /dev/vg05/rlvol2
# mount /dev/vg05/lvol2
# vgcfgbackup vg05
Reduce the Size of an LVM Logical Volume:
# fbackup -f /dev/rmt/0m -0vHi /accounts
# umount /dev/vg05/lvol2
# lvreduce -L 100 /dev/vg05/lvol2
(Alternatively, the logical volume can be reduced from a specific physical volume as shown below)
# lvreduce -L 100 /dev/vg05/lvol2 /dev/dsk/c0t6d0
# newfs /dev/vg05/rlvol2
# mount -a
If there is sufficient space then restore the data:
# frecover -f /dev/rmt/0m
# vgcfgbackup vg05
Moving an LVM Logical Volume:
# pvcreate -f /dev/rdsk/c0t2d0
# vgextend /dev/vg01 /dev/dsk/c0t2d0
# pvmove -n /dev/vg01/lvol1 /dev/dsk/c0t1d0 /dev/dsk/c0t2d0
# vgcfgbackup vg01
阅读(578) | 评论(0) | 转发(0) |