Expansion of existing LUN
# sanlun lun show | grep /vol/server1_lun09.lun
csnafa07: /vol/server1_lun09.lun hdisk210 fcs0 FCP 840.1g (902031212544) GOOD
server1:/root # chdev -l hdisk210 -a algorithm=round_robin -a reserve_policy=no_reserve -a queue_depth=32 -a rw_timeout=180
hdisk210 changed
server1:/root # extendvg oraclevg hdisk210
0516-1254 extendvg: Changing the PVID in the ODM.
server1:/root # lsvg -p oraclevg
oraclevg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk189 active 18479 0 00..00..00..00..00
hdisk190 active 18479 64 00..00..00..00..64
hdisk210 active 6720 6720 1344..1344..1344..1344..1344
expansion of an existing lun.... Increase the same lun with 10GB more (total 850GB)
change needs to be done on the filer end first, then rescan on the host
csnafa07> lun resize /vol/server1_lun09.lun +10g
lun resize: resized to: 850.1g (912827351040)
server1:/root # cfgmgr
server1:/root # lsvg -p oraclevg
oraclevg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk189 active 18479 0 00..00..00..00..00
hdisk190 active 18479 64 00..00..00..00..64
hdisk210 active 6720 6720 1344..1344..1344..1344..1344
server1:/root # chvg -g oraclevg
server1:/root # lsvg -p oraclevg
oraclevg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk189 active 18479 0 00..00..00..00..00
hdisk190 active 18479 64 00..00..00..00..64
hdisk210 active 6800 6800 1360..1360..1360..1360..1360
Note:
Never do reduction in lun should not be done online when there is data in it, which would cause data corruption
Expansion is allowed... reduction is not allowed
# sanlun lun show | grep /vol/server1_lun09.lun
csnafa07: /vol/server1_lun09.lun hdisk210 fcs0 FCP 840.1g (902031212544) GOOD
server1:/root # chdev -l hdisk210 -a algorithm=round_robin -a reserve_policy=no_reserve -a queue_depth=32 -a rw_timeout=180
hdisk210 changed
server1:/root # extendvg oraclevg hdisk210
0516-1254 extendvg: Changing the PVID in the ODM.
server1:/root # lsvg -p oraclevg
oraclevg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk189 active 18479 0 00..00..00..00..00
hdisk190 active 18479 64 00..00..00..00..64
hdisk210 active 6720 6720 1344..1344..1344..1344..1344
expansion of an existing lun.... Increase the same lun with 10GB more (total 850GB)
change needs to be done on the filer end first, then rescan on the host
csnafa07> lun resize /vol/server1_lun09.lun +10g
lun resize: resized to: 850.1g (912827351040)
server1:/root # cfgmgr
server1:/root # lsvg -p oraclevg
oraclevg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk189 active 18479 0 00..00..00..00..00
hdisk190 active 18479 64 00..00..00..00..64
hdisk210 active 6720 6720 1344..1344..1344..1344..1344
server1:/root # chvg -g oraclevg
server1:/root # lsvg -p oraclevg
oraclevg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk189 active 18479 0 00..00..00..00..00
hdisk190 active 18479 64 00..00..00..00..64
hdisk210 active 6800 6800 1360..1360..1360..1360..1360
Note:
Never do reduction in lun should not be done online when there is data in it, which would cause data corruption
Expansion is allowed... reduction is not allowed
No comments:
Post a Comment