VxVM Patching

===========================================================================================================
ukblx017:root# vxprint -hvt
Disk group: rootdg

V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE

v itmlv – ENABLED ACTIVE 1843200 SELECT – fsgen
pl itmlv-01 itmlv ENABLED ACTIVE 1852032 CONCAT – RW
sd rootdisk-04 itmlv-01 rootdisk 134241791 1852032 0 Disk_0 ENA
pl itmlv-02 itmlv ENABLED ACTIVE 1852032 CONCAT – RW
sd rootmirror-04 itmlv-02 rootmirror 134241792 1852032 0 Disk_1 ENA

v rootvol – ENABLED ACTIVE 67120896 ROUND – root
pl rootvol-01 rootvol ENABLED ACTIVE 67120896 CONCAT – RW
sd rootdisk-B0 rootvol-01 rootdisk 286596863 1 0 Disk_0 ENA
sd rootdisk-02 rootvol-01 rootdisk 0 67120895 1 Disk_0 ENA
pl rootvol-02 rootvol ENABLED ACTIVE 67120896 CONCAT – RW
sd rootmirror-01 rootvol-02 rootmirror 0 67120896 0 Disk_1 ENA

v scmlv – ENABLED ACTIVE 614400 SELECT – fsgen
pl scmlv-01 scmlv ENABLED ACTIVE 630912 CONCAT – RW
sd rootdisk-05 scmlv-01 rootdisk 136093823 630912 0 Disk_0 ENA
pl scmlv-02 scmlv ENABLED ACTIVE 630912 CONCAT – RW
sd rootmirror-05 scmlv-02 rootmirror 136093824 630912 0 Disk_1 ENA

v swapvol – ENABLED ACTIVE 33560448 ROUND – swap
pl swapvol-01 swapvol ENABLED ACTIVE 33560448 CONCAT – RW
sd rootdisk-01 swapvol-01 rootdisk 67120895 33560448 0 Disk_0 ENA
pl swapvol-02 swapvol ENABLED ACTIVE 33560448 CONCAT – RW
sd rootmirror-02 swapvol-02 rootmirror 67120896 33560448 0 Disk_1 ENA

v var – ENABLED ACTIVE 33560448 ROUND – fsgen
pl var-01 var ENABLED ACTIVE 33560448 CONCAT – RW
sd rootdisk-03 var-01 rootdisk 100681343 33560448 0 Disk_0 ENA
pl var-02 var ENABLED ACTIVE 33560448 CONCAT – RW
sd rootmirror-03 var-02 rootmirror 100681344 33560448 0 Disk_1 ENA
===========================================================================================================
Detach the 2nd Plex from the Primary Disk.
===========================================================================================================
vxplex -g rootdg dis itmlv-02

vxplex -g rootdg dis rootvol-02

vxplex -g rootdg dis scmlv-02

vxplex -g rootdg dis swapvol-02

vxplex -g rootdg dis var-02
===========================================================================================================
Remove the second disk plexs.
===========================================================================================================
vxedit -g rootdg -rf rm itmlv-02

vxedit -g rootdg -rf rm rootvol-02

vxedit -g rootdg -rf rm scmlv-02

vxedit -g rootdg -rf rm swapvol-02

vxedit -g rootdg -rf rm var-02
===========================================================================================================
ukblx017:root# vxprint -htg rootdg
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE

dg rootdg default default 99000 1272792094.10.ukblx017

dm rootdisk Disk_0 auto 101759 286596864 –
dm rootmirror Disk_1 auto 101759 286596864 –

v itmlv – ENABLED ACTIVE 1843200 SELECT – fsgen
pl itmlv-01 itmlv ENABLED ACTIVE 1852032 CONCAT – RW
sd rootdisk-04 itmlv-01 rootdisk 134241791 1852032 0 Disk_0 ENA

v rootvol – ENABLED ACTIVE 67120896 ROUND – root
pl rootvol-01 rootvol ENABLED ACTIVE 67120896 CONCAT – RW
sd rootdisk-B0 rootvol-01 rootdisk 286596863 1 0 Disk_0 ENA
sd rootdisk-02 rootvol-01 rootdisk 0 67120895 1 Disk_0 ENA

v scmlv – ENABLED ACTIVE 614400 SELECT – fsgen
pl scmlv-01 scmlv ENABLED ACTIVE 630912 CONCAT – RW
sd rootdisk-05 scmlv-01 rootdisk 136093823 630912 0 Disk_0 ENA

v swapvol – ENABLED ACTIVE 33560448 ROUND – swap
pl swapvol-01 swapvol ENABLED ACTIVE 33560448 CONCAT – RW
sd rootdisk-01 swapvol-01 rootdisk 67120895 33560448 0 Disk_0 ENA

v var – ENABLED ACTIVE 33560448 ROUND – fsgen
pl var-01 var ENABLED ACTIVE 33560448 CONCAT – RW
sd rootdisk-03 var-01 rootdisk 100681343 33560448 0 Disk_0 ENA
===========================================================================================================
Run the FSCK on the All the Slices to know which File system is Mounted on the Which Slice.
===========================================================================================================

fsck -F ufs /dev/rdsk/c8t500000E0113C6770d0s0

fsck -F ufs /dev/rdsk/c8t500000E0113C6770d0s1

fsck -F ufs /dev/rdsk/c8t500000E0113C6770d0s5

fsck -F ufs /dev/rdsk/c8t500000E0113C6770d0s6
===========================================================================================================
Then Mount The Second Disk on the /Mnt
===========================================================================================================

mount -F ufs /dev/dsk/c8t500000E0113C6770d0s0 /mnt

===========================================================================================================
Copy the vfstab and system File
===========================================================================================================
cp -rp /mnt/etc/vfstab /mnt/etc/vfstab_30_march_2014

cp -rp /mnt/etc/system /mnt/etc/system_30_march_2014
===========================================================================================================
Change the Entries in the vfstab and system File
===========================================================================================================
Before Change the Entries Like:
——————————-
/dev/vx/dsk/bootdg/swapvol – – swap – no nologging
/dev/vx/dsk/bootdg/rootvol /dev/vx/rdsk/bootdg/rootvol / ufs 1 no nologging
/dev/vx/dsk/bootdg/var /dev/vx/rdsk/bootdg/var /var ufs 1 no –

After Change the Entries Like:
——————————-
/dev/dsk/c8t500000E0113C6770d0s1 – – swap – no nologging
/dev/dsk/c8t500000E0113C6770d0s0 /dev/rdsk/c8t500000E0113C6770d0s0 / ufs 1 no nologging
/dev/dsk/c8t500000E0113C6770d0s6 /dev/rdsk/c8t500000E0113C6770d0s5 /var ufs 1 no –
===========================================================================================================
Change the Entries in the system File:
===========================================================================================================
Before Change the Entries Like:
——————————-

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

After Change the Entries Like:
——————————-

*rootdev:/pseudo/vxio@0:0
*set vxio:vol_rootdev_is_volume=1
===========================================================================================================
To stop the vxvm deamon please create a install-db file
( This is to encapsulate the disk from Vxvm )
touch /mnt/etc/vx/reconfig.d/state.d/install-db

Take the backup of root-done file( we can remove this file. It can create automatically when we bring disk under VxVM

mv /mnt/etc/vx/reconfig.d/state.d/root-done /mnt/etc/vx/reconfig.d/state.d/root-done.backup
===========================================================================================================
Unmount the File system:
————————
umount -f /mnt and reboot from the secondary disk now
===========================================================================================================
Bring the Server into OK Prompt:
——————————–
shutdown -g0 -i0 -y
===========================================================================================================
Enter the Command to check devalias:
————————————
ok>devalias

here it will give list of the Devices, then boot from the Second Disk

ok>boot vx-mirrordisk
===========================================================================================================
Once Came up the server from the second Disk check and bring down the Server in to ok Prompt and enter the Server

into Single User mode:
—————————
ok>boot vx-rootdisk -s
===========================================================================================================
It will ask the Root password:
——————————
Requesting System Maintenance Mode
SINGLE USER MODE

Root password for system maintenance (control-d to bypass):
single-user privilege assigned to /dev/console.
Entering System Maintenance Mode

Jun 22 03:40:35 su: ‘su root’ succeeded for root on /dev/console
Oracle Corporation SunOS 5.10 Generic Patch January 2005
You have mail.
# bash
bash-3.2# who -r
run-level 2013-06-22 03:40
===========================================================================================================
Enter the Patch Location and execute the Installpatchset command:
—————————————————————–
who -r : it will let you know the server is in run level.

enter into the patch location:
——————————
cd /var/tmp/patch

and execute the Command:
bash-3.2# ./installpatchset –s10patchset

Setup ………

Recommended OS Patchset Solaris 10 SPARC (2013.03.29)

The patch set will complete installation in this session. No intermediate
reboots are required.

Application of patches started : 2013.06.22 03:43:18

Applying 120900-04 ( 1 of 343) … skipped
Applying 121133-02 ( 2 of 343) … skipped
Applying 119254-88 ( 3 of 343) … success
Applying 119317-01 ( 4 of 343) … skipped
Applying 121296-01 ( 5 of 343) … skipped
Applying 138215-01 ( 6 of 343) … skipped
Applying 148336-01 ( 7 of 343) … success
Applying 146054-07 ( 8 of 343) … success

Installation of patch set complete. PLEASE REBOOT THE SYSTEM.

Install log files written :
/var/sadm/install_data/s10s_rec_patchset_short_2013.06.22_03.43.18.log
/var/sadm/install_data/s10s_rec_patchset_verbose_2013.06.22_03.43.18.log
===========================================================================================================
Bring the server in to OK Prompt:
———————————

Step 1:shutdown -g0 -i0 -y
===========================================================================================================
check the devalias:
——————-
{1e} ok devalias

Enter from the Primary Disk.
===========================================================================================================
Once Comes up Please check all the Mount Points are Mounted or not.
===========================================================================================================
After Completion of the Patch wait 15 days to do Mirror the Second Disk.if we will not any Issue From Application
And Database team then do the Mirror
===========================================================================================================

Output before Mirror the Second Disk:
————————————-
ukblx018:root# vxprint -g rootdg -hvt
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE

v itmlv – ENABLED ACTIVE 1843200 SELECT – fsgen
pl itmlv-01 itmlv ENABLED ACTIVE 1852032 CONCAT – RW
sd rootdisk-04 itmlv-01 rootdisk 134241791 1852032 0 Disk_0 ENA

v rootvol – ENABLED ACTIVE 67120896 ROUND – root
pl rootvol-01 rootvol ENABLED ACTIVE 67120896 CONCAT – RW
sd rootdisk-B0 rootvol-01 rootdisk 286596863 1 0 Disk_0 ENA
sd rootdisk-02 rootvol-01 rootdisk 0 67120895 1 Disk_0 ENA

v scmlv – ENABLED ACTIVE 614400 SELECT – fsgen
pl scmlv-01 scmlv ENABLED ACTIVE 630912 CONCAT – RW
sd rootdisk-05 scmlv-01 rootdisk 136093823 630912 0 Disk_0 ENA

v swapvol – ENABLED ACTIVE 33560448 ROUND – swap
pl swapvol-01 swapvol ENABLED ACTIVE 33560448 CONCAT – RW
sd rootdisk-01 swapvol-01 rootdisk 67120895 33560448 0 Disk_0 ENA

v var – ENABLED ACTIVE 33560448 ROUND – fsgen
pl var-01 var ENABLED ACTIVE 33560448 CONCAT – RW
sd rootdisk-03 var-01 rootdisk 100681343 33560448 0 Disk_0 ENA
ukblx018:root#

Steps to do Mirror:
——————-

Step1: Enter the vxdiskadm Command.

Step2: Select the Option 6.

Step3: Select the Source Disk name[rootdisk]

Step4: Select the Destination Disk name[rootmirror]

Step5: it will ask like this Continue with operation? enter Y.

it will start all the Volumes to Mirror.

ukblx018:root# vxdiskadm

Volume Manager Support Operations
Menu: VolumeManager/Disk

1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM’s view
18 Allow multipathing/Unsuppress devices from VxVM’s view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information

? Display help about menu
?? Display help about the menuing system
q Exit from menus

Select an operation to perform: 6

Mirror volumes on a disk
Menu: VolumeManager/Disk/Mirror
This operation can be used to mirror volumes on a disk. These
volumes can be be mirrored onto another disk or onto any
available disk space. Volumes will not be mirrored if they are
already mirrored. Also, volumes that are comprised of more than
one subdisk will not be mirrored.

Mirroring volumes from the boot disk will produce a disk that
can be used as an alternate boot disk.

At the prompt below, supply the name of the disk containing the
volumes to be mirrored.

Enter disk name [,list,q,?] list

Disk group: rootdg

DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE

dm rootdisk Disk_0 auto 101759 286596864 –
dm rootmirror Disk_1 auto 101759 286596864 –

Disk group: appdg

DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE

dm appdg01 EMC_CLARiiON0_1 auto 2559 138400768 –
dm appdg02 EMC_CLARiiON0_3 auto 2559 138400768 –
dm appdg03 EMC_CLARiiON0_2 auto 2559 138400768 –
dm appdg04 EMC_CLARiiON0_0 auto 2048 138404096 –
dm appdg05 EMC_CLARiiON0_4 auto 2048 138404096 –
dm appdg06 EMC_CLARiiON0_5 auto 69375 209633280 –
dm appdg07 EMC_CLARiiON0_6 auto 66303 62844160 –
dm appdg08 EMC_CLARiiON0_7 auto 69375 209633280 –

Enter disk name [,list,q,?] rootdisk
You can choose to mirror volumes from disk rootdisk onto any
available disk space, or you can choose to mirror onto a specific
disk. To mirror to a specific disk, select the name of that disk.
To mirror to any available disk space, select “any”.

Enter destination disk [,list,q,?] (default: any) rootmirror
The requested operation is to mirror all volumes on disk rootdisk
in disk group rootdg onto available disk space on disk rootmirror.
VxVM NOTICE V-5-2-3650 This operation can take a long time to complete.

Continue with operation? [y,n,q,?] (default: y)

VxVM vxmirror INFO V-5-2-22 Mirror volume rootvol …
VxVM vxmirror INFO V-5-2-22 Mirror volume swapvol …
VxVM vxmirror INFO V-5-2-22 Mirror volume var …
VxVM vxmirror INFO V-5-2-22 Mirror volume itmlv …
VxVM vxmirror INFO V-5-2-22 Mirror volume scmlv …
VxVM INFO V-5-2-674 Mirroring of disk rootdisk is complete.

Mirror volumes on another disk? [y,n,q,?] (default: n)n

Check the status of the Mirroring with Using Vxtask list

O/P Like this :
—————
ukblx018:root# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
161 ATCOPY/R 67.45% 0/67120896/45273088 PLXATT rootvol rootvol-02 rootdg
ukblx018:root# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
161 ATCOPY/R 69.88% 0/67120896/46905344 PLXATT rootvol rootvol-02 rootdg
ukblx018:root# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
161 ATCOPY/R 83.24% 0/67120896/55873536 PLXATT rootvol rootvol-02 rootdg
ukblx018:root# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
169 ATCOPY/R 10.03% 0/33560448/3366912 PLXATT swapvol swapvol-02 rootdg
ukblx018:root#
========================================================================================
Finally check the Status of the Mirror.
————————————–
ukblx018:root# vxprint -g rootdg -hvt
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE

v itmlv – ENABLED ACTIVE 1843200 SELECT – fsgen
pl itmlv-01 itmlv ENABLED ACTIVE 1852032 CONCAT – RW
sd rootdisk-04 itmlv-01 rootdisk 134241791 1852032 0 Disk_0 ENA
pl itmlv-02 itmlv ENABLED ACTIVE 1852032 CONCAT – RW
sd rootmirror-04 itmlv-02 rootmirror 134241792 1852032 0 Disk_1 ENA

v rootvol – ENABLED ACTIVE 67120896 ROUND – root
pl rootvol-01 rootvol ENABLED ACTIVE 67120896 CONCAT – RW
sd rootdisk-B0 rootvol-01 rootdisk 286596863 1 0 Disk_0 ENA
sd rootdisk-02 rootvol-01 rootdisk 0 67120895 1 Disk_0 ENA
pl rootvol-02 rootvol ENABLED ACTIVE 67120896 CONCAT – RW
sd rootmirror-01 rootvol-02 rootmirror 0 67120896 0 Disk_1 ENA

v scmlv – ENABLED ACTIVE 614400 SELECT – fsgen
pl scmlv-01 scmlv ENABLED ACTIVE 630912 CONCAT – RW
sd rootdisk-05 scmlv-01 rootdisk 136093823 630912 0 Disk_0 ENA
pl scmlv-02 scmlv ENABLED ACTIVE 630912 CONCAT – RW
sd rootmirror-05 scmlv-02 rootmirror 136093824 630912 0 Disk_1 ENA

v swapvol – ENABLED ACTIVE 33560448 ROUND – swap
pl swapvol-01 swapvol ENABLED ACTIVE 33560448 CONCAT – RW
sd rootdisk-01 swapvol-01 rootdisk 67120895 33560448 0 Disk_0 ENA
pl swapvol-02 swapvol ENABLED ACTIVE 33560448 CONCAT – RW
sd rootmirror-02 swapvol-02 rootmirror 67120896 33560448 0 Disk_1 ENA

v var – ENABLED ACTIVE 33560448 ROUND – fsgen
pl var-01 var ENABLED ACTIVE 33560448 CONCAT – RW
sd rootdisk-03 var-01 rootdisk 100681343 33560448 0 Disk_0 ENA
pl var-02 var ENABLED ACTIVE 33560448 CONCAT – RW
sd rootmirror-03 var-02 rootmirror 100681344 33560448 0 Disk_1 ENA
ukblx018:root#
========================================================================================

Now All the Disks in the Good Status.

END OF THE dOCUMENT

========================================================================================