How to increase the size of vxdisk,volume, and filesystem following lun addition or expansion

Case 1: Storage Engineer adds new Lun

Once you get LUN id's from Storage team, gather below info:

Server
Pseudo name
ID
Size
Disk name
server 1
emcpower62
15F9
674.31GB
emcpower62a
emcpower63
0B2A
674.31GB
emcpower63a
emcpower64
0B20
674.31GB
emcpower64a
server 2
emcpower63
15F9
674.31GB
emcpower63a
emcpower64
0B2A
674.31GB
emcpower64a
emcpower65
0B20
674.31GB
emcpower65a


Use below commands to obtain the above info:

powermt display dev=all

echo | format | grep <diskname>

Activity:

1. Take backup of below o/p on both primary and secondary node.

a. powermt display dev=all
b. vxprint -rth

2. Check the current status of new disks (visible in primary)

[root@server1]
# vxdisk list | egrep "emcpower62|emcpower63|emcpower64"
DEVICE       TYPE            DISK         GROUP        STATUS
emcpower62s2 auto            -            -            nolabel
emcpower63s2 auto            -            -            nolabel
emcpower64s2 auto            -            -            nolabel

3. Freeze the service group

[root@server1]
# hagrp -freeze server-sg -persistent
[root@server1]
# hastatus -sum

-- SYSTEM STATE
-- System               State                Frozen

 server1           RUNNING              0
 server2           RUNNING              0

-- GROUP STATE
-- Group           System               Probed     AutoDisabled    State

B  ClusterService  server1           Y          N               OFFLINE
B  ClusterService  server2           Y          N               ONLINE
 server-sg    server1           Y          N               ONLINE
 server-sg    server2           Y          N               OFFLINE
B  oracle-sg       server1           Y          N               OFFLINE
B  oracle-sg       server2           Y          N               ONLINE

-- GROUPS FROZEN
-- Group

 server-sg

-- RESOURCES DISABLED
-- Group           Type            Resource

 server-sg    DiskGroup       cprdata-Dg
 server-sg    DiskGroup       cprmnt-Dg
 server-sg    DiskGroup       cprwin-Dg
 server-sg    DiskGroup       ladm-Dg
 server-sg    DiskGroup       livelinkapp-Dg
 server-sg    IPMultiNICB     NFS-VIP
 server-sg    Mount           cprdata-Mnt
 server-sg    Mount           cprmnt-Mnt
 server-sg    Mount           cprwin-Mnt
 server-sg    Mount           linkvprd1root_Mnt
 server-sg    MultiNICB       adminZn-NIC
 server-sg    NFS             Server-NFS
 server-sg    NFSRestart      NFSRestart_L_server-sg
 server-sg    NFSRestart      cprdata-nfsres
 server-sg    NFSRestart      cprmnt-nfsres
 server-sg    NFSRestart      cprwin-nfsres
 server-sg    Share           cprdata-share
 server-sg    Share           cprmnt-share
 server-sg    Share           cprwin-share
 server-sg    Zone            linkvpr-Zn

4. Identify which disk group /var/data is part of to increase

[root@server1]
# df -h /var/data
Filesystem             size   used  avail capacity  Mounted on
/dev/vx/dsk/datadg/datavol       15T    12T   2.3T    85%    /var/data


5. Now Initialize the device and make it online in veritas control 

[root@server1]
# vxdisk init emcpower62 format=cdsdisk
[root@server1]
# vxdisk init emcpower63 format=cdsdisk
[root@server1]
# vxdisk init emcpower64 format=cdsdisk
[root@server1]
# vxdisk list | egrep "emcpower62|emcpower63|emcpower64"
DEVICE       TYPE            DISK         GROUP        STATUS
emcpower62s2 auto:cdsdisk    -            -            online
emcpower63s2 auto:cdsdisk    -            -            online
emcpower64s2 auto:cdsdisk    -            -            online


6. Add new devices to datadgs

6.1 Identify the disk name that could be assigned to new device here we can see last disk name is datadg20.

[root@server1]
# vxdisk -o alldgs list |grep datadg
DEVICE       TYPE            DISK         GROUP        STATUS
emcpower1s2  auto:cdsdisk    datadg14     datadg       online
emcpower5s2  auto:cdsdisk    datadg09     datadg       online thinrclm
emcpower11s2 auto:cdsdisk    datadg07     datadg       online thinrclm
emcpower12s2 auto:cdsdisk    datadg08     datadg       online thinrclm
emcpower18s2 auto:cdsdisk    datadg04     datadg       online thinrclm
emcpower19s2 auto:cdsdisk    datadg01     datadg       online thinrclm
emcpower20s2 auto:cdsdisk    datadg05     datadg       online thinrclm
emcpower22s2 auto:cdsdisk    datadg10     datadg       online thinrclm
emcpower26s2 auto:cdsdisk    datadg12     datadg       online
emcpower27s2 auto:cdsdisk    datadg15     datadg       online
emcpower28s2 auto:cdsdisk    datadg13     datadg       online
emcpower34s2 auto:cdsdisk    datadg16     datadg       online
emcpower35s2 auto:cdsdisk    datadg17     datadg       online
emcpower36s2 auto:cdsdisk    datadg18     datadg       online
emcpower37s2 auto:cdsdisk    datadg19     datadg       online
emcpower38s2 auto:cdsdisk    datadg20     datadg       online
emcpower40s2 auto:cdsdisk    datadg02     datadg       online thinrclm
emcpower53s2 auto:cdsdisk    datadg03     datadg       online thinrclm
emcpower59s2 auto:cdsdisk    datadg06     datadg       online thinrclm
emcpower80s2 auto:cdsdisk    datadg11     datadg       online

[root@server1]
# vxdg -g datadg adddisk datadg21=emcpower62s2
[root@server1]
# vxdg -g datadg adddisk datadg22=emcpower63s2
[root@server1]
# vxdg -g datadg adddisk datadg23=emcpower64s2

[root@server1]
# vxdisk -o alldgs list |grep datadg
emcpower1s2  auto:cdsdisk    datadg14     datadg       online
emcpower5s2  auto:cdsdisk    datadg09     datadg       online thinrclm
emcpower11s2 auto:cdsdisk    datadg07     datadg       online thinrclm
emcpower12s2 auto:cdsdisk    datadg08     datadg       online thinrclm
emcpower18s2 auto:cdsdisk    datadg04     datadg       online thinrclm
emcpower19s2 auto:cdsdisk    datadg01     datadg       online thinrclm
emcpower20s2 auto:cdsdisk    datadg05     datadg       online thinrclm
emcpower22s2 auto:cdsdisk    datadg10     datadg       online thinrclm
emcpower26s2 auto:cdsdisk    datadg12     datadg       online
emcpower27s2 auto:cdsdisk    datadg15     datadg       online
emcpower28s2 auto:cdsdisk    datadg13     datadg       online
emcpower34s2 auto:cdsdisk    datadg16     datadg       online
emcpower35s2 auto:cdsdisk    datadg17     datadg       online
emcpower36s2 auto:cdsdisk    datadg18     datadg       online
emcpower37s2 auto:cdsdisk    datadg19     datadg       online
emcpower38s2 auto:cdsdisk    datadg20     datadg       online
emcpower40s2 auto:cdsdisk    datadg02     datadg       online thinrclm
emcpower53s2 auto:cdsdisk    datadg03     datadg       online thinrclm
emcpower59s2 auto:cdsdisk    datadg06     datadg       online thinrclm
emcpower62s2 auto:cdsdisk    datadg21     datadg       online
emcpower63s2 auto:cdsdisk    datadg22     datadg       online
emcpower64s2 auto:cdsdisk    datadg23     datadg       online
emcpower80s2 auto:cdsdisk    datadg11     datadg       online



7. Now check the max amount of disk space can be increased from disk group

[root@server1]
# vxassist -g datadg maxsize
Maximum volume size: 4282972160 (2091295Mb)


8. Increase the volume and filesystem size using output from previous command

[root@server1]
# /etc/vx/bin/vxresize -F vxfs -g datadg datavol +4282972160

9. Verify /var/data filesystem size is increased and capture screenshot for proof

[root@server1]
# df -kh /var/data/
Filesystem             size   used  avail capacity  Mounted on
/dev/vx/dsk/datadg/datavol
                        17T    12T   4.2T    75%    /var/data

10. Unfreeze the service group server-sg in server1 (As this SG is online only in server1)

[root@server1]
# hagrp -unfreeze server-sg -persistent
[root@server1]
# hastatus -sum

-- SYSTEM STATE
-- System               State                Frozen

 server1           RUNNING              0
 server2           RUNNING              0

-- GROUP STATE
-- Group           System               Probed     AutoDisabled    State

B  ClusterService  server1           Y          N               OFFLINE
B  ClusterService  server2           Y          N               ONLINE
 server-sg    server1           Y          N               ONLINE
 server-sg    server2           Y          N               OFFLINE
B  oracle-sg       server1           Y          N               OFFLINE
B  oracle-sg       server2           Y          N               ONLINE


11. Login to secondary node to discover new disks so added to the dgs

[root@server2]
# vxdisk -o alldgs list |grep datadg
emcpower1s2  auto:cdsdisk    -            (datadg)     online
emcpower5s2  auto:cdsdisk    -            (datadg)     online thinrclm
emcpower11s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower12s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower17s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower18s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower19s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower22s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower25s2 auto:cdsdisk    -            (datadg)     online
emcpower26s2 auto:cdsdisk    -            (datadg)     online
emcpower28s2 auto:cdsdisk    -            (datadg)     online
emcpower29s2 auto:cdsdisk    -            (datadg)     online
emcpower36s2 auto:cdsdisk    -            (datadg)     online
emcpower37s2 auto:cdsdisk    -            (datadg)     online
emcpower38s2 auto:cdsdisk    -            (datadg)     online
emcpower39s2 auto:cdsdisk    -            (datadg)     online
emcpower40s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower53s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower59s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower80s2 auto:cdsdisk    -            (datadg)     online

[root@server2]
# vxdctl enable
[root@server2]
# vxdisk scandisks

[root@server2]
# vxdisk -o alldgs list |grep datadg
emcpower1s2  auto:cdsdisk    -            (datadg)     online
emcpower5s2  auto:cdsdisk    -            (datadg)     online thinrclm
emcpower11s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower12s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower17s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower18s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower19s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower22s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower25s2 auto:cdsdisk    -            (datadg)     online
emcpower26s2 auto:cdsdisk    -            (datadg)     online
emcpower28s2 auto:cdsdisk    -            (datadg)     online
emcpower29s2 auto:cdsdisk    -            (datadg)     online
emcpower36s2 auto:cdsdisk    -            (datadg)     online
emcpower37s2 auto:cdsdisk    -            (datadg)     online
emcpower38s2 auto:cdsdisk    -            (datadg)     online
emcpower39s2 auto:cdsdisk    -            (datadg)     online
emcpower40s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower53s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower59s2 auto:cdsdisk    -            (datadg)     online thinrclm
emcpower63s2 auto:cdsdisk    -            (datadg)     online
emcpower64s2 auto:cdsdisk    -            (datadg)     online
emcpower65s2 auto:cdsdisk    -            (datadg)     online
emcpower80s2 auto:cdsdisk    -            (datadg)     online


Case2: Storage Engineer expands the existing Lun

e.g.
#vxdisk -f -g dgOraData resize dgOraData
#vxassist -g dgOraFRA maxsize
#/etc/vx/bin/vxresize -F vxfs -g dgOraFRA volOraFRA +200g

First increase the size of the disk in vxvm:
Syntax:
# vxdisk -f -g <dg> resize <disk>
Example:
# vxdisk -f -g Cnv1 resize c13t1d0
Check to ensure size has increased by checking the 'dm' in vxprint output:
Syntax:
# vxprint -htg <dg>
Example:
# vxprint -htg Cnv1
Now check for amount of increase:
Syntax:
# vxassist -g <dg> maxsize
Example:
# vxassist -g Cnv1 maxsize
Increase the volume and filesystem size using output from previous command:
Syntax:
# /etc/vx/bin/vxresize -F vxfs -g <dg> <vol> +<size>
Example:
# /etc/vx/bin/vxresize -F vxfs -g Cnv1 vol30 +104857600
Verify with bdf command.



Post a Comment

Previous Post Next Post