Diskgroup can not be imported - online aliased after upgrade from old version to version 5.0

Article:TECH52205  |  Created: 2007-01-16  |  Updated: 2010-01-24  |  Article URL http://www.symantec.com/docs/TECH52205
Article Type
Technical Solution

Product(s)

Environment

Issue



Diskgroup can not be imported - online aliased after upgrade from old version to version 5.0

Solution



After upgrade from older version to version 5.0 the diskgroup can not be imported since the status is online aliased
From the output of
#vxdisk -oalldgs list
DEVICE     TYPE          DISK    GROUP      STATUS
cciss/c0d0  auto:none     - -        online          invalid
cciss/c0d1 auto:none       - -       online          invalid
emcpowera auto:simple    -         (datadg)       online aliased
emcpowerb auto:simple    -         (datadg)       online aliased
emcpowerc auto:simple    -         (datadg)      online aliased


Pre upgrade version 5.0
# vxdisk list emcpowera
Disk: emcpowera
type: simple
flags: online ready private foreign autoimport imported
diskid: 1158771344.12.test
dgname: datadg
dgid: 1158772090.22.test
hostid: test
info:
Post 5.0
#vxdisk list emcpowera
Device: emcpowera
devicetag: emcpowera
type: auto
hostid:
disk: name= id=1158771355.14.test
group: name=datadg id=1158772090.22.test
info: format=simple,privoffset=1,pubslice=8,privslice=8
flags: online ready private autoconfig aliased
pubpaths: block=/dev/vx/dmp/emcpowerb8 char=/dev/vx/rdmp/emcpowerb8
guid: -
udid: EMC%5FSYMMETRIX%5F870389%5F89E68000
site: -
version: 2.1
iosize: min=512 (bytes) max=255 (blocks)
public: slice=0 offset=2049 len=142784511 disk_offset=0
private: slice=0 offset=1 len=2048 disk_offset=0
update: time=1181765152 seqno=0.20
ssb: actual_seqno=0.0
headers: 0 248
configs: count=1 len=1481
logs: count=1 len=224
Multipathing information:
numpaths: 1
emcpowera state=enabled

Since customer does not remove the foreign devices before upgrade to version 5.0 as recommend by the installation guide(page 74-78 Veritas Storage Foundation installation guide 5.0 for Solaris), the disk  pubpath are pointed to
pubpaths: block=/dev/vx/dmp/emcpowera8 char=/dev/vx/rdmp/emcpowera8
But on the disk itself, the information is defined on slice 0 as below:
public: slice=0 offset=2049 len=142784511 disk_offset=0
private: slice=0 offset=1 len=2048 disk_offset=0
Since the disk is defined as simple device before and with the contrast of information of the pub and private path, VxVM now change its status from online to online aliased flag.
Now run the following command to see whether devices had been added as foreign devices
#vxddladm listforeign
The Paths included are
-----------------------
Based on Directory names:
-----------------------
Based on Full Path:
--------------------
Run fdisk -l on device or prtvtoc on /dev/emcpowera to see the partition table
Disk /dev/emcpowera (Sun disk label): 60 heads, 64 sectors, 37182 cylinders
Units = cylinders of 3840 * 512 bytes

Device Flag Start End Blocks Id System
/dev/emcpowera3 u 0 37182 71389440 5 Whole disk
/dev/emcpowera8 u 0 37182 71389440 f Unknown

Now add the devices back to as foreign devices
#vxddladm -a addforeign path=/dev/emcpowera
If vxconfigd can be killed , please run
#vxconfigd -k
or run
# vxdctl enable

Run the following command
#vxdisk -oalldgs list
DEVICE              TYPE          DISK       GROUP          STATUS
cciss/c0d0          auto:none     - -            online             invalid
cciss/c0d1          auto:none     - -            online             invalid
emcpowera         simple          -              (datadg)          online
emcpowerb         auto:simple   -              (datadg)         online aliased
emcpowerc         auto:simple   -              (datadg)         online aliased

Make a backup of partion table for emcpowerb and emcpowerc first and add these devices as power devices
#vxddladm -a addforeign path=/dev/emcpowerb
#vxddladm -a addforeign path=/dev/emcpowerc

Kill vxconfigd if possible or run vxdctl enable. The diskgroup now should be import automatically and check to see whether all volumes are enable /active before mounting these file systems.







Legacy ID



289390


Article URL http://www.symantec.com/docs/TECH52205


Terms of use for this information are found in Legal Notices