4.1 Divers
Problème au démarrage serveur : code 546 : hd5 mirroré et stale ou odm corrompu. Pour vérifier si hd5 OK :
# getlvcb -AT hd5 . Si non ok :
Si pb bosboot. Supprimer hd5 et recréer
# rmlv hd5 # mklv -yhd5 -t boot -a e rootvg 1 hdisk0
Si pb de coherence disque boot : booter en maitenance sans monter les FS et :
# mount /dev/hd2 /usr # mount /dev/hd4 /mnt # mkdir /mnt/etc/objrepos/backup # cp /mnt/etc/objrepos/Cu* /mnt/etc/objrepos/backup # ls -l /mnt/etc/objrepos/backup # umount /mnt # savebase -d /dev/hdisk7 # mount /dev/hd4 /mnt # cp /etc/objrepos/Cu* /mnt/etc/objrepos
Lister les modules charger par le noyau
# genkex Text address Size File
47a0000 4bd0 /usr/lib/drivers/perfvmmstat.mp 47d8000 e2e8 /usr/lib/drivers/filter4 47ce000 9700 /usr/lib/drivers/tunnel_if4 47bf000 e858 /usr/lib/drivers/ipsec_cap4 47b5000 9cb8 /usr/lib/drivers/tunnel_cache4 47a8000 adf8 /usr/lib/drivers/random 45d1000 1c6170 /usr/lib/drivers/nfs.ext 4271000 430 /usr/lib/drivers/nfs_kdes.ext 45b9000 17a38 /usr/lib/drivers/pdiagex 4502000 398 /usr/lib/drivers/syscalls64.ext 4530000 3728 /usr/lib/drivers/aiopin 4537000 afb8 /usr/lib/drivers/aio.ext ....
Monter ISO
mklv -y cdtmp rootvg 50 dd if=aaa.iso of=/dev/cdtmp bs=16k mount -rv cdrfs /dev/cdtmp /cdrom
Si après reboot on ne peut plus varyonner les VG:
{op}@ylai0012 # lspv
hdisk0 00081a3a3723d5b4 altinst_rootvg
hdisk9 00035b4e132f26f2 vg01
hdisk10 00035b4e132f85dc vgsoft
hdisk11 00035b4e133093b9 vg02
hdisk12 00035b4e1330a5d0 vg02
hdisk13 00035b4e133121be vg03
hdisk14 00035b4e13317b72 vg04
hdisk15 00035b4e4a2b86e4 rootvg active
{op}@ylai0012 # varyonvg vg01
0516-082 varyonvg: Unable to access a special device file.
Execute redefinevg and synclvodm to build correct environment.
{op}@ylai0012 # redefinevg -d hdisk9 vg01
{op}@ylai0012 # varyonvg vg0
Mais le LV est pas reconnu dans l'ODM
{op}@ylai0012 # lslv users
LOGICAL VOLUME: users VOLUME GROUP: vg01
LV IDENTIFIER: 003381bb00004c00000001098742d128.1 PERMISSION: read/write
VG STATE: active/complete LV STATE: closed/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 715 PP SIZE: 32 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 715 PPs: 715
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 32
MOUNT POINT: /users LABEL: /users
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
lslv: open(): A file or directory in the path name does not exist.
{op}@ylai0012 # synclvodm -Pv vg01
synclvodm: Physical volume data updated.
synclvodm: Logical volume users updated.
{op}@ylai0012 # mount /users
{op}@ylai0012 # bosboot -ad hdisk15
Si le déport console d'un serveur ne marche pas
{op}@pyaicz # lscons
NULL
Faire un
{op}@pyaicz # chcons /dev/vty0
chcons: console assigned to: /dev/vty0, effective on next system boot
Et rebooter
Si la LED d'avertissement hardware est orange sur le chassis, et qu'il n'y a plus de problème hard, on peut la reseter comme suit:
- diag - Task Selection - Identify and Attention Indicators - Set System Attention Indicator to NORMAL
En cas de message d'erreur " paramlist toolong " Il s'agit du paramètre narg qui est trop petit
# lsattr -El sys0 -a ncargs ncargs 24 ARG/ENV list size in 4K byte blocks True
Il suffit de le changer
# chdev -l sys0 -a ncargs=128