Monday, August 1, 2011

HPUX LVM vg00 mirror

vg00 originally mirrored with disk9_p2 and disk8_p2. Want to get rid of disk9 and disk8 and use disk6 and disk7.

serverA:home/user $ ioscan -fnCdisk
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 0 0/0/0/2/0/0/0.8.0 sdisk CLAIMED DEVICE HP EH0146FAWJB
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
disk 1 0/0/0/2/0/0/0.8.1 sdisk CLAIMED DEVICE HP EH0146FAWJB
/dev/dsk/c0t8d1 /dev/rdsk/c0t8d1
disk 2 0/0/0/5/0/0/0.1.6.0.0.0.1 sdisk CLAIMED DEVICE HP HSV450
/dev/dsk/c2t0d1 /dev/dsk/c2t0d1s2 /dev/rdsk/c2t0d1 /dev/rdsk/c2t0d1s2
/dev/dsk/c2t0d1s1 /dev/dsk/c2t0d1s3 /dev/rdsk/c2t0d1s1 /dev/rdsk/c2t0d1s3
disk 3 0/0/0/5/0/0/0.1.6.0.0.0.2 sdisk CLAIMED DEVICE HP HSV450
/dev/dsk/c2t0d2 /dev/dsk/c2t0d2s2 /dev/rdsk/c2t0d2 /dev/rdsk/c2t0d2s2
/dev/dsk/c2t0d2s1 /dev/dsk/c2t0d2s3 /dev/rdsk/c2t0d2s1 /dev/rdsk/c2t0d2s3
disk 4 0/0/0/5/0/0/1.1.6.0.0.0.1 sdisk CLAIMED DEVICE HP HSV450
/dev/dsk/c4t0d1 /dev/dsk/c4t0d1s2 /dev/rdsk/c4t0d1 /dev/rdsk/c4t0d1s2
/dev/dsk/c4t0d1s1 /dev/dsk/c4t0d1s3 /dev/rdsk/c4t0d1s1 /dev/rdsk/c4t0d1s3
disk 5 0/0/0/5/0/0/1.1.6.0.0.0.2 sdisk CLAIMED DEVICE HP HSV450
/dev/dsk/c4t0d2 /dev/dsk/c4t0d2s2 /dev/rdsk/c4t0d2 /dev/rdsk/c4t0d2s2
/dev/dsk/c4t0d2s1 /dev/dsk/c4t0d2s3 /dev/rdsk/c4t0d2s1 /dev/rdsk/c4t0d2s3
serverA:home/user $

do_mirr_vg00.ksh -m /dev/disk/disk6

OR

read more...

Patching HPUX server using Dynamic Root Disk

Check it out here: http://jreypo.wordpress.com/2010/05/24/patching-a-server-using-dynamic-root-disk/

Wednesday, January 26, 2011

Solaris - CPU

Nothing fancy, just a quick note for thyself

# psrinfo -vp
The physical processor has 1 virtual processor (0)
x86 (GenuineIntel family 6 model 23 step 10 clock 2387 MHz)
Intel(r) Core(tm)2 Duo CPU P8600 @ 2.40GHz
#


Macam cat /proc/cpuinfo kat linux,

# kstat cpu_info
module: cpu_info instance: 0
name: cpu_info0 class: misc
brand Intel(r) Core(tm)2 Duo CPU P8600 @ 2.40GHz
cache_id 0
chip_id 0
clock_MHz 2387
clog_id 0
core_id 0
cpu_type i386
crtime 31321.127312219
current_clock_Hz 2387348216
current_cstate 0
family 6
fpu_type i387 compatible
implementation x86 (GenuineIntel family 6 model 23 step 10 clock 2387 MHz)
model 23
ncore_per_chip 1
ncpu_per_chip 1
pg_id -1
pkg_core_id 0
snaptime 33573.371480431
state on-line
state_begin 1295996392
stepping 10
supported_frequencies_Hz 2387348216
supported_max_cstates 0
vendor_id GenuineIntel

#

Monday, January 24, 2011

Solaris Zone

Create zone:
bash-3.00# zonecfg -z 1
1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:1> create
zonecfg:1> set zonepath=/opt/zones/1
zonecfg:1> add net
zonecfg:1:net> set physical=e1000g0
zonecfg:1:net> set address=192.168.1.111
zonecfg:1:net> end
zonecfg:1> add inherit-pkg-dir
zonecfg:1:inherit-pkg-dir> set dir=/opt
zonecfg:1:inherit-pkg-dir> end
zonecfg:1> verify
zonecfg:1> commit
zonecfg:1> exit

# zoneadm -z 1 install
Preparing to install zone <1>.
Creating list of files to copy from the global zone.
Copying <2924> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1102> packages on the zone.
Initialized <1102> packages on zone.
Zone <1> is initialized.
The file contains a log of
the zone installation.
#

# zoneadm -z 1 boot
# zlogin -C 1
(follow on screen instructions)

If you want to rename zone:
# zoneadm -z 1 halt
# vi /etc/zones/index (rename "1" to your new zone name, i.e. zone1x86)
# cd /etc/zones/
# mv 1.xml zone1x86.xml
# vi zone1x86.xml (change any reference "1" to new zone name, i.e. zone1x86)
# zoneadm -z zone1x86 boot

read more...

Sunday, January 23, 2011

Luser Attitude Readjustment Tool



lart(8)         lart(8)

NAME
       lart  - Luser  Attitude Readjustment Tool - use a lart to
       adjust lusers' attitudes

SYNOPSIS
       lart [ -use tool ] [ -bBfFgklp ] 

DESCRIPTION
       lart adjusts the attitudes of those pesky, clueless people
       who  rely  upon their  admins for everything from picking
       their mice off of the floor to turning on their monitors;
       namely, the  luser(8). Running lart with the appropriate
       arguments will cause  the  specified  luser  to run  away
       screaming in agony.  Alternatively, you can make the luser
       buy you a beer, after killing all of their processes.


Solaris 10 x86 on VMWare disk mirror


umount /export/home

bash-3.00# format
Searching for disks...done



AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@0,0/pci15ad,1976@10/sd@0,0
       1. c1t1d0
          /pci@0,0/pci15ad,1976@10/sd@1,0
Specify disk (enter its number):

read more...