Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5597416
  • 博文数量: 745
  • 博客积分: 10075
  • 博客等级: 上将
  • 技术积分: 7716
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 12:09
文章分类

全部博文(745)

文章存档

2019年(1)

2016年(1)

2010年(31)

2009年(88)

2008年(129)

2007年(155)

2006年(197)

2005年(143)

分类:

2006-07-04 10:19:57

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