Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 01-11-2008, 11:30 PM   #1
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
Veritas Volume manager encapsulation

Hi, all

I have one problem about vxvm disk encapsulation.

# uname -a
SunOS SB100 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Blade-100

I have used all 6 slices except slice 2 which indicates whole disk. I installed veritas storage foundation 5.0 then used its veritas volume
manager5.0 to encapsulate the root disk.

vxdiskadm -> Select option 2(Encapsulate disk)

After encapsulation and reboot, I found slice 3,4,5 got lost. I checked
veritas volume manager5.0 admin document, encapsulation needs the two free partition on the encapsulation needed disk. I dumpedmy disk label
for my root disk. We can see slice 3,4,5 got lost. slice6 is pub region
of vxvm and slice7 is private region of vxvm. Can someone tell me why
encapsulation caused my slisces data loss because encapsulation should
reserve all data on disk.

partition> p
Volume: SB100-Vo
Current partition table (original):
Total disk cylinders available: 38307 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 18 - 7547 14.65GB (7530/0/0) 30722400
1 swap wu 7548 - 8300 1.46GB (753/0/0) 3072240
2 backup wm 0 - 38306 74.53GB (38307/0/0) 156292560
3 unassigned wm 0 0 (76/0/0) 310080 <<<===*****
4 unassigned wm 0 0 (29299/0/0) 119539920 <<===*****
5 unassigned wm 0 0 (631/0/0) 2574480 <<===*****
6 - wu 18 - 38306 74.49GB (38289/0/0) 156219120
7 - wu 0 - 17 35.86MB (18/0/0) 7344
Old 01-13-2008, 04:01 PM   #2
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
veritas volume manager does change the vtoc when you encapsulate the boot disk. Every version, every type. Solaris volume manager does not.

Just because your partition table changed, it does not mean that the data is lost.

However, you are right regarding the need of two free slices for encapsulation.
Old 01-13-2008, 08:16 PM   #3
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
Hi, javier.e.menendez

How VXVM changed VTOC, what is its policy?
Old 01-15-2008, 05:32 AM   #4
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
The rules for encapsulation are simple. You need 2 free cylinders and two unassigned slices (0 cyls in size). The two free
cylinders are taken from swap if needed so that is not a problem. The two unassigned slices are non negotiable. Your original
vtoc and /etc/vfstab are saved on your system so they can be put back if needed when you run vxunroot and unencapsulate the disk if you want to.

That is why a lot of people prefer svm for the boot disk (it does not change the vtoc). If needed, you can boot cdrom -s, replace /etc/vfstab with the original, uncomment the last line of /etc/system, reboot and you are back up and running. Can't do that with vxvm since your vtoc does NOT point to your original locations. The manual unencapsulation is more of a pain.

Hope it helps,

Old 12-11-2008, 08:43 PM   #5
Paris Heng
Registered: Jul 2007
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 8.04, Solaris 10
Posts: 198

Rep: Reputation: 30
What is disk encapsulate actually? Why we need disk encapsulate?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to install Veritas volume manager on Centos bbolin Linux - Software 5 07-24-2006 06:40 AM
gnoem volume manager crashes doralsoral Linux - Software 2 10-28-2005 08:07 AM
logical volume manager plythgam Linux - Software 1 11-08-2004 10:47 AM
Logical Volume Manager sidmark-2850 Linux - General 3 01-02-2004 01:25 PM
Question about Linux Volume Manager Viper Slackware 1 11-24-2002 08:00 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration