Sun Solaris

ID #1025

OS Patching technique with VxVM

Check partition table of altroot. create underlying partitions if necessary.

No need for the home volume.

# /etc/vx/bin/vxmksdpart -g rootdg altroot-03 1 0x03 0x01
# /etc/vx/bin/vxmksdpart -g rootdg altroot-04 5 0x00 0x00
# /etc/vx/bin/vxmksdpart -g rootdg altroot-05 6 0x07 0x00
# /etc/vx/bin/vxmksdpart -g rootdg altroot-02 7 0x00 0x00

Remove plex's from altroot

# vxplex dis rootvol-02
# vxplex dis swapvol-02
# vxplex dis usrvol-02
# vxplex dis usr-02
# vxplex dis var-02
# vxplex dis opt-02
# vxplex dis home-02

Make temporary volume and mount it

# vxmake -U fsgen vol rootvoltmp plex=rootvol-02
# vxvol start rootvoltmp
# fsck -y /dev/vx/dsk/rootvoltmp
** /dev/vx/dsk/rootvoltmp
** Last Mounted on /
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=17005 OWNER=root MODE=100644
SIZE=262 MTIME=Mar 30 12:46 2001
CLEAR? yes

UNREF FILE I=919349 OWNER=root MODE=100644
SIZE=0 MTIME=Mar 30 12:46 2001
LEAR? yes

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? yes

62098 files, 1636433 used, 6034540 free (12124 frags, 752802 blocks, 0.1%
fragmentation)

***** FILE SYSTEM WAS MODIFIED *****
#
# mount /dev/vx/dsk/rootvoltmp /mnt
# cd /mnt/etc

backup /mnt/etc/vfstab, copy original vfstab, and edit /mnt/etc/vfstab to match partitions created in 1. Make sure to change the disk to that which is associated with altroot.

# cp vfstab vfstab.disable
# cp system system.disable
# cp vfstab.prevm vfstab
# vi /mnt/etc/vfstab

Do not start volume manager at boot:

# touch /mnt/etc/vx/reconfig.d/state.d/install-db

Edit /etc/system and comment out:

#rootdev:/pseudo/vxio@0:0
#set vxio:vol_rootdev_is_volume=1

Unmount /mnt and remove.

# vxvol stop rootvoltmp
# vxplex dis rootvol-02
# vxedit rm rootvoltmp

Install patches and if it blows up your machine.

# reboot -- vx-altroot

Manually start Volume Manager.

# vxiod set 10
# vxconfigd -d
# vxdctl enable

Attach the altroot plexes.

# vxplex att rootvol rootvol-02
# vxplex att swapvol swapvol-02
# vxplex att usr usr-02
# vxplex att var var-02
# vxplex att opt opt-02
# vxplex att home home-02

mark the rootdisk plexes as stale

# vxmend fix stale rootvol-01
# vxmend fix stale swapvol-01
# vxmend fix stale usr-01
# vxmend fix stale var-01
# vxmend fix stale opt-01
# vxmend fix stale home-01

if altroot plex's are off line they must be turned on. Run vxprint and make sure!

# vxmend on rootvol-02
# vxmend on swapvol-02
# vxmend on usr-02
# vxmend on var-02
# vxmend on opt-02
# vxmend on home-02

Mark altroot plexes as active

# vxmend fix active rootvol-02
# vxmend fix active usr-02
# vxmend fix active var-02
# vxmend fix active opt-02
# vxmend fix active home-02

Restore original files

# cp /etc/vfstab.disable /etc/vfstab
# cp /etc/system.disable /etc/system
# rm /etc/vx/reconfig.d/state.d/install-db

Reboot from altroot and allow mirrors to sync.

# reboot -- vx-altroot

When mirrors are in sync. Reboot again and allow to boot from rootdisk.

# reboot

Tags: Sun Solaris, Veritas, VxVM

Related entries:

Last update: 2009-06-19 17:54
AuthorLuke Francis
Revision: 1.0

Digg it! Print this record Send FAQ to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry