I have a test case - plase answer why chfs fails. Why new LP's copies can't be located accordingly one on hdisk6 and the second copy on hdisk7?
Code:
# lsvg -p testvg
testvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk2 active 543 0 00..00..00..00..00
hdisk3 active 543 0 00..00..00..00..00
hdisk6 active 1086 1 00..01..00..00..00
hdisk7 active 543 153 00..00..00..44..109
# lslv -m testLV|awk '{print $3" "$5}'|sort -u
PV1 PV2
hdisk2 hdisk6
hdisk3 hdisk6
hdisk3 hdisk7
# lslv testLV
LOGICAL VOLUME: testLV VOLUME GROUP: testvg
LV IDENTIFIER: 0048292a00004c000000011c4df4e6a4.36 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/stale
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 1024 PP SIZE: 64 megabyte(s)
COPIES: 2 SCHED POLICY: parallel
LPs: 982 PPs: 1964
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 2
MOUNT POINT: /testLV LABEL: /testLV
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes (superstrict)
Serialize IO ?: NO
# [navy]chlv -sn -u3 testLV[/navy]
# lslv testLV
LOGICAL VOLUME: testLV VOLUME GROUP: testvg
LV IDENTIFIER: 0048292a00004c000000011c4df4e6a4.36 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/stale
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 1024 PP SIZE: 64 megabyte(s)
COPIES: 2 SCHED POLICY: parallel
LPs: 982 PPs: 1964
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 3
MOUNT POINT: /testLV LABEL: /testLV
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: no
Serialize IO ?: NO
# [navy]chfs -a size=+64M /testLV[/navy]
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.
#