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 >

# 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
# 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
# 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