vxdisksetup returns errors and vxdiskadm does not
Updated: 21 May 2010 | 4 comments
#./vxdisksetup -i c4t1d0 VxVM vxedvtoc ERROR V-5-1-8300 UNKNOWN ERROR WHILE WRITTING VTOC My-Solaris#
If I use vxdiskadm, it allows me to encapsulate the drive, but, it asks for a reboot - is this expected behavior? Am I supposed to reboot everytime I encapsulate a drive?
Kartik Vashishta
discussion Filed Under:
Comments
vxdisksetup returns errors and vxdiskadm does not
Vxdisksetup and encapsulating a disk via vxdiskadm are two very different things.
vxdisksetup:
Vxdisksetup configures the disk for use by Veritas Volume Manager (VxVM). vxdisksetup is called by the vxdiskadd command as part of initial disk configuration. It is not typically necessary to call this command directly.
I believe you are sellecting the root disk encapsulate & mirror in vxdiskadm. Is this for rootdg?
See the guide, page 114:
http://sfdoccentral.symantec.com/sf/5.0/solaris/pd...
From the vxencap man page:
"In the case of partitions that contain file systems, the entries in /etc/vfstab are modified to use the new volume devices. ... A reboot may be necessary to complete the process of encapsulation. "
Encapsulation is only disk/volumes where you are saving data. There are challenges to growing and shrinking encapsulated data. (until 5.0mp3). So, if it's not the boot disks, it's probably better to create a new volume & filesystem, copy the data, umount the old, remount the new in it's place, and change the mount device in /etc/vfstab.
As mentioned above, these are
As mentioned above, these are two different things..
1. Error while running vxdisksetup,
-- Is this drive visible in format ?
-- Does it contain a valid VTOC ? can you see a VTOC table when you run prtvtoc <raw_dev> ?
2. Regarding encapsulation
-- Yes, encapsulation requires reboot, as explained above, it is separate process for separate purpose.
Hope this helps.
Gaurav
PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
vxdisksetup is for empty disk
while encapsulation is for a disk which already contains data.
Reboot is only needed for encapsulation of root disk.
vxdisksetup / vxdiskadm / encapsulate
Would you like to reply?
Login or Register to post your comment.