Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5658704
  • 博文数量: 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-03 16:45:27

Let's suppose you want to create a singly mirrored logical volume of 60 megabytes for a file system. You want the logical volume to use two specific disks(physical volumes) of the same type; the volume group contains several disk types. By having the logical volume's mirrored copies on disks of the same type, you intend to optimize the file system's performance.
1,Create a logical volume, no size, no mirroring, with the name saleslv.
# lvcreate -n saleslv /dev/vg05
Let's assume logical volume /dev/vg05/saleslv is successfully created
2,Extend the file system by 1 extent to one of the specific disks
# lvextend -l 1 /dev/vg05/saleslv /dev/dsk/c0t4d0
3,Then extend the logical volume again, this time specifying that a mirror copy be created on the second desired disk
# lvextend -m 1 /dev/vg05/saleslv /dev/dsk/c0t5d0
4,Now, extend the logical volume on both physical volumes to the total number of disired extents(or a specific size in megabytes)
# lvextend -L 60 /dev/vg05/saleslv /dev/dsk/c0t4d0 /dev/dsk/c0t5d0
This last step occurs quickly because the extends being added to the logical volume contain no data. You could have eliminated the last step by extending the logical volume to 60 megabytes in step two, but the subsequent mirroring step would require time for resynchronization
阅读(1671) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~