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
阅读(1689) | 评论(0) | 转发(0) |