Wednesday, April 12, 2017

Procedure to replace the VxVM disks on HP-Ux

There are several ways to remove the disk, but to make sure that rootdg is not affected by any action, I would recommend to remove the disk from rootdg first, by using

# vxdg -g rootdg rmdisk rootdg02

# vxdisk offline c4t8d0

# vxdisk list
c4t8d0  should have status "offline"

Now change the disk (physical HW). After adding the disk run

# vxdctl enable

# vxdisk list
if c4t8d0 is still "offline"

# vxdisk online c4t8d0

# vxdisk list
disk should be in status "online invalid"  if not "vxconfigd -k -m enable"

Now you have to add the disk to rootdg again

# /etc/vx/bin/vxdisksetup -i c4t8d0

# vxdg -g rootdg addisk rootdg02=c4t8d0

Thursday, April 6, 2017

Upgrading the Firmware on Solaris 


1) From the System Console execute the following command to update the firmware


JUPI_ORD4_SC1:SC> flashupdate -f ftp://root:toor@10.3.5.45//114527-12 all scapp rtos

As part of this update, the system controller will automatically reboot.
RTOS will be upgraded automatically during the next boot.
ScApp will be upgraded automatically during the next boot.

After this update you must reboot each active domain that was upgraded.

Rebooting will interrupt any current operations.
This includes keyswitch changes, Solaris reboots
and all current connections.
Do you want to continue? [no] yes
Waiting for critical processes to finish.  This may take a while.
Critical processes have finished.

Retrieving: ftp://root:toor@10.3.5.45//114527-12/sgcpu.flash
Validating  ................... Done

Programming PROM /N0/SB0/FP0
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB0/FP1
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB1/FP0
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB1/FP1
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB2/FP0
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB2/FP1
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB3/FP0
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB3/FP1
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB4/FP0
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB4/FP1
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB5/FP0
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB5/FP1
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Retrieving: ftp://root:toor@10.3.5.45//114527-12/sgpci.flash
Validating  ....... Done

Programming PROM /N0/IB6/FP0
Erasing     ...... Done
Programming ...... Done
Verifying   ...... Done

Programming PROM /N0/IB7/FP0
Erasing     ...... Done
Programming ...... Done
Verifying   ...... Done

Programming PROM /N0/IB8/FP0
Erasing     ...... Done
Programming ...... Done
Verifying   ...... Done

Programming PROM /N0/IB9/FP0
Erasing     ...... Done
Programming ...... Done
Verifying   ...... Done

Rebooting the SC to automatically complete the upgrade.

Rebooting. All network client connections closed. Reestablish any needed connections.
Connection closed by foreign host.

bash#

Saturday, April 1, 2017

Virtual to Virtual (V2V) Migration on Solaris 10

Source server:

1) Get the hostid of the virtual server
#zlogin eharsh001 hostid

2) Shutdown the server
#zoneadm -z eharsh001 halt

3) Take the copy of the server using CPIO and sent to NFS location
#cd /zones
#find eharsh001 -print | cpio -oP@ | gzip > /mnt/hpnfs/SOLARIS/eharsh001.cpio.gz




Destination server:

1)  Attach the zone
#zoneadm -z eharsh001 attach -a /mnt/hpnfs/SOLARIS/eharsh001.cpio.gz

2) Boot the zone
#zoneadm list -vc

#zoneadm -z eharsh001 boot
Configure ASM disks for Oracle DB on Linux

1) Get the LUNS for ASM disks and configure in below file :

#vi /etc/udev/rules.d/96-asmmultipath.rules
ACTION=="add|change", ENV{DM_UUID}=="mpath-360002ac0000000000000001400015b68", SYMLINK+="mapper/asm-data0001", GROUP="dba", OWNER="oragrid", MODE="0660"
ACTION=="add|change", ENV{DM_UUID}=="mpath-360002ac0000000000000001500015b68", SYMLINK+="mapper/asm-data0002", GROUP="dba", OWNER="oragrid", MODE="0660"
ACTION=="add|change", ENV{DM_UUID}=="mpath-360002ac0000000000000001600015b68", SYMLINK+="mapper/asm-data0003", GROUP="dba", OWNER="oragrid", MODE="0660"
ACTION=="add|change", ENV{DM_UUID}=="mpath-360002ac0000000000000001700015b68", SYMLINK+="mapper/asm-data0004", GROUP="dba", OWNER="oragrid", MODE="0660"
ACTION=="add|change", ENV{DM_UUID}=="mpath-360002ac0000000000000001800015b68", SYMLINK+="mapper/asm-arch0001", GROUP="dba", OWNER="oragrid", MODE="0660"
ACTION=="add|change", ENV{DM_UUID}=="mpath-360002ac0000000000000001900015b68", SYMLINK+="mapper/asm-arch0002", GROUP="dba", OWNER="oragrid", MODE="0660"
ACTION=="add|change", ENV{DM_UUID}=="mpath-360002ac0000000000000002a00015b68", SYMLINK+="mapper/asm-redo0001", GROUP="dba", OWNER="oragrid", MODE="0660"
ACTION=="add|change", ENV{DM_UUID}=="mpath-360002ac0000000000000002b00015b68", SYMLINK+="mapper/asm-redo0002", GROUP="dba", OWNER="oragrid", MODE="0660"

2)  Reload the rules using below command to update to kernel.
 # /sbin/udevadm control --reload-rules
 # /sbin/udevadm trigger --type=devices --action=change