cancel
Showing results for 
Search instead for 
Did you mean: 

vxdisksetup returns errors and vxdiskadm does not

Kartik_Vashisht
Level 2
#./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

4 REPLIES 4

Pam_Pledger_2
Level 3
Employee
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/pdf/vxvm_admin.pdf

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.



Gaurav_S
Moderator
Moderator
   VIP    Certified
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

wzis
Level 3
Employee Accredited Certified
while encapsulation is for a disk which already contains data.
Reboot is only needed for encapsulation of root disk.

prax
Level 3
Encapsulation you can use vxencap (would require a reboot)
vxdiskadm - high level command menu driven command.

Incase you still require clarification, do let know.

Cheers,
prax