-- Unter format müssen die SAN Disks sichbar sein.
# echo |format
Searching for disks...done c2t5006048C52A642C9d212: configured with capacity of 8.43GB c2t5006048C52A642C9d214: configured with capacity of 8.43GB c3t5006048C52A642C6d214: configured with capacity of 8.43GB c3t5006048C52A642C6d216: configured with capacity of 8.43GB
-- Erste jetzt wird in Veritas die Disks sichtbar.
# cfgadm -la -o show_FCP_dev
# vxdctl enable
[……] c2t5006048C52A642C9d116s2 EMC0_42 appl_0_5 appldg ENABLED c3t5006048C52A642C6d116s2 EMC0_42 appl_0_5 appldg ENABLED c2t5006048C52A642C9d125s2 EMC0_43 appl_0_29 appldg ENABLED c3t5006048C52A642C6d125s2 EMC0_43 appl_0_29 appldg ENABLED c2t5006048C52A642C9d214s2 EMC0_44 - - ENABLED c3t5006048C52A642C6d216s2 EMC0_44 - - ENABLED c2t5006048C52A642C9d212s2 EMC0_45 - - ENABLED c3t5006048C52A642C6d214s2 EMC0_45 - - ENABLED
# format c2t5006048C52A642C9d214s2
format> la Ready to label disk, continue? Y
# format c2t5006048C52A642C9d212s2
format> la Ready to label disk, continue? Y
# vxdisksetup -i EMC0_44
# vxdisksetup -i EMC0_45
-- Nächste frei Veritas Device Nummer verwenden.
# vxdg -g appldg adddisk appl_0_35=EMC0_44
# vxdg -g appldg adddisk appl_0_36=EMC0_45
-- Ist zustand
# df -k |grep DUMP
/dev/vx/dsk/appldg/DUMP 94567680 74397450 18910478 80% /var/opt/data/DUMP
-- Volume mit 10 Stripe soll auf 11 Stripe geändert werden.
# vxprint -th DUMP
Disk group: appldg v DUMP - ENABLED ACTIVE 189135360 SELECT DUMP-01 fsgen pl DUMP-01 DUMP ENABLED ACTIVE 189135360 STRIPE 10/256 RW sd appl_0_14-01 DUMP-01 appl_0_14 0 17605888 0/0 EMC0_6 ENA sd appl_0_4-02 DUMP-01 appl_0_4 16777216 828672 0/17605888 EMC0_11 ENA sd appl_0_32-02 DUMP-01 appl_0_32 17126912 478976 0/18434560 EMC0_12 ENA sd appl_0_8-01 DUMP-01 appl_0_8 0 17605888 1/0 EMC0_8 ENA sd appl_0_22-02 DUMP-01 appl_0_22 17126912 478976 1/17605888 EMC0_14 ENA sd appl_0_2-02 DUMP-01 appl_0_2 16777216 828672 1/18084864 EMC0_16 ENA sd appl_0_12-01 DUMP-01 appl_0_12 0 17605888 2/0 EMC0_13 ENA sd appl_0_20-02 DUMP-01 appl_0_20 17126912 478976 2/17605888 EMC0_17 ENA sd appl_0_6-02 DUMP-01 appl_0_6 16777216 828672 2/18084864 EMC0_18 ENA sd appl_0_10-01 DUMP-01 appl_0_10 0 17605888 3/0 EMC0_15 ENA sd appl_0_26-02 DUMP-01 appl_0_26 17126912 478976 3/17605888 EMC0_21 ENA sd appl_0_3-02 DUMP-01 appl_0_3 16777216 828672 3/18084864 EMC0_28 ENA sd appl_0_9-01 DUMP-01 appl_0_9 0 17605888 4/0 EMC0_19 ENA sd appl_0_23-02 DUMP-01 appl_0_23 17126912 478976 4/17605888 EMC0_23 ENA sd appl_0_0-02 DUMP-01 appl_0_0 16777216 828672 4/18084864 EMC0_32 ENA sd appl_0_7-01 DUMP-01 appl_0_7 0 17605888 5/0 EMC0_20 ENA sd appl_0_34-02 DUMP-01 appl_0_34 17126912 478976 5/17605888 EMC0_24 ENA sd appl_0_1-02 DUMP-01 appl_0_1 16777216 828672 5/18084864 EMC0_38 ENA sd appl_0_30-02 DUMP-01 appl_0_30 17126912 478976 6/0 EMC0_26 ENA sd appl_0_11-01 DUMP-01 appl_0_11 0 17605888 6/478976 EMC0_27 ENA sd appl_0_5-02 DUMP-01 appl_0_5 16777216 828672 6/18084864 EMC0_42 ENA sd appl_0_24-02 DUMP-01 appl_0_24 17126912 478976 7/0 EMC0_0 ENA sd appl_0_31-02 DUMP-01 appl_0_31 17126912 478976 7/478976 EMC0_4 ENA sd appl_0_16-01 DUMP-01 appl_0_16 0 17605888 7/957952 EMC0_30 ENA sd appl_0_28-02 DUMP-01 appl_0_28 17126912 349696 7/18563840 EMC0_35 ENA sd appl_0_17-02 DUMP-01 appl_0_17 17126912 478976 8/0 EMC0_1 ENA sd appl_0_33-02 DUMP-01 appl_0_33 17126912 478976 8/478976 EMC0_9 ENA sd appl_0_27-02 DUMP-01 appl_0_27 17126912 349696 8/957952 EMC0_29 ENA sd appl_0_13-01 DUMP-01 appl_0_13 0 17605888 8/1307648 EMC0_31 ENA sd appl_0_19-02 DUMP-01 appl_0_19 17126912 478976 9/0 EMC0_2 ENA sd appl_0_25-02 DUMP-01 appl_0_25 17126912 478976 9/478976 EMC0_10 ENA sd appl_0_21-02 DUMP-01 appl_0_21 17126912 349696 9/957952 EMC0_33 ENA sd appl_0_15-01 DUMP-01 appl_0_15 0 17605888 9/1307648 EMC0_34 ENA
-- Wie größ ist eine Stripe.
# bc
17605888+349696+478976+478976
18913536
18913536/2
9456768 ~9,4Gb
-- Die zwei neuen Disk haben 16Gb, reicht.
# vxdisk path|tail -20
c2t5006048C52A642C9d110s2 EMC0_40 sybase_0_40 sybasedg ENABLED c3t5006048C52A642C6d110s2 EMC0_40 sybase_0_40 sybasedg ENABLED c2t5006048C52A642C9d126s2 EMC0_41 sybase_0_37 sybasedg ENABLED c3t5006048C52A642C6d126s2 EMC0_41 sybase_0_37 sybasedg ENABLED c2t5006048C52A642C9d116s2 EMC0_42 appl_0_5 appldg ENABLED c3t5006048C52A642C6d116s2 EMC0_42 appl_0_5 appldg ENABLED c2t5006048C52A642C9d125s2 EMC0_43 appl_0_29 appldg ENABLED c3t5006048C52A642C6d125s2 EMC0_43 appl_0_29 appldg ENABLED c2t5006048C52A642C9d214s2 EMC0_44 appl_0_35 appldg ENABLED c3t5006048C52A642C6d216s2 EMC0_44 appl_0_35 appldg ENABLED c2t5006048C52A642C9d212s2 EMC0_45 appl_0_36 appldg ENABLED c3t5006048C52A642C6d214s2 EMC0_45 appl_0_36 appldg ENABLED c2t5006048C52A642C9d215s2 EMC0_46 - - ENABLED c3t5006048C52A642C6d217s2 EMC0_46 - - ENABLED
[...]
-- Layout bleibt, nur ncol ändert sich.
# vxassist -g appldg relayout DUMP ncol=11
-- Monitoring.
# vxrelayout -g appldg status DUMP
STRIPED, columns=10, stwidth=256 --> STRIPED, columns=11, stwidth=256 Relayout running, 30.85% completed.
oder:
# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS 167 RELAYOUT/R 31.12% 0/378270720/117714944 RELAYOUT DUMP appldg
-- Resultat.
# vxprint -th -g appldg DUMP
v DUMP - ENABLED ACTIVE 189135360 SELECT DUMP-01 fsgen pl DUMP-01 DUMP ENABLED ACTIVE 189136640 STRIPE 11/256 RW sd appl_0_14-03 DUMP-01 appl_0_14 0 17194240 0/0 EMC0_6 ENA sd appl_0_8-03 DUMP-01 appl_0_8 0 17194240 1/0 EMC0_8 ENA sd appl_0_12-03 DUMP-01 appl_0_12 0 17194240 2/0 EMC0_13 ENA sd appl_0_10-03 DUMP-01 appl_0_10 0 17194240 3/0 EMC0_15 ENA sd appl_0_9-03 DUMP-01 appl_0_9 0 17194240 4/0 EMC0_19 ENA sd appl_0_7-03 DUMP-01 appl_0_7 0 17194240 5/0 EMC0_20 ENA sd appl_0_30-04 DUMP-01 appl_0_30 17126912 478976 6/0 EMC0_26 ENA sd appl_0_11-03 DUMP-01 appl_0_11 0 16715264 6/478976 EMC0_27 ENA sd appl_0_24-04 DUMP-01 appl_0_24 17126912 478976 7/0 EMC0_0 ENA sd appl_0_31-04 DUMP-01 appl_0_31 17126912 478976 7/478976 EMC0_4 ENA sd appl_0_16-04 DUMP-01 appl_0_16 0 16236288 7/957952 EMC0_30 ENA sd appl_0_17-04 DUMP-01 appl_0_17 17126912 478976 8/0 EMC0_1 ENA sd appl_0_33-04 DUMP-01 appl_0_33 17126912 478976 8/478976 EMC0_9 ENA sd appl_0_27-05 DUMP-01 appl_0_27 17126912 349696 8/957952 EMC0_29 ENA sd appl_0_13-03 DUMP-01 appl_0_13 0 15886592 8/1307648 EMC0_31 ENA sd appl_0_19-04 DUMP-01 appl_0_19 17126912 478976 9/0 EMC0_2 ENA sd appl_0_25-04 DUMP-01 appl_0_25 17126912 478976 9/478976 EMC0_10 ENA sd appl_0_21-05 DUMP-01 appl_0_21 17126912 349696 9/957952 EMC0_33 ENA sd appl_0_15-03 DUMP-01 appl_0_15 0 15886592 9/1307648 EMC0_34 ENA sd appl_0_35-03 DUMP-01 appl_0_35 2083840 15522048 10/0 EMC0_44 ENA
sd appl_0_36-03 DUMP-01 appl_0_36 2083840 1672192 10/15522048 EMC0_45 ENA
# vxdg free
GROUP DISK DEVICE TAG OFFSET LENGTH FLAGS appldg appl_0_0 EMC0_32 EMC0_32 16777216 828672 - appldg appl_0_1 EMC0_38 EMC0_38 16777216 828672 - appldg appl_0_2 EMC0_16 EMC0_16 16777216 828672 - appldg appl_0_3 EMC0_28 EMC0_28 16777216 828672 - appldg appl_0_4 EMC0_11 EMC0_11 16777216 828672 - appldg appl_0_5 EMC0_42 EMC0_42 16777216 828672 - appldg appl_0_6 EMC0_18 EMC0_18 16777216 828672 - appldg appl_0_7 EMC0_20 EMC0_20 17194240 411648 - appldg appl_0_8 EMC0_8 EMC0_8 17194240 411648 - appldg appl_0_9 EMC0_19 EMC0_19 17194240 411648 - appldg appl_0_10 EMC0_15 EMC0_15 17194240 411648 - appldg appl_0_11 EMC0_27 EMC0_27 16715264 890624 - appldg appl_0_12 EMC0_13 EMC0_13 17194240 411648 - appldg appl_0_13 EMC0_31 EMC0_31 15886592 1719296 - appldg appl_0_14 EMC0_6 EMC0_6 17194240 411648 - appldg appl_0_15 EMC0_34 EMC0_34 15886592 1719296 - appldg appl_0_16 EMC0_30 EMC0_30 16236288 1369600 - appldg appl_0_18 EMC0_39 EMC0_39 17126912 478976 - appldg appl_0_20 EMC0_17 EMC0_17 17126912 478976 - appldg appl_0_21 EMC0_33 EMC0_33 17476608 129280 - appldg appl_0_22 EMC0_14 EMC0_14 17126912 478976 - appldg appl_0_23 EMC0_23 EMC0_23 17126912 478976 - appldg appl_0_26 EMC0_21 EMC0_21 17126912 478976 - appldg appl_0_27 EMC0_29 EMC0_29 17476608 129280 - appldg appl_0_28 EMC0_35 EMC0_35 17126912 478976 - appldg appl_0_29 EMC0_43 EMC0_43 17126912 478976 - appldg appl_0_32 EMC0_12 EMC0_12 17126912 478976 - appldg appl_0_34 EMC0_24 EMC0_24 17126912 478976 - appldg appl_0_35 EMC0_44 EMC0_44 0 2083840 - appldg appl_0_36 EMC0_45 EMC0_45 0 2083840 - appldg appl_0_36 EMC0_45 EMC0_45 3756032 13849856 -
-- Jetzt noch das Filesystem vergrößern.
# df -k |grep DUM
/dev/vx/dsk/appldg/DUMP 94567680 74397450 18910478 80% /var/opt/data/DUMP
-- Maximal kann das Volume DUMP um ca. ~9Gb vergrößert werden.
# vxassist -g appldg maxgrow DUMP
Volume DUMP can be extended by 18913280 to: 208048640 (101586Mb+512 sectors)
Info: # echo "18913280/2/1024" |bc
9235 ~9Gb
# /usr/lib/vxvm/bin/vxresize -g appldg DUMP +18913280s
# df -k |grep DUM
/dev/vx/dsk/appldg/DUMP 104024320 74399771 27773902 73% /var/opt/data/DUMP
# vxprint -th -g appldg DUMP
v DUMP - ENABLED ACTIVE 208048640 SELECT DUMP-01 fsgen pl DUMP-01 DUMP ENABLED ACTIVE 208048896 STRIPE 11/256 RW sd appl_0_14-03 DUMP-01 appl_0_14 0 17605888 0/0 EMC0_6 ENA sd appl_0_4-02 DUMP-01 appl_0_4 16777216 828672 0/17605888 EMC0_11 ENA sd appl_0_32-02 DUMP-01 appl_0_32 17126912 478976 0/18434560 EMC0_12 ENA sd appl_0_8-03 DUMP-01 appl_0_8 0 17605888 1/0 EMC0_8 ENA sd appl_0_22-02 DUMP-01 appl_0_22 17126912 478976 1/17605888 EMC0_14 ENA sd appl_0_2-02 DUMP-01 appl_0_2 16777216 828672 1/18084864 EMC0_16 ENA sd appl_0_12-03 DUMP-01 appl_0_12 0 17605888 2/0 EMC0_13 ENA sd appl_0_20-02 DUMP-01 appl_0_20 17126912 478976 2/17605888 EMC0_17 ENA sd appl_0_6-02 DUMP-01 appl_0_6 16777216 828672 2/18084864 EMC0_18 ENA sd appl_0_10-03 DUMP-01 appl_0_10 0 17605888 3/0 EMC0_15 ENA sd appl_0_26-02 DUMP-01 appl_0_26 17126912 478976 3/17605888 EMC0_21 ENA sd appl_0_3-02 DUMP-01 appl_0_3 16777216 828672 3/18084864 EMC0_28 ENA sd appl_0_9-03 DUMP-01 appl_0_9 0 17605888 4/0 EMC0_19 ENA sd appl_0_23-02 DUMP-01 appl_0_23 17126912 478976 4/17605888 EMC0_23 ENA sd appl_0_0-02 DUMP-01 appl_0_0 16777216 828672 4/18084864 EMC0_32 ENA sd appl_0_7-03 DUMP-01 appl_0_7 0 17605888 5/0 EMC0_20 ENA sd appl_0_34-02 DUMP-01 appl_0_34 17126912 478976 5/17605888 EMC0_24 ENA sd appl_0_1-02 DUMP-01 appl_0_1 16777216 828672 5/18084864 EMC0_38 ENA sd appl_0_30-04 DUMP-01 appl_0_30 17126912 478976 6/0 EMC0_26 ENA sd appl_0_11-03 DUMP-01 appl_0_11 0 17605888 6/478976 EMC0_27 ENA sd appl_0_5-02 DUMP-01 appl_0_5 16777216 828672 6/18084864 EMC0_42 ENA sd appl_0_24-04 DUMP-01 appl_0_24 17126912 478976 7/0 EMC0_0 ENA sd appl_0_31-04 DUMP-01 appl_0_31 17126912 478976 7/478976 EMC0_4 ENA sd appl_0_16-04 DUMP-01 appl_0_16 0 17605888 7/957952 EMC0_30 ENA sd appl_0_28-02 DUMP-01 appl_0_28 17126912 349696 7/18563840 EMC0_35 ENA sd appl_0_17-04 DUMP-01 appl_0_17 17126912 478976 8/0 EMC0_1 ENA sd appl_0_33-04 DUMP-01 appl_0_33 17126912 478976 8/478976 EMC0_9 ENA sd appl_0_27-05 DUMP-01 appl_0_27 17126912 349696 8/957952 EMC0_29 ENA sd appl_0_13-03 DUMP-01 appl_0_13 0 17605888 8/1307648 EMC0_31 ENA sd appl_0_19-04 DUMP-01 appl_0_19 17126912 478976 9/0 EMC0_2 ENA sd appl_0_25-04 DUMP-01 appl_0_25 17126912 478976 9/478976 EMC0_10 ENA sd appl_0_21-05 DUMP-01 appl_0_21 17126912 349696 9/957952 EMC0_33 ENA sd appl_0_15-03 DUMP-01 appl_0_15 0 17605888 9/1307648 EMC0_34 ENA sd appl_0_35-03 DUMP-01 appl_0_35 2083840 15522048 10/0 EMC0_44 ENA sd appl_0_36-03 DUMP-01 appl_0_36 2083840 3391488 10/15522048 EMC0_45 ENA
# vxdg -g appldg free
DISK DEVICE TAG OFFSET LENGTH FLAGS appl_0_18 EMC0_39 EMC0_39 17126912 478976 - appl_0_21 EMC0_33 EMC0_33 17476608 129280 - appl_0_27 EMC0_29 EMC0_29 17476608 129280 - appl_0_28 EMC0_35 EMC0_35 17476608 129280 - appl_0_29 EMC0_43 EMC0_43 17126912 478976 - appl_0_35 EMC0_44 EMC0_44 0 2083840 - appl_0_36 EMC0_45 EMC0_45 0 2083840 - appl_0_36 EMC0_45 EMC0_45 5475328 12130560 -