Unable to encapsulate disk when /etc/vx/reconfig.d/disk.d/ has entries from old encapsulation.

book

Article ID: 100005985

calendar_today

Updated On:

Description

Error Message

# vxdisksetup -i c1t0d0 format=sliced
prtvtoc: /dev/rdsk/c0t0d0s2: Device busy

Cause

Old reference of the da_name's rootdisk into some of the files under /etc/vx/reconfig.d/disk.d/ was preventing the initialization of the replaced rootdisk.

Resolution

Look for any directories which are called with disk names under /etc/vx/reconfig.d/disk.d.
If any are found, cd into those and look inside their files to see if any occurrences of the disk shown as busy are found. A command to use could be

# grep -l c0t0d0 /etc/vx/reconfig.d/disk.d//*

It will return the file names where the occurrence "c0t0d0" was found.
In this particular case:

# grep -l c0t0d0 /etc/vx/reconfig.d/disk.d/c1t0d0/*newpartprimary_nodevtoc

At this stage it would be a good idea to make a tar file of those directories before modifying some of their files. A way to do that could be:

# cd /etc/vx/reconfig.d/disk.d# tar cvf disk.d_`date %+Y-%m-%d`.tar .# mv disk*.tar /etc/vx

Then, it is needed to replace the occurrence "c0t0d0" with the disk name of the one we replaced, in this case: c1t0d0.
It can be done using the preferred text editor.

Once done, try to initialize the disk and see if it works:

# vxdisksetup -i c1t0d0 format=sliced# vxdisk listDEVICE TYPE DISK GROUP STATUSc1t0d0s2 auto:sliced - - onlinec1t1d0s2 auto:sliced rootmirror rootdg online- - rootdisk rootdg removed was:c1t0d0s2

Then add the disk back into the rootdg:

# vxdg -g rootdg -k adddisk rootdisk=c1t0d0s2 

and attach the plexes of the volumes if previously detached, or mend those which lay on the replaced disk to start mirroring the volumes. Please refer to the man pages of vxplex and vxmend commands to know how to get your plexes back to ENABLED status.
Once the mirror of all the volumes ends, do NOT forget to run the vxbootsetup -g rootdg command so that all the disks inside the rootdg will be made bootable creating all the needed partitions on each of those.

 

 

Issue/Introduction

Unable to encapsulate disk when /etc/vx/reconfig.d/disk.d/ has entries from old encapsulation.