Tuesday, 4 March 2014

Last week middle of the change window we got an error while Initializing the disk in VxVM. After investigation, we found the cause and solution of this issue. I just want to share the knowledge with this post to all.  Storage team has provided new LUN to extend the existing filesystem. We have identified those new LUN in OS level and labeled, however we could not get those into VxVM Level. Let we find the cause and solutions.

Error: VxVM vxdisksetup ERROR V-5-2-43 emc_084e: Invalid disk device for vxdisksetup
root@unixrock# devfsadm -c disk
root@unixrock#
root@unixrock# ls -ltr /dev/rdsk |tail -10|grep s2
lrwxrwxrwx   1 root root  75 Feb 27 19:32 c2t50060E8006CF9F52d36s2 -> ../../devices/pci@3,700000/SUNW,qlc@0/fp@0,0/ssd@w50060e8006cf9f52,24:c,raw
root@unixrock#
root@unixrock#
root@unixrock# luxadm inq /dev/rdsk/c2t50060E8006CF9F52d36s2|grep Serial
Serial Number               50 0CF9F084E
root@unixrock#
Scanning and Checking the status in VxVM level
root@unixrock# vxdctl enable
root@unixrock#
root@unixrock# vxdisk -e list|grep -i “c2t50060E8006CF9F52d36s2"
emc_084e auto:none  -    -  online invalid   c2t50060E8006CF9F52d36s2 std fc
root@unixrock#
Initializing the disk, but getting error
root@unixrock# vxdisksetup -i emc_084e
VxVM vxdisksetup ERROR V-5-2-43 emc_084e: Invalid disk device for vxdisksetup
root@unixrock#
root@unixrock# vxdisksetup -i emc_084e format=cdsdisk
VxVM vxdisksetup ERROR V-5-2-43 emc_084e: Invalid disk device for vxdisksetup
root@unixrock# 
root@unixrock# vxdisk scandisks
root@unixrock#
root@unixrock# vxdisk -e list|grep -i “c2t50060E8006CF9F52d36s2"
emc_084e auto:none  -    -  online invalid   c2t50060E8006CF9F52d36s2 std fc
root@unixrock#
Then we found the cause and solution, its known issue/bug in SF5.1SP1RP1 Solaris 10, vxdisksetup does not work when we have installed patch 147440-20 and later.
root@unixrock# pkginfo -l VRTSvxfs|egrep -i "PSTAMP|VERSION"
   VERSION:  5.1,REV=7Oct2009
    PSTAMP:  5.1.101.000-5.1SP1RP1-2011-02-01-VERITAS-FS-142634-07
root@unixrock#
root@unixrock# showrev -p|grep -i 147440-25
Patch: 147440-25 Obsoletes: 125804-01, 125902-02, 137276-01, 140383-01, 140563-03, 141590-02, 141765-01, 143525-01, 143615-02, 143941-02, 144524-03, 144534-02, 145204-01, 145937-01, 146279-01, 146281-01, 146283-01, 146294-03, 146320-03, 146322-01, 146575-03, 146767-02, 147012-02, 147067-01, 147149-01, 147157-02, 147258-01, 147268-01, 147436-01, 147699-01, 147701-01, 147713-01, 147770-01, 147784-01, 148065-02, 148098-03, 148229-01, 148409-01 Requires: 118833-36, 119578-30, 120011-14, 121133-02, 125555-10, 127127-11, 127755-01, 137137-09, 139555-08, 141444-09, 142909-17, 142933-04, 144500-19 Incompatibles:  Packages: SUNWdrcr, SUNWdtrp, SUNWnfsckr, SUNWpmu, SUNWdtrc, FJSVhea, SUNWs9brandr, SUNWcpr, SUNWdrr, SUNWzoneu, SUNWcslr, SUNWmdb, SUNWpdu, SUNWesu, SUNWssad, SUNWbnuu, SUNWftpr, SUNWluxd, FJSVmdbr, SUNWarcr, SUNWzfskr, SUNWxcu4, SUNWhea, SUNWbtool, SUNWgss, SUNWfss, SUNWpd, SUNWfmd, SUNWcakr, SUNWmptsas, SUNWnfssu, SUNWnfsskr, SUNWzfsu, SUNWcsr, SUNWcsl, SUNWftdur, SUNWnfscr, SUNWckr, SUNWmdbr, SUNWnfscu, SUNWsmapi, SUNWcsu, SUNWzfsr, FJSVmdb
root@unixrock#
The Workaround is to initialize the disk with using "vxdisk" command with "init" options.
root@unixrock#
root@unixrock# vxdisk init emc_084e
root@unixrock#
root@unixrock# vxdisk -e list|grep -i emc_084e
emc_084e auto:cdsdisk   -    -  online      c2t50060E8006CF9F52d36s2 std fc
root@unixrock#
Perfect !!! we have initialized the disk.
Solution : The fix is available in the form of a Hotfix in VxVM 5.1SP1RP2P3HF5 or later.

Thanks for reading this post. Please leave your valuable comments or queries, I will respond to you at earliest.