Chinaunix首页 | 论坛 | 博客
  • 博客访问: 650795
  • 博文数量: 168
  • 博客积分: 2928
  • 博客等级: 中校
  • 技术积分: 1904
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-04 09:56
文章分类

全部博文(168)

文章存档

2010年(168)

我的朋友

分类:

2010-01-04 10:35:35

# 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
阅读(551) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~