现在的位置: 首页 > 综合 > 正文

Add an LVM Disk and etc.

2013年08月18日 ⁄ 综合 ⁄ 共 933字 ⁄ 字号 评论关闭
# 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
【上篇】
【下篇】

抱歉!评论已关闭.