Affichage des articles dont le libellé est disques. Afficher tous les articles
Affichage des articles dont le libellé est disques. Afficher tous les articles

jeudi 18 octobre 2012

Be sure to be on different switchs !

It's good to have more than one fcs adapter... but it's better to be sure they are connected on different switchs !
Each id is different, if it is on another switch

in this case we have two  adapters (or 2 ports on the same card):

root:/# lsdev -c adapter | grep fcs
fcs0   Available 30-T1 Virtual Fibre Channel Client Adapter
fcs1   Available 31-T1 Virtual Fibre Channel Client Adapter


but on the same vio server ! ....

root:/# echo "vfcs" | kdb
           START              END
0000000000001000 0000000005770000 start+000FD8
F00000002FF47600 F00000002FFDF9C0 __ublock+000000
000000002FF22FF4 000000002FF22FF8 environ+000000
000000002FF22FF8 000000002FF22FFC errno+000000
F1000F0A00000000 F1000F0A10000000 pvproc+000000
F1000F0A10000000 F1000F0A18000000 pvthread+000000
read vscsi_scsi_ptrs OK, ptr = 0xF1000000C01A9380
(0)> vfcs
NAME      ADDRESS             STATE   HOST      HOST_ADAP  OPENED NUM_ACTIVE
fcs0      0xF10001019999A000  0x0008  vioprex1vfchost2  0x01    0x0000
fcs1      0xF10001019A3AC000  0x0008  vioprex1vfchost3  0x01    0x0000
and on the same swicth !!!


root:/# lsattr -El fscsi0
attach       switch    How this adapter is CONNECTED         False
dyntrk       yes       Dynamic Tracking of FC Devices        True
fc_err_recov fast_fail FC Fabric Event Error RECOVERY Policy True
scsi_id      0x340206  Adapter SCSI ID                       False
sw_fc_class  3         FC Class for Fabric                   True

root:/# lsattr -El fscsi1
attach       switch    How this adapter is CONNECTED         False
dyntrk       yes       Dynamic Tracking of FC Devices        True
fc_err_recov fast_fail FC Fabric Event Error RECOVERY Policy True
scsi_id      0x340501  Adapter SCSI ID                       False
sw_fc_class  3         FC Class for Fabric                   True



this other partition is ok :

# lsattr -El fscsi0
attach       switch    How this adapter is CONNECTED         False
dyntrk       yes       Dynamic Tracking of FC Devices        True
fc_err_recov fast_fail FC Fabric Event Error RECOVERY Policy True
scsi_id      0x1db40   Adapter SCSI ID                       False
sw_fc_class  3         FC Class for Fabric                   True

# lsattr -El fscsi1
attach       switch    How this adapter is CONNECTED         False
dyntrk       yes       Dynamic Tracking of FC Devices        True
fc_err_recov fast_fail FC Fabric Event Error RECOVERY Policy True
scsi_id      0x20db40  Adapter SCSI ID                       False
sw_fc_class  3         FC Class for Fabric                   True


Merci Patrice, pour l'info !

patch alt_disk install image


create disk copy :
     alt_disk_copy -O -B -d "hdisk25 hdisk26"
wake up disk copy :
     alt_rootvg_op -W -d hdisk25
update alternate disk copy : 
     alt_rootvg_op -C -b update_all -l /updates/5300-12-04
close alternate disk copy, and bosboot it:
     alt_rootvg_op -St

mardi 20 septembre 2011

0516-1155 lors d'un rmlvcopy

Si on a perdu des disques dans un vg mirroré, et que ceux-ci ne sont pas récupérables, on doit retirer les copies sur les disques inexistants.
Si, pendant ces manipulations, on a le message

dasgbdprodb1_PSI:root / # lslv -l lvbdb1vg10058
0516-304 : Unable to find device id 00c5b0f4a07fcac0 in the Device
Configuration Database.
lvbdb1vg10058:/db-rman/dump
PVID COPIES IN BAND DISTRIBUTION
00c5b0f4a07fcac0 016:000:000 0% 000:000:000:008:008
hdisk3 016:000:000 0% 000:000:000:008:008

serveur:root / # rmlvcopy lvbdb1vg10058 1
0516-1155 lreducelv: Last good copy of a partition cannot reside on a missing disk.
Try again after reactivating the disk using chpv and varyonvg.
0516-922 rmlvcopy: Unable to remove logical partition copies from
logical volume lvbdb1vg10058.
Il faut préciser l’id du disque à enlever dans le rmdev (et s'il y a plusieurs disques perdus, il faut tous les préciser dans la même commande):
serveur:root / # rmlvcopy lvbdb1vg10058 1 00c5b0f4a07fcac0 00c28f5506f21797
0516-622 rmlvcopy: Warning, cannot write lv control block data.
serveur:root / # lslv -l lvbdb1vg10058
lvbdb1vg10058:/db-rman/dump
PV COPIES IN BAND DISTRIBUTION
hdisk3 016:000:000 0% 000:000:000:008:008

rendev : renommer un device

Il faut que le device soit non utilisé : 
hdisk22         00c28f552e09d55e                    None
danimproda1:root:/mksysb# rendev -l hdisk22 -n hdisk77
hdisk77
danimproda1:root:/mksysb# lspv
hdisk77         00c28f552e09d55e                    None

jeudi 13 janvier 2011

Changing queue depth in the ODM


Prendre un disque USPV :


lsdev -Ccdisk
...
hdisk6  Available 04-01-02 Hitachi MPIO Disk USP V (Fibre)
...


reperer le type d'un disque :

odmget -q name=hdisk6 CuDv
CuDv:
        name = "hdisk6"
        status = 1
        chgstatus = 2
        ddins = "scsidisk"
        location = "04-01-02"
        parent = "fscsi1"
        connwhere = "W_1"
        PdDvLn = "disk/fcp/htcuspvmpio"


récuperer l'objet odm correspondant :

odmget -q "uniquetype=disk/fcp/htcuspvmpio and attribute=queue_depth" PdAt

PdAt:
        uniquetype = "disk/fcp/htcuspvmpio"
        attribute = "queue_depth"
        deflt = "2"
        values = "1-32,1"
        width = ""
        type = "R"
        generic = "UD"
        rep = "nr"
        nls_index = 30

Pour récupérer l'odm :

odmget -q "uniquetype=disk/fcp/htcuspvmpio  and attribute=queue_depth" PdAt |sed s/deflt\ =\ \"2\"/deflt\ =\ \"XX\"/g > /tmp/change_qd

Pour le changer


odmchange -o PdAt -q "uniquetype=disk/fcp/htcuspvmpio and attribute=queue_depth" /tmp/change_qd

lundi 20 avril 2009

Who's disk is it ??

If you have a no pvid disk, defined in a partition, how do you find which one it is, on the VIO server ?
1) on the aix partition :
# lscfg -l hdiskX
=> hdiskX U8203.xx.... V3-
C2-T1-L810000.... Virtual...
Slot
Lun
2) Get the AIX client ID :
# uname -L
3 PartitonName
Partion ID
3) On which Vio server is running the partition :
Log on the HMC :
# lssyscfg -r sys -F name <= gives all the managed system names #lshwres -m
PowerName -r virtualio --rsubtype scsi --filter lpar_ids=3
Powersystem on which the partition is running
Partion ID in 2)

=>lpar_name=PartitionName,lpar_id=3,slot_num=2,state=1,is_required=1,adapter_type=client,remote_lpar_id=1,remote_lpar_name=VioServerName,remote_slot_num=12,backing_devices=none
Remote Slot number
4) Log on the Vio Server (padmin)
# lsmap -all
note which adapter (
vhostX) is on the slot number 12
# lsmap -vadapter vhostX
=> the disk you are looking for, is the one with the Lun Id 810000 in 1)

vendredi 17 avril 2009

Ajouter des disques dans une partition virtuelle

Méthode ajout de disque sur VIO server (lorsqu'il y a 2 vio serveurs, qui peuvent éventuellement récupérer les partitions en live mobility):

1) faire ajouter les disques sur les cartes fcs des vio servers
2) Sur le premier vio server

  • Se logger padmin
  • lspv => tous les disques doivent avoir un pvid, si ça n'est pas le cas, il faut faire un chdev -l hdiskx -a pv=yes en oem_setup_env ou bien chdev -dev hdiskx -attr pv=yes en padmin
  • cfgdev
  • lspv grep none awk '{ print "chdev -dev "$1" -attr pv=yes reserve_policy=no_reserve algorithm=round_robin" }'
  • récuperer l'output avec la souris et executer toutes les lignes (paste via la souris par exemple)


A ce stade les disques sont prêts sur le 1er vio server

3) se connecter sur le 2eme vio server, en padmin

  • lspv
  • cfgdev
  • passer, pour chaque disque supplémentaire, la commande suivante : (ou la commande ci dessus)
    chdev -dev hdiskX -attr reserve_policy=no_reserve algorithm=round_robin

    4) Maintenant, il faut définir les disques sur le serveur lui-même (la partition cible)
  • lancer IE : https://adresse/ de la hmc
  • Accepter la license s'il vous la propose et autoriser les popup pour ce site
    cliquer sur :


    log on and launch the hardware management console console

  • se connecter hscroot
    éventuellement, s'il le propose lancer une nouvelle session
    séléctionner le systeme concerné, dans systeme management :




  • cliquer sur properties (ou propriétés)
  • onglet "Virtual adapter" (ou la meme chose en francais!!)
  • relever la valeur du "connecting adapter", correspondant à la carte SCSI par laquelle on va voir le disque (ici, 15)




    5) définition sur le vio server

retourner sous le vio serveur hébergeant la partition

  • lsmap -all grep vhost
  • relever la carte comportant le numéro correspondant, (le vhost correspondant) et passer la commande suivante, pour y attribuer le ou les disques correspondants :
    mkvdev -vdev hdiskxx -vadapter vhostx
    ensuite, la méthode de définition sous la partition est classique.

Attention : il est prudent de vérifier les pvid obtenus sur la partition, pour les comparer avec ceux du vio serveur