Root disk encapsulation - VxVM question

Hi,

I'm trying to encapsulate and mirror the root disk with VxVM.

I saw a script on the net with the following lines:

/usr/sbin/vxconfigd -k -m disable

/usr/sbin/vxdctl init

/usr/sbin/vxdg init rootdg

/usr/lib/vxvm/bin/vxencap -c -g rootdg rootdisk=$ROOTDISK

Do you know why lines 1-2 are needed if needed at all... ?

How many reboots are needed for the operation to complete?

next - mirroring:

etc/vx/bin/vxdisksetup -i $MIRRDISK

/usr/sbin/vxdg -g rootdg adddisk mirrordisk=$MIRRDISK

/etc/vx/bin/vxmirror -g rootdg rootdisk mirrordisk

will this work ok? how to track the mirroring process status?

Thanks

[696 byte] By [AssafL] at [2007-11-26 11:09:15]
# 1

Hi,

The vxdctl command is needed to enable the disks to be used in Veritas Volume Manager (if i recall correctly we always used to do a vxdctl enable on disks we wanted to use within veritas).

You can track the mirroring process with the vxtask command.

The vxtask command will show you which tasks within veritas volume manager are running and what kind of process it is... for instance mirroring etc.

Hope this helps a bit.

Nico

NicoB at 2007-7-7 3:23:47 > top of Java-index,General,Sys Admin Best Practices...
# 2
Hi Nico, that was a fast reply...Do you have any idea what:usr/sbin/vxconfigd -k -m disable is for?Thanks
AssafL at 2007-7-7 3:23:47 > top of Java-index,General,Sys Admin Best Practices...
# 3

Hmm,

I've searched around a bit and vxconfigd manages the veritas volume manager resources. The -k option kills the daemon and lets it restart itself. I don't know where the -m option stands for or what the disable behind it stands for. Don't you have access to the manpages so you can find this out ?

Regards,

Nico

NicoB at 2007-7-7 3:23:47 > top of Java-index,General,Sys Admin Best Practices...
# 4
Hi,I have access... I just don't understand what's the purpose of this command in root disk encapsulation...
AssafL at 2007-7-7 3:23:47 > top of Java-index,General,Sys Admin Best Practices...
# 5

I think the script in the first post is coming from some tools that attempt to do a full VxVM installation and encapsulation.

The vxconfigd is run because the script assumes that VxVM was not started due to the lack of root disks.

If vxconfigd is already running, you don't have to re-run it. It has nothing to do with encapsulating a disk in isolation. But that event may also correspond with an initial VxVM installation.

--

Darren

Darren_Dunham at 2007-7-7 3:23:47 > top of Java-index,General,Sys Admin Best Practices...
# 6
Thanks Darren... it makes sense...
AssafL at 2007-7-7 3:23:47 > top of Java-index,General,Sys Admin Best Practices...
# 7
One more thing please,Is there a benefit not to keep the original root disk encapsulated but to mirror it, break the mirror and initialize it?I've read: http://www.sun.com/blueprints/0800/vxvmref.pdfDo you have any pros/cons about this?Thanks
AssafL at 2007-7-7 3:23:47 > top of Java-index,General,Sys Admin Best Practices...
# 8

> http://www.sun.com/blueprints/0800/vxvmref.pdf

>

> Do you have any pros/cons about this?

Two drawbacks to Veritas:

1. Price

2. Boot from CD-Rom

#2, usually a boot CD-Rom does not have Veritas drivers on it so working with a downed system in that situation can become a bit of problem. You can create a boot cd to work around this.

alan

alanpae at 2007-7-7 3:23:47 > top of Java-index,General,Sys Admin Best Practices...
# 9
If you want to use the "unencapsulated" procedure, that's fine. I've often used it.If you set your root disk to have only root and swap, it makes very little difference.-- Darren
Darren_Dunham at 2007-7-7 3:23:47 > top of Java-index,General,Sys Admin Best Practices...
# 10

> 2. Boot from CD-Rom

>

> #2, usually a boot CD-Rom does not have Veritas

> drivers on it so working with a downed system in that

> situation can become a bit of problem. You can

> create a boot cd to work around this.

But the root filesystem is always UFS (or I guess soon it could be ZFS), so booting from CD shouldn't be a big problem. You can't access the VxVM/VxFS items, but you can fix the boot drive to the point you can reboot.

--

Darren

Darren_Dunham at 2007-7-7 3:23:47 > top of Java-index,General,Sys Admin Best Practices...