Showing posts with label Veritas Volume Manager. Show all posts
Showing posts with label Veritas Volume Manager. Show all posts

Wednesday, June 22, 2011

Live upgrade of Veritas mirrored system

System had two disks c1t0d0 and c1t1d0, so first break mirror and remove disk c1t1d0 from disk group.

1.       # vxplex -g rootdg dis rootvol-02 swapvol-02 home-02
2.       # vxdg -g rootdg -k rmdisk rootdg02
3.       Create a file autoreg with entry “auto_reg=disable”
4.       Modify vxlustart script and mention auto registration disable by putting –k /tmp/autoreg into command running luupgrade otherwise it will fail.
5.       ./vxlustart -u 5.10 -d c1t1d0s2  -g rootdg -s /cdrom
6.       ./vxlufinish –u 5.10 –g <new root disk group name>
7.       shutdown –y –g0 –i6
8.       After few reboots system will come up with new Boot environment, mirror the rootdisk and remove old rootdg.

Wednesday, March 26, 2008

How to disable VxVM on a system?

1. Remove mirror from each file system
# vxassist -g rootdg remove mirror swapvol
# vxassist -g rootdg remove mirror export
# vxassist -g rootdg remove mirror rootvol

2. Comment out Vxvm load module entries from /etc/system

3. go to /etc/vx/reconfig.d/state.d
# rm root-done
# touch install-db

4. Copy pre VM vfstab file to /etc/vfstab.
5. Reboot the system.

Monday, February 18, 2008

How to mirror root disk?

1. Find out available disk name using vxdisk list

2. Do below
# ./vxmirror -g rootdg bootdisk bootmirror

Saturday, August 18, 2007

How to recover volume manager configuration after reinstall of Operating System

1. Disconnect all the disks other than root disk and reinstall OS

2. Add vxvm packages but do not run vxinstall

3. Add vxvm license

4. touch /etc/vx/reconfig.d/state.d/install-db

5. Shutdown system

6. Reattach the disks.

7. Reboot the system

8. Bring up the system in single user mode.

9. remove install-db file created above.

10. Start some Volume manager I/O daemons
#vxiod set 10

11. Start volume manager config daemon vxconfigd in disable mode
#vxconfigd –m disable

12. Initialize vxconfigd daemon
#Vxdctl init

13. Initialize the DMP subsystem
#vxdctl initdmp

14. Enable vxconfigd
#vxdctl enable

15. Reboot the system (Hot relocation daemon should not be running at this time when you are doing reconfiguration)

Friday, July 27, 2007

How to configure new EMC lun

1. If lun addresses are NOT in /kernel/drv/sd.conf:
- add new lun addresses at the proper target
- Do touch /reconfigure
- Do a reboot

2. If lun addresses were already in sd.conf:
- devfsadm

3. If using powerpath :
- /etc/powercf -q
- /etc/powermt load
- /etc/powermt config

4. Now run 'format' to put a label on the disks

5. Do 'vxdctl enable' to allow veritas to rescan the devices

6. Use vxdisksetup/vxdiskadd/veritas gui etc. to bring the new disk into
veritas control