November 3rd, 2021

Skoal

Veritas Disk Firmware Check and Upgrade

Matt's vm firmware upgrade:

grab file systems to that will be upgraded.
# df -h | grep vx | awk '{print $6}' | grep -v vx > list

grab vxdg that will upgrade
# vxdg list |grep -v NAME |awk '{print $1}' > list2

check volume group version
# for i in $(cat list2); do vxdg -q list $i |grep version; done

upgrade volume groups
# for i in $(cat list2); do vxdg upgrade $i; done

Verify VG upgrade successful
# for i in $(cat list2); do vxdg -q list $i |grep version; done

Now upgrade file system versions, check version level for each.
# df -h |grep vx| awk '{print $1}' |grep -v tmpfs > vxfs.out
# for i in $(cat vxfs.out); do /opt/VRTS/bin/fstyp -v $i |grep version; done

Step upgrade each file system, if current version is 9 start with 10 and upgrade through 15.
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 10 $i; done
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 11 $i; done
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 12 $i; done
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 13 $i; done
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 14 $i; done
# for i in $(cat list); do /opt/VRTS/bin/vxupgrade -n 15 $i; done

Finally verify all vxfs are version 15 now
# for i in $(cat vxfs.out); do /opt/VRTS/bin/fstyp -v $i |grep version; done

IF YOU GET A SIMILAR ERROR:
UX:vxfs vxupgrade: ERROR: V-3-27659: /sapmnt/SID is not a mountpoint
and the raw device cannot be deduced.
use [-r] to specify a raw device

Find the *actual* path via /etc/fstab & /etc/auto.direct and upgrade that path separately:

# /opt/VRTS/bin/vxupgrade -n 10 /export/sapmnt/SID
# /opt/VRTS/bin/vxupgrade -n 11 /export/sapmnt/SID
. . .
. . .
. . .
# /opt/VRTS/bin/vxupgrade -n 15 /export/sapmnt/SID