Converting Solaris VM volumes to VxVm fails to complete. ERROR V-5-1-15395 Device is already in use by SVM.

book

Article ID: 100004383

calendar_today

Updated On:

Description

Error Message

vxvm-convert: creating localset

disksetup.VxVM vxdisk ERROR V-5-1-531 Device disk_2: destroy failed:

Disk device is offline

VxVM vxdisk ERROR V-5-1-15395 Device disk_2 is already in use by SVM.

If you want to initialize this device for VxVM use, please clear SVM metadata by running 'metastat' and 'metaclear' commands.

dginit.VxVM vxdg ERROR V-5-1-6479 Device disk_2 is already in use by a foreign Volume Manager.VxVM vxdg ERROR V-5-1-607

Diskgroup rootdg not found

dginit2 make.VxVM vxmake ERROR V-5-1-607 Diskgroup rootdg not found

volinit.VxVM vxvol ERROR V-5-1-607 Diskgroup rootdg not found

vfstabedits. vxvm-convert: Conversion complete.

Cause

The conversion scripts does the conversion but does not clear out the “md” config info off the actual disk(s).

The log files all indicate that a metaclear should be run, and we don’t run that anywhere in our conversion but we do run the metastat.

Resolution

Official fix to be provided in SF5.1SP1RP2 and tracked by incident #2230716 tentatively expected in May 2011.

Work around:

Start the conversion process

# preconvert

# showconvert

# doconvert >>>when it asks to stop vxdctl, issue the vxdctl stop and re-run the doconvert

# vxdctl stop

# doconvert

When asked if you want to reboot or not answer “no”

When script exits check for the mounted “md” filesystems and unmount them. In this case /mnt and d10 were used.

# umount /mnt

Now issue the metaclear to remove all traces of md devices.

 # metaclear –a

And now issue:

# init 6

to reboot and the conversion completes correctly.

 

Applies To

Solaris 9 Solaris 10 SF 5.0MP3 SF 5.1

Issue/Introduction

Converting a Solaris volume manager metadevice to VxVM, after executing /opt/VRTSvxvm/vmcvt/bin/doconvert and rebooting the conversion does not complete upon reboot. This is due to /etc/lvm/md.cf file is not cleared of all meta devices and VxVM detects meta data devices by reading this file.