lundi 24 août 2009
mercredi 12 août 2009
quicky : create / extend a fs on a redhat 5 with lvm
#vgs
or
#vgdisplay
create a lv :
#lvcreate -L 10G -n lvname vgname
format the lv to ext3:
#mkfs.ext3 /dev/vgname/lvname
to create the fs, need to add the correct entry in /etc/fstab
list the lvm /fs :
#lvdisplay
extend lv :
#lvextend -L +54 /dev/vg01/lvol10 /dev/sdk3
extend fs :
#resize2fs /dev/vg01/lvol10
samedi 13 juin 2009
Verify the PowerHa POL (Priority Override Location)
Primary instance POL : must be blank
Resetted via Cspoc, should not be disruptive.
mercredi 3 juin 2009
useful hmc commands
if not 1, then, on the partition :
partition :root / # /usr/sbin/rsct/bin/rmcctrl -z
partition :root / # /usr/sbin/rsct/install/bin/recfgct
0513-071 The ctcas Subsystem has been added.
partition :root / # /usr/sbin/rsct/bin/rmcctrl -s
0513-071 The ctrmc Subsystem has been added.
0513-059 The ctrmc Subsystem has been started.
Subsystem PID is 401430.
partition :root / # /usr/sbin/rsct/bin/rmcctrl -p
Migrate lpar (live mobility) :
migrlpar -o m -m P570origine -t P520destination -p Partitionabasculer
Migrate lpar (from /to MSP):
migrlpar -o v -m srcSystem -t destSystem -p myLPAR –I source_msp_id=2,dest_msp_name=S2_VIOS2
List all the systems :
lssyscfg -r sys -F name
List the scsi devices defined for a partition :
lssyscfg -r prof -m P570 --filter "lpar_names=darecb1" -F lpar_id,virtual_scsi_adapters
List all the defined scsi devices for a physical server :
lshwres -r virtualio --rsubtype scsi -m P570 --level lpar -F lpar_name,lpar_id,slot_num,remote_lpar_id,remote_slot_num --header
samedi 16 mai 2009
Problem determination PowerHA / HACMP
Collect logs : clsnap -d '/tmp' -p2 -n 'node1,node2'
or
snap -e
If cspoc pb : /tmp/cspoc.log <= more details
If Vg configuration is inconstitent between nodes :
1) Validate that all disks in a VG are know, on both nodes
node1 # lspv grep vg1
hdisk3 005a2b2a4dc045f3 vg1 active
hdisk4 005a2b2ab58a59b2 vg1 active
node 2 # lspv grep vg1
hdisk3 005a2b2a4dc045f3 vg1
hdisk4 is missing ....
if HACMP is > 5.4, and VG are not ehanced concurrent (which is not the case, since the vg is not "concurrent" but "active" then :
node 2 # lspv grep 005a2b2ab58a59b2
hdisk4 005a2b2ab58a59b2 None
2) Integrate it in the vg correctly
node1 # lqueryvg -p hdisk3 -T > /usr/es/sbin/cluster/etc/vg/vg1 <= this is to save the good timestamp for the cluster
node1 # varyonvg -ub vg1 <= From now on, NO MORE manipulation on vg1, on node 1, must occur...
node2 # importvg -L vg1 hdisk3
vg1
node2 # lqueryvg -p hdisk3 -T > /usr/es/sbin/cluster/etc/vg/vg1 <= This way, the timestamp is correct on both nodes.
node1 #varyonvg vg1 <= Things are back to normal, now.
This is the simplest way to refefine correctly the vg on backup node... But, this is when things are going smooth.... its not always that way....
First, if the pvid is not known on node 2... First, is it's zoning correctly defined ? if yes, you MUST have a disk in "none None" on your backup node. If you want it to be correctly defined on you second node, you must do a "rmdev/cfgmgr" while vg1 is in mode 'unlocked' on node 1, via the varyonvg -ub command.
If it has been known, and now, it is no more, it means you have 'phantom' disks. Some disks must be "Defined" on node 2, as others are defined in place, with no definition (None = no pvid none = no vg defined). The good way to define them correctly, is to remove the "None none" disk, and to "mkdev" the Defined one, again.
For the timestamp definition, since HACMP 5.4, the timestamp is synchronised via the clveryfy command.
mercredi 6 mai 2009
Beware of the storm...

SEA Failover entre 2 vio servers
Cette configuration permet de faire du fail over entre les vio servers, et de n'indiquer qu'une seule carte aux partitions hébergées, et que celle-ci soit en haute disponibilité.
1) Dans chaque vio serveur, il faut créer 4 interfaces virtuelles avec les parametres suivants :
ent2 dans le vlan (pvid) 1, acces au réseau externe, trunk priority 1 pour le 1er vio server, et trunk priority 2 sur le 2eme vio server
ent3 dans le vlan (pvid) 2, acces au réseau externe, trunk priority 1 pour le 1er vio server, et trunk priority 2 sur le 2eme vio server
ent4 dans le vlan 99
ent5 dans le vlan 98
2) Il faut ensuite créer DIRECTEMENT, et non pas, par étapes (sinon attention au storm arp) via la commande suivante, les SEA en mode FAIL OVER :
Pour la production :
mkvdev -sea ent0 -vadapter ent2 -default ent2 -defaultid 99 -attr ha_mode=auto ctl_chan=ent4
Explication : on crée l'interface ent6 qui sera le SEA (Shared ethernet adapter) via l'adaptateur virtuel ent2, en nous appuyant sur l'interface physique ent0. On le configure directement en fail over mode et le heartbit passe par ent4
pour le réseau de sauvegarde :
mkvdev -sea ent1 -vadapter ent3 -default ent3 -defaultid 98 -attr ha_mode=auto ctl_chan=ent5
qui va créer ent7
3) ensuite il faut configurer l'adresse ip par laquelle on va joindre les vio servers :
cfgassist => et configurer les interfaces SEA soit ent6 et ent7, avec les bonnes adresses ip.
mercredi 22 avril 2009
tester les perfs réseau entre 2 serveurs
bin
put " [pipe symbol] dd if=/dev/zero bs=2000b count=1 " /dev/null
liste d'argument trop long problème ARG_MAX
getconf -a : liste les valeurs des variables d'environnement système
par default la valeur de ARG_MAX = 24576 (6x4Ko)
si lors d'une routine exec() on sort avec une erreur de type E2BIG, visible avec analyse truss ou trace
ou si lors d'une commande on a un arglist too long
celà est dû à un passage trop grand d'arguments à une commande.
l'environnement système peut être modifié en dynamique afin d'augmenter la valeur :
chdev -l sys0 -a ncargs=16