- 论坛徽章:
- 0
|
关键知识点:物理卷的分配权限决定着是否可以在该物理卷上为逻辑卷分配新的物理分区.
1.当某物理卷上没有文件系统被MOUNT时,修改该物理卷上的ALLOCATION 属性为NO 状态后,则不能为该物理卷上的逻辑卷分配新的物理分区.即:
#mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs Sep 16 03:17 rw,log=/dev/hd8
/dev/hd2 /usr jfs Sep 16 03:17 rw,log=/dev/hd8
/dev/hd9var /var jfs Sep 16 03:17 rw,log=/dev/hd8
/dev/hd3 /tmp jfs Sep 16 03:17 rw,log=/dev/hd8
/dev/hd1 /home jfs Sep 16 03:18 rw,log=/dev/hd8
/proc /proc procfs Sep 16 03:18 rw
/dev/hd10opt /opt jfs Sep 16 03:18 rw,log=/dev/hd8
# chpv -a n hdisk2 **将hdisk2的分配权限设为NO
# lspv -l hdisk2 **列出hdisk2上的逻辑卷
hdisk2:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
test 20 20 00..20..00..00..00 /test
loglv00 1 1 00..01..00..00..00 N/A
db2 2 2 00..02..00..00..00 N/A
lv00 32 32 00..32..00..00..00 /home/db2inst2
lv01 16 16 00..16..00..00..00 /backdb2
# extendlv test 21 **给逻辑卷test增加一个物理分区,会出现下面的结果;
0516-404 allocp: This system cannot fulfill the allocation request.
There are not enough free partitions or not enough physical volumes
to keep strictness and satisfy allocation requests. The command
should be retried with different allocation characteristics.
# chpv -a y hdisk2 ****将hdisk2的分配权限设为YES
# extendlv test 41 ****为逻辑分区TEST增加物理分区
# lspv -l hdisk2 ****列出hdisk2上的逻辑卷,可以看到修改后的结果.
hdisk2:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
test 41 41 00..41..00..00..00 /test
loglv00 1 1 00..01..00..00..00 N/A
db2 2 2 00..02..00..00..00 N/A
lv00 32 32 00..32..00..00..00 /home/db2inst2
lv01 16 16 00..16..00..00..00 /backdb2
2.将逻辑卷TEST上建的/TEST文件系统MOUNT后,则不允许再修改该逻辑卷所在物理卷的物理分配权限
#mount /test
# chpv -a n hdisk2
0516-1010 chpv: Warning, the physical volume hdisk2 has open logical
volumes. Continuing with Change
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22286/showart_171799.html |
|