 |
» |
|
|
 |
Si
votre système est dans un état tel qu'il ne peut
plus être amorcé au lancement de la session, ou
encore qu'il peut être amorcé, mais que certains
de ses fichiers essentiels sont altérés, ceci
conduisant à de mauvaises performances globales, il est
nécessaire d'envisager une restauration du système à partir
du support de reprise de base. Préalablement à toute tentative de reprise
d'un système HP-UX, vous devez rassembler certaines informations
concernant votre disque système. La plupart de
ces informations, y compris les types de systèmes de fichiers,
sont accessibles par le biais de votre documentation système
en ligne, soit au travers d'Ignite-UX, soit sur papier dans la documentation livrée
avec le système : L'adresse du système de fichiers racine
du disque (à savoir, le système de fichiers que
vous allez vérifier/réparer avec l'utilitaire fsck). L'adresse du chemin d'accès bootlif de
ce disque. Le contenu du fichier auto de bootlif. La présence des fonctions LVM ou non sur
le système.
Plus vous disposerez d'informations sur le disque système
et la structure de ses partitions, et ce, pour éviter des détériorations ou des altérations considérables, plus la reprise sera facile. Dans les procédures qui suivent, on suppose que les
commandes fsck et mount peuvent être appliquées sans
problème au disque système. Si tel n'est pas le
cas, vous ne pourrez pas les mettre en oeuvre. Procédures
de reprise automatique |  |
Il
existe quatre situations de reprise avancée, chacune d'elles étant associée à une
procédure de reprise : Si, après un problème
système, vous ne pouvez pas obtenir l'invite ISL> à partir du disque système,
il est nécessaire de reconstruire le bootlif de ce disque
et d'installer les fichiers indispensables à l'amorçage
du système de fichiers racine. Si vous pouvez obtenir l'invite ISL>, mais que l'amorçage de vmunix s'avère impossible, il s'agit d'une altération
du disque système ; il est seulement nécessaire, dans ce cas, d'installer les
fichiers indispensables à l'amorçage du système
de fichiers racine. Si vous ne pouvez pas obtenir l'invite ISL>, mais que vous savez que le système de
fichiers racine est intègre, il est nécessaire
de reconstruire le bootlif du disque système. Si vous pensez que le noyau est altéré,
il suffit de le remplacer sur le système de fichiers racine.
Les rubriques suivantes contiennent le détail des
procédures. Reconstruction
du bootlif et installation des fichiers critiques |  |
L'exemple qui suit concerne la procédure détaillée
de reconstruction du bootlif du disque système et l'installation
des fichiers critiques indispensables à l'amorçage à partir
du système de fichiers racine : Mettez en place le CD-ROM Core du système HP-UX adéquat. Réinitialisez l’unité centrale
SPU avec le bouton de réinitialisation, ou la clé,
selon le cas. La console affiche le chemin d'accès d'amorçage.
Si l'amorçage automatique est actif, vous obtiendrez sur
la console système un message comparable à celui-ci
: Autoboot from primary path enabled To override, press any key within 10 seconds. |
Enfoncez une touche dans les dix secondes. La console
système affiche alors l'invite suivante : Boot from primary boot path (Y or N)?> |
Tapez n. La console affiche alors l'invite suivante : Boot from alternate boot path (Y or N)?> |
Si le chemin d'accès secondaire d'amorçage
indique l'adresse du lecteur de CD-ROM sur lequel est monté le
disque Core, tapez y à l'invite. Si le chemin d'accès secondaire d'amorçage
n'indique pas l'adresse du lecteur de CD-ROM sur lequel est monté le
support HP-UX Core, tapez n à l'invite. Si vous tapez n, le message suivant apparaît sur la console
système : Tapez l'adresse du lecteur de CD sur lequel est
monté le support HP-UX Core. La console système affiche alors le message suivant
: Interact with IPL (Y or N)> |
Tapez n. Au bout de plusieurs minutes, et après l'affichage
de plusieurs écrans d'état, la page suivante apparaît
: Welcome to the HP-UX installation/recovery process! Use the <tab> and/or arrow keys to navigate through the following menus,and use the <return> key to select an item. If the menu items are not clear, select the "Help" item for more information. [ Install HP-UX ] [ Run a Recovery Shell ] [ Cancel and Reboot ] [ Advanced Options ] [ Help ] |
Sélectionnez Run a Recovery Shell. L'écran disparaît et le message
suivant est affiché : Would you like to start up networking at this time? [n] |
Sauf si les fonctions réseau vous sont
nécessaires pour les échanges ftp avec d'autres
systèmes, tapez n. L'écran proposé est le suivant
: * Loading in a shell... * Loading in the recovery system commands... ... HP-UX SYSTEM RECOVERY CORE MEDIA WARNING: YOU ARE SUPERUSER !! NOTE: Commands residing in the RAM-based file system are unsupported 'mini'commands. These commands are only intended for recovery purposes. Loading commands needed for recovery! Press <return> to continue. |
Tapez Entrée. Le message d'état suivant apparaît
: Loading commands needed for recovery! |
Le menu suivant est alors affiché : HP-UX CORE MEDIA RECOVERY MAIN MENU s. Search for a file b. Reboot l. Load a file r. Recover an unbootable HP-UX system x. Exit to shell c. Instructions on chrooting to a lvm /(root). This menu is for listing and loading the tools contained on the core media. Once a tool is loaded, it may be run from the shell. Some tools require other files to be present in order to successfully execute. Select one of the above: |
Pour charger un (ou plusieurs) fichier(s), tapez l. Un message d'état similaire à celui-ci
apparaît alors : Filesystem kbytes used avail %cap iused ifree iused Mounted on / 2011 1459 552 73% 137 343 29% ? /duped_root 2011 1418 593 71% 49 431 10% ? Enter the filename(s) to load: |
Tapez le(s) nom(s) du (des) fichier(s) endommagé(s).
Par exemple : Cet exemple indique deux fichiers (ex et egrep) qui doivent être chargés avant
de pouvoir charger vi et grep. Il indique également un fichier (date) qui ne fait pas partie de la liste. NOTE : Since ./usr/bin/vi is linked to ./usr/bin/ex './usr/bin/ex' must precede './usr/bin/vi' in the load list. The file 'date' is NOT in the LOADCMS archive. <Press return to continue> NOTE : Since ./usr/bin/grep is linked to ./usr/bin/egrep './usr/bin/egrep' must precede './usr/bin/grep' in the load list. ******** THE REQUESTED FILE(S): *********** ./sbin/sh ./usr/bin/vi ./usr/bin/grep Is the above load list correct? [n] |
Cette liste de chargement est incorrecte, car ./usr/bin/ex ne précède pas ./usr/bin/vi. Tapez n. Le message suivant apparaît : Nothing will be loaded! <Press return to return to Main Menu> |
Tapez Entrée. Le menu principal apparaît : HP-UX CORE MEDIA RECOVERY MAIN MENU s. Search for a file b. Reboot l. Load a file r. Recover an unbootable HP-UX system x. Exit to shell c. Instructions on chrooting to a lvm /(root). This menu is for listing and loading the tools contained on the core media. Once a tool is loaded, it may be run from the shell. Some tools require other files to be present in order to successfully execute. Select one of the above: |
Vous allez cette fois sélectionner s pour rechercher un fichier que vous souhaitez
charger. L'écran suivant apparaît : Either enter the filename(s) to be searched for, or 'all' for a total listing. |
Tapez la commande suivante : Vous obtenez la réponse suivante : ./usr/bin/vi linked to ./usr/bin/ex ./sbin/awk ./usr/bin/awk ./sbin/sh ** The file 'date' was not found in the LOADCMDS archive. ** <Press return to continue> |
Tapez Entrée et le menu principal réapparaît : HP-UX CORE MEDIA RECOVERY MAIN MENU s. Search for a file b. Reboot l. Load a file r. Recover an unbootable HP-UX system x. Exit to shell c. Instructions on chrooting to a lvm /(root). Select one of the above: |
Pour lancer la reprise système effective,
sélectionnez r. L'écran HP-UX Recovery MENU est alors
affiché : HP-UX Recovery MENU Select one of the following: a. Rebuild the bootlif (ISL, HPUX, and the AUTO file) and install all files required to boot and recover HP-UX on a root file system. b. Do not rebuild the bootlif but install files required to boot and recover HP-UX on the root file system. c. Rebuild only the bootlif. d. Replace only the kernel on the root file system. m. Return to 'HP-UX Recovery Media Main Menu'. x. Exit to the shell. Use this menu to select the level of recovery desired. Selection: |
Sélectionnez a pour installer le bootlif et les fichiers critiques.
Le menu suivant est alors affiché : DEVICE FILE VERIFICATION MENU This menu is used to specify the path of the root file system. When the information is correct, select 'a'. INFORMATION to verify: Device file used for '/'(ROOT) is c1t6d0 The path to disk is 56/52.6.0 Select one of the following: a. The above information is correct. b. WRONG!! The device file used for '/'(ROOT) is incorrect. m. Return to the 'HP-UX Recovery MENU.' x. Exit to the shell. NOTE: If '/' is an LVM, use an 's1lvm' suffix (e.g.,c0t1d0s1lvm). Selection: |
Si le fichier spécial racine est incorrect,
sélectionnez b. Le système vous demande alors de taper
le nom correct du fichier spécial : Enter the device file associated with the '/'(ROOT) |
file system. (example: c1t6d0): |
 |  |  |  |  | REMARQUE : Sur un système comportant des disques à sectorisation
matérielle, l'invite et la réponse se présenteront
de la manière suivante : |  |  |  |  |
Par exemple : Enter the device file associated with the '/'(ROOT) file system (example: c0t1d0s1lvm ) : c0t0d0s13 /dev/rdsk/c0t0d0s13 not a special file <Press return to continue> Enter the address associated with the '/'(ROOT) file system (example: 4.0.1) : 4.0.0 NOTE: if your '/'(ROOT) is not part of a sectioned disk layout enter a 'W' for whole disk layout or enter a 'l' for an LVM disk layout instead of a section number. Enter the section associated with the '/'(ROOT) file system (example: 13 ): 13 making rdsk/c0t0d0s13 c 214 0x00000d making dsk/c0t0d0s13 b 26 0x00000d |
Si le nom de fichier spécial racine tapé est c1t1d0, l'écran proposé est le suivant
: DEVICE FILE VERIFICATION MENU This menu is used to specify the path of the root file system. When the information is correct, select 'a'. INFORMATION to verify: Device file used for '/'(ROOT) is c1t1d0 The path to disk is 56/52.1.0 Select one of the following: a. The above information is correct. b. WRONG!! The device file used for '/'(ROOT) is incorrect. m. Return to the 'HP-UX Recovery MENU.' x. Exit to the shell. NOTE: If '/' is an LVM, use an 's1lvm' suffix (e.g.,c0t1d0s1lvm). Selection: |
Sélectionnez a, si le nom de fichier spécial racine
correct est c1t1d0. Le menu suivant apparaît ensuite : BOOTLIF PATH VERIFICATION MENU This menu must be used to determine the path to the bootlif (ISL, HPUX and the AUTO file). When the information is correct, select 'a'. INFORMATION to verify: Path to the bootlif is 56/52.1.0 Select one of the following: a. The above information is correct. b. WRONG!! The path to bootlif is incorrect. m. Return to the 'HP-UX Recovery MENU.' x. Exit to the shell. Selection: |
Si le chemin d'accès du bootlif est correct,
tapez a. Le menu suivant apparaît : FILE SYSTEM CHECK MENU The file system check '/sbin/fs/hfs/fsck -y /dev/rdsk/c1t1d0' will now be run. Select one of the following: a. Run fsck -y . b. Prompt for the fsck run string on c1t1d0. m. Return to the 'HP-UX Recovery MENU.' Selection: |
Sélectionnez a pour lancer l'utilitaire fsck -y et vérifier l'altération éventuelle
du système de fichiers. Un écran similaire à celui-ci apparaît
alors : ** /dev/rdsk/c1t1d0 ** Last Mounted on /ROOT ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 6256 files, 0 icont, 149423 used,1563824 free(928 frags,195362 blocks) Mounting c1t1d0 to the HP-UX Recovery Media /ROOT directory... <Press return to continue> |
Si votre système de fichiers n'est pas
altéré et que vous souhaitez poursuivre la reprise,
tapez Entrée pour monter votre système de fichiers racine
dans le répertoire /ROOT. Le message affiché ensuite est similaire à celui-ci
: ***** Downloading files to the target disk ***** x ./sbin/lvchange, 528384 bytes, 1032 tape blocks ./sbin/lvcreate linked to ./sbin/lvchange ./sbin/lvdisplay linked to ./sbin/lvchange ... Filesystem kbytes used avail %cap iused ifree iused Mounted on /ROOT 1713247 149426 1392496 10% 6261 275339 2% ? Should the existing kernel be'left', 'overwritten', or 'moved'?[overwritten] |
Pour remplacer le noyau existant par le nouveau
système de fichiers, tapez overwritten ou over à l'invite. Le message suivant apparaît
: downloading INSTALL to /stand/vmunix **** Creating device files on the target disk **** ******* Renaming the following files: ******* '/.profile' has been renamed '/.profileBK' *********** Installing bootlif *********** mkboot -b /dev/rmt/1m -i ISL -i HPUX /dev/rdsk/c1t1d0 mkboot -a hpux (56/52.1.0;0)/stand/vmunix /dev/rdsk/c1t1d0 |
 |  |  |  |  | REMARQUE : Si la reprise concerne un système comportant
des disques à sectorisation matérielle, le message
proposé sera plutôt celui-ci : |  |  |  |  |
*********** Installing bootlif *********** mkboot -b 15.16.128.126 -H -i ISL -i HPUX /dev/rdsk/c0t0d0 mkboot -a hpux (4.0.0;13)/stand/vmunix /dev/rdsk/c0t0d0 |
Les options utilisées sont les suivantes : L'option -H est utilisée pour les disques à sectorisation matérielle. L'option -l pour les disques LVM. L'option -W pour la configuration totale du disque.
RECOVERY COMPLETION MENU Use this menu after the recovery process has installed all requested files on your system. Select one of the following: a. REBOOT the system and continue with recovery. b. Return to the Main Menu. Selection: |
Lorsque le menu Recovery Completion apparaît,
vous pouvez achever le processus de reprise en sélectionnant a. Les messages affichés ressemblent à ceci
: NOTE: System rebooting ... PDC - Processor Dependent Code - Version 1.3 (c) Copyright 1990-1993, Hewlett-Packard Company, All rights reserved. 16 MB of memory configured and tested. Primary boot path: 56/52.5 (dec) Alternate boot path: 56/52.3 (dec) Manufacturing permissions ON Main Menu Command Description BOot [PRI|ALT| &<path>] Boot from specified path PAth [PRI|ALT|][ &<path>] Display or modify a path SEArch [DIsplay|IPL][&<path>] Search for boot devices COnfiguration menu Displays or sets boot values INformation menu Displays hardware information SErvice menu Displays service commands MFG menu Displays manufacturing commands DIsplay Redisplay the current menu HElp [&<menu>|&<command>] Display help for menu or command RESET Restart the system Main Menu: Enter command or menu item. |
A l'invite, tapez bo pri pour amorcer le système à partir
du chemin d'accès d'amorçage principal. L'invite
suivante apparaît alors : Interact with IPL (Y or N)?> |
Tapez n pour lancer immédiatement l'amorçage.
Différents écrans d'état sont ensuite
proposés, suivis du message suivant : THIS SYSTEM HAS BEEN BOOTED USING A TEMPORARY KERNEL! DO NOT ATTEMPT TO INVOKE MULTI-USER RUN-LEVEL USING THIS KERNEL! Type the following command from the shell prompt for more information about completing the recovery process: cat /RECOVERY.DOC |
Pour obtenir de plus amples informations sur le
processus de reprise, tapez la commande suivante : Les informations suivantes apparaissent alors à l'écran
: 1) Restore valid copies of the following files (either from backup or from the nom_fichier.BK files created during the recovery process). /etc/fstab, /etc/inittab, /stand/ioconfig, /etc/ioconfig, /etc/passwd, /sbin/pre_init_rc, /.profile, and /etc/profile NOTE: The backup archive may be extracted using '/sbin/frecover' or'/sbin/pax' (for backups made with 'tar' or 'cpio'). If using '/sbin/pax', linking it to 'tar' or 'cpio' will force'pax' to emulate the respective command line interface. 2) Replace /stand/vmunix from backup, since the present kernel is probably missing desired drivers. 3) If you have an lvm root, refer to the /LVM.RECOVER text file. |
Si vous disposez d'un système LVM et que
vous souhaitez de plus amples informations sur les procédures
de reprise, tapez la commande suivante :  |  |  |  |  | REMARQUE : Si une carte a été intégrée
dans le système, ou retirée, depuis la dernière
installation, il est possible que le fichier spécial du
disque racine ait été modifié. Il est
donc nécessaire, avant de lancer le script LVM ./lvmrec.scrpt (étape 2, ci-après), de procéder à la
reprise de /stand/ioconfig à partir de la sauvegarde, puis de réamorcer
le système. |  |  |  |  |
Le message suivant apparaît : INSTRUCTIONS to complete your LVM recovery: The system must now be up now in "maintenance mode". NOTE: In order for the following steps to lead to a successful lvm recovery the LVM label information must be valid. If the bootlif was updated from the RAM-based recovery system, then "mkboot -l" has already been run to repair this label. step 1. If the autofile was altered to force the system to boot in maintenance mode, use "mkboot -a" to remove the "-lm" option. Example: to change "hpux -lm (52.6.0;0)/stand/vmunix" to "hpux (52.6.0;0)/stand/vmunix" use mkboot -a "hpux (52.6.0;0)/stand/vmunix" /dev/rdsk/<device file> |
 |  |  |  |  | REMARQUE : Utilisez lssf /dev/rdsk/* pour mettre le fichier spécial en correspondance
avec l'adresse d'amorçage. |  |  |  |  |
 |
step 2. Run '/lvmrec.scrpt' to repair the following LVM configuration information: a. LVM records (lvmrec) b. BDRA (Boot Data Reserve Area) c. LABEL information Requirement: The following files must reside on disk before the script can complete: a. /etc/lvmtab b. /etc/fstab c. /etc/lvmconf/<rootvg>.conf d. all device files specified in /etc/fstab To run '/lvmrec.scrpt' provide the device filename used to access the bootlif as an argument to the script. Example: /lvmrec.scrpt c0t6d0 In this example 'c0t6d0' is the device file used to access the bootlif. step 3. Once '/lvmrec.scrpt' completes, issue the command "reboot" and bringthe system fully up. The recovery of the root LVM is complete. If the'/lvmrec.scrpt' issued the following warning: "************ I M P O R T A N T ******************" " " "Root logical volume has been repaired, but......." "you need to reboot the system and repair the Swap" "logical volume using the following LVM command: " " lvlnboot -A n -s /dev/<root lv>/<swap lvol> " "because Recovery has no way to find out what is " "the Swap logical volume information at this point" " " "*************************************************" |
 |
 |
The Swap and Dump logical volumes will need to be re-configured The BDRA contains the "root", "swap" and "dump" logical volumeinformation. '/lvmrec.scrpt' only fixes the root logical volume information in the BDRA.The "swap" and "dump" areas can be updated via the "lvlnboot" command. Example: lvlnboot -s /dev/<vg00>/lvol2 lvlnboot -d /dev/<vg00>/lvol3 In this example 'lvol2' and 'lvol3' are the "swap" and "dump" logical volumes respectively. step 4. Perform any further data recovery deemed necessary. *** NOTE *** If the same volume group contains more than one corrupted bootdisk, Repeat the above steps for each disk that needs to be repaired. |
Le processus de reconstruction du bootlif et d'installation
des fichiers critiques est maintenant achevé.
Installation
seule des fichiers critiques de la racine |  |
L'exemple proposé ci-après correspond à la
procédure détaillée d'installation de
tous les fichiers critiques nécessaires à l'amorçage
d'un système de fichiers racine cible : Amorcez le support CORE, selon la procédure décrite
dans la rubrique « Reconstruction
du bootlif et installation des fichiers critiques ».
Différents messages d'états apparaissent, suivis
de l'affichage d'un menu : Welcome to the HP-UX installation process! Use the <tab> and/or arrow keys to navigate through the following menus,and use the <return> key to select an item. If the menu items are not clear, select the "Help" item for more information. [ Install HP-UX ] [ Run a Recovery Shell ] [ Cancel and Reboot ] [ Advanced Options ] [ Help ] |
 |
Sélectionnez Run a Recovery Shell. L'écran disparaît et la question
suivante est affichée : Would you like to start up networking at this time? [n] |
Si vous n'avez aucune nécessité d'accès
au réseau, tapez n. L'écran proposé est alors le
suivant : * Loading in a shell... * Loading in the recovery system commands...
|
(c) Copyright 1983, 1984, 1985, 1986 Hewlett-Packard Co. (c) Copyright 1979 The Regents of the University of Colorado, a body corporate (c) Copyright 1979, 1980, 1983 The Regents of the University of California (c) Copyright 1980, 1984 ATTechnologies.AllRightsReserved. HP-UX SYSTEM RECOVERY CORE MEDIA WARNING: YOU ARE SUPERUSER !! NOTE: Commands residing in the RAM-based file system are unsupported 'mini' commands. These commands are only intended for recovery purposes. Loading commands needed for recovery! WARNING: If ANYTHING is changed on a root (/) that is mirrored, ‘maintenance mode’ (HPUX -1m) boot MUST be done in order to force the mirrored disk to be updated! |
Press <return> to continue. |
Tapez Entrée. Le message d'état suivant apparaît
: Loading commands needed for recovery! |
Le menu ci-après est affiché : HP-UX CORE MEDIA RECOVERY MAIN MENU s. Search for a file b. Reboot l. Load a file r. Recover an unbootable HP-UX system x. Exit to shell c. Instructions on chrooting to a lvm /(root). This menu is for listing and loading the tools contained on the core media. Once a tool is loaded, it may be run from the shell. Some tools require other files to be present in order to successfully execute. Select one of the above: |
Pour lancer la reprise système effective,
sélectionnez r. L'écran HP-UX Recovery MENU est alors
affiché : HP-UX Recovery MENU Select one of the following: a. Rebuild the bootlif (ISL, HPUX, and the AUTO file) and install all files required to boot and recover HP-UX on a target root file system. b. Do not rebuild the bootlif but install files required to boot and recover HP-UX on the root file system. c. Rebuild only the bootlif. d. Replace only the kernel on the root file system. m. Return to 'HP-UX Recovery Media Main Menu'. x. Exit to the shell. Use this menu to select the level of recovery desired. Selection: |
Sélectionnez b pour n'installer que les fichiers critiques. Le
menu suivant apparaît alors : DEVICE FILE VERIFICATION MENU This menu is used to specify the path of the root file system. When the information is correct, select 'a'. INFORMATION to verify: Device file used for '/'(ROOT) is c1t6d0 The path to disk is 56/52.6.0 Select one of the following: a. The above information is correct. b. WRONG!! The device file used for '/'(ROOT) is incorrect. m. Return to the 'HP-UX Recovery MENU.' x. Exit to the shell. NOTE: If '/' is an LVM, use an 's1lvm' suffix (e.g.,c0t1d0s1lvm). Selection: |
Si le fichier spécial racine est incorrect,
sélectionnez b. Le système vous demande alors de taper
le nom correct du fichier spécial : Enter the device file associated with the '/'(ROOT) file system (example: c1t6d0): |
 |  |  |  |  | REMARQUE : Sur un système comportant des disques à sectorisation
matérielle, l'invite et la réponse se présenteront
de la manière suivante : |  |  |  |  |
Enter the device file associated with the '/'(ROOT) file system (example: c0t1d0s1lvm ) : c0t0d0s13 /dev/rdsk/c0t0d0s13 not a special file <Press return to continue> Enter the address associated with the '/'(ROOT) file system (example: 4.0.1) : 4.0.0 NOTE: if your '/'(ROOT) is not part of a sectioned disk layout enter a 'W' for whole disk layout or enter a 'l' for an LVM disk layout instead of a section number. Enter the section associated with the '/'(ROOT) file system (example: 13 ): 13 making rdsk/c0t0d0s13 c 214 0x00000d making dsk/c0t0d0s13 b 26 0x00000d |
Si vous tapez, par exemple, le nom de fichier spécial
racine c1t1d0, le message renvoyé par le système
peut être le suivant : DEVICE FILE VERIFICATION MENU This menu is used to specify the path of the root file system. When the information is correct, select 'a'. INFORMATION to verify: Device file used for '/'(ROOT) is c1t1d0 The path to disk is 56/52.1.0 Select one of the following: a. The above information is correct. b. WRONG!! The device file used for '/'(ROOT) is incorrect. m. Return to the 'HP-UX Recovery MENU.' x. Exit to the shell. NOTE: If '/' is an LVM, use an 's1lvm' suffix (e.g.,c0t1d0s1lvm). Selection: |
Sélectionnez a, si le nom de fichier spécial racine
correct est c1t1d0. Le menu suivant apparaît ensuite : FILE SYSTEM CHECK MENU The file system check '/sbin/fs/hfs/fsck -y /dev/rdsk/c1t1d0' will now be run. Select one of the following: a. Run fsck -y . b. Prompt for the fsck run string on c1t1d0. m. Return to the 'HP-UX Recovery MENU.' Selection: |
Sélectionnez a pour lancer l'utilitaire fsck -y et vérifier l'altération éventuelle
du système de fichiers. Un message similaire au suivant est
affiché : ** /dev/rdsk/c1t1d0 ** Last Mounted on /ROOT ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 6256 files, 0 icont, 149423 used, 1563824 free (928 frags, 195362 blocks) Mounting c1t1d0 to the CORE media /ROOT directory... <Press return to continue> |
Si le système de fichiers n'est pas altéré et
que vous souhaitez poursuivre la reprise système, tapez Entrée pour monter votre système de fichiers racine
sur le répertoire /ROOT du support CORE. Un message similaire à celui-ci
apparaît ensuite : ***** Downloading files to the target disk ***** x ./sbin/lvchange, 528384 bytes, 1032 tape blocks ./sbin/lvcreate linked to ./sbin/lvchange ./sbin/lvdisplay linked to ./sbin/lvchange ./sbin/lvextend linked to ./sbin/lvchange ... Filesystem kbytes used avail %cap iused ifree iused Mounted on /ROOT 1713247 149426 1392496 10% 6261 275339 2% ? Should the existing kernel be 'left', 'overwritten', or 'moved'?[overwritten] |
Pour remplacer le noyau existant par votre nouveau
système de fichiers, tapez overwritten ou over à l'invite. Le message suivant apparaît
: downloading INSTALL to /stand/vmunix **** Creating device files on the target disk **** ******* Renaming the following files: ******* '/.profile' has been renamed '/.profileBK' RECOVERY COMPLETION MENU Use this menu after the recovery process has installed all requested files on your system. Select one of the following: a. REBOOT the target system and continue with recovery. b. Return to the CORE Media Main Menu. Selection: |
Lorsque le menu Recovery Completion apparaît,
vous pouvez achever le processus de reprise en sélectionnant a. Les messages affichés ressemblent à ceci
: NOTE: System rebooting... PDC - Processor Dependent Code - Version 1.3 (c) Copyright 1990-1993, Hewlett-Packard Company, All rights reserved 16 MB of memory configured and tested. Primary boot path: 56/52.5 (dec) Alternate boot path: 56/52.3 (dec) Manufacturing permissions ON Main Menu Command Description BOot [PRI|ALT|<path>] Boot from specified path PAth [PRI|ALT] [<path>] Display or modify a path SEArch [DIsplay|IPL] [<path>] Search for boot devices COnfiguration menu Displays or sets boot values INformation menu Displays hardware information SERvice menu Displays service commands MFG menu Displays manufacturing commands DIsplay Redisplay the current menu HElp [<menu>|<command>] Display help for menu or command RESET Restart the system Main Menu: Enter command or menu > |
A l'invite, tapez bo pri pour amorcer le système à partir
du chemin d'accès d'amorçage principal. Le message
suivant apparaît ensuite : Interact with IPL (Y or N)?> |
Tapez n pour amorcer immédiatement le système.
Différents écrans d'état apparaissent
ensuite, suivis du message : THIS SYSTEM HAS BEEN BOOTED USING A TEMPORARY KERNEL! DO NOT ATTEMPT TO INVOKE MULTI-USER RUN-LEVEL USING THIS KERNEL! Type the following command from the shell prompt for more information about completing the recovery process: cat /RECOVERY.DOC |
Pour obtenir de plus amples informations sur le
processus de reprise, tapez la commande suivante : Les informations suivantes apparaissent alors à l'écran
: 1) Restore valid copies of the following files (either from backup or from the <filename>BK files created during the recovery process). /etc/fstab, /etc/inittab, /stand/ioconfig, /etc/ioconfig, /etc/passwd, /sbin/pre_init_rc, /.profile, and /etc/profile NOTE: The backup archive may be extracted using '/sbin/frecover' or '/sbin/pax' (for backups made with 'tar' or 'cpio'). If using '/sbin/pax', linking it to 'tar' or 'cpio' will force 'pax' to emulate the respective command line interface. 2) Replace /stand/vmunix from backup, since the present kernel is probably missing desired drivers. 3) If you have an lvm root, refer to /LVM.RECOVER . |
Si vous disposez d'un système LVM et que
vous souhaitez de plus amples informations sur les procédures
de reprise, tapez la commande suivante : Ce fichier contient les informations ci-après : If a card has been added to, or removed from, your system since the original installation was completed, there is a chance that the device file for the root disk has changed. Consequently, before you run the LVM script ./lvmrec.scrpt (Step 2, below), you should first recover /stand/ioconfig from backup and reboot. INSTRUCTIONS to complete your LVM recovery: The system must now be up now in "maintenance mode". NOTE: In order for the following steps to lead to a successful lvm recovery the LVM label information must be valid. If the bootlif was updated from the RAM-based recovery system, then "mkboot -l" has already been run to repair this label. step 1. If the autofile was altered to force the system to boot in maintenance mode, use "mkboot -a" to remove the "-lm" option. Example: to change "hpux -lm (52.6.0;0)/stand/vmunix" to "hpux (52.6.0;0)/stand/vmunix" use mkboot -a "hpux (52.6.0;0)/stand/vmunix" /dev/rdsk/<device file> |
 |
 |  |  |  |  | REMARQUE : Utilisez lssf /dev/rdsk/* pour mettre en correspondance le fichier spécial
et l'adresse d'amorçage. |  |  |  |  |
 |
step 2. Run '/lvmrec.scrpt' to repair the following LVM configuration information: a. LVM records (lvmrec) b. BDRA (Boot Data Reserve Area) c. LABEL information Requirement: The following files must reside on disk before the script can complete: a. /etc/lvmtab b. /etc/fstab c. /etc/lvmconf/<rootvg>.conf d. all device files specified in /etc/fstab To run '/lvmrec.scrpt' provide the device filename used to access the bootlif as an argument to the script. Example: /lvmrec.scrpt c0t6d0 In this example 'c0t6d0' is the device file used to access the bootlif. step 3. Once '/lvmrec.scrpt' completes, issue the command "reboot" and bring the system fully up. The recovery of the root LVM is complete. If the '/lvmrec.scrpt' issued the following warning: "************ I M P O R T A N T ******************" " " "Root logical volume has been repaired, but......." "you need to reboot the system and repair the Swap" "logical volume using the following LVM command: " " lvlnboot -A n -s /dev/<root lv>/<swap lvol> " "because Recovery has no way to find out what is " "the Swap logical volume information at this point" "*************************************************" |
 |
 |
The Swap and Dump logical volumes will need to be re-configured. The BDRA contains the "root", "swap" and "dump" logical volume information. '/lvmrec.scrpt' only fixes the root logical volume information in the BDRA. The "swap" and "dump" areas can be updated via the "lvlnboot" command. Example: lvlnboot -s /dev/<vg00>/lvol2 lvlnboot -d /dev/<vg00>/lvol3 In this example 'lvol2' and 'lvol3' are the "swap" and "dump" logical volumes respectively. step 4. Perform any further data recovery deemed necessary. *** NOTE *** If the same volume group contains more than one corrupted boot disk, repeat the above steps for each disk that needs to be repaired. |
L'installation des fichiers critiques est alors
terminée.
Reconstruction
seule du ''bootlif" |  |
Amorcez le support CORE, selon la procédure décrite
par la rubrique « Reconstruction
du bootlif et installation des fichiers critiques ».
Différents messages d'états apparaissent, suivis
de l'affichage d'un menu : Welcome to the HP-UX installation process! Use the <tab> and/or arrow keys to navigate through the following menus, and use the <return> key to select an item. If the menu items are not clear, select the "Help" item for more information. [ Install HP-UX ] [ Run a Recovery Shell ] [ Cancel and Reboot ] [ Advanced Options ] [ Help ]
|
 |
Sélectionnez Run a Recovery Shell. L'écran disparaît, puis le message
suivant est affiché : Would you like to start up networking at this time? [n] |
Tapez n. L'écran suivant apparaît alors
: * Loading in a shell... * Loading in the recovery system commands... (c) Copyright 1983, 1984, 1985, 1986 Hewlett-Packard Co. (c) Copyright 1979 The Regents of the University of Colorado, a body corporate (c) Copyright 1979, 1980, 1983 The Regents of the University of California (c) Copyright 1980, 1984 ATTechnologies.AllRightsReserved. HP-UX SYSTEM RECOVERY CORE MEDIA WARNING: YOU ARE SUPERUSER !! NOTE: Commands residing in the RAM-based file system are unsupported 'mini' commands. These commands are only intended for recovery purposes. Loading commands needed for recovery! WARNING: If ANYTHING is changed on a root(/) that is mirrored a 'maintenance mode'(HPUX -lm) boot MUST be done in order to force the mirrored disk to be updated!! Press <return> to continue. |
Tapez Entrée. Le message d'état suivant est ensuite affiché : Loading commands needed for recovery! |
Après un certain nombre d'étapes similaires à celles
de la procédure précédente, le message
suivant apparaît : HP-UX CORE MEDIA RECOVERY MAIN MENU s. Search for a file b. Reboot l. Load a file r. Recover an unbootable HP-UX system x. Exit to shell c. Instructions on chrooting to a lvm /(root). Select one of the above: |
Pour lancer la reprise système effective,
sélectionnez r. L'écran HP-UX Recovery MENU est alors
affiché : HP-UX Recovery MENU Select one of the following: a. Rebuild the bootlif (ISL, HPUX, and the AUTO file) and install all files required to boot and recover HP-UX on a target root file system. b. Do not rebuild the bootlif but install files required to boot and recover HP-UX on the root file system. c. Rebuild only the bootlif. d. Replace only the kernel on the root file system. m. Return to 'CORE Media Main Menu'. x. Exit to the shell. Use this menu to select the level of recovery desired. Selection: |
Sélectionnez c pour reconstruire le bootlif. Le menu suivant apparaît : BOOTLIF PATH VERIFICATION MENU This menu must be used to determine the path to the bootlif (ISL, HPUX and the AUTO file). When the information is correct, select 'a'. INFORMATION to verify: Path to the bootlif is 56/52.1.0 Select one of the following: a. The above information is correct. b. WRONG!! The path to bootlif is incorrect. m. Return to the 'HP-UX Recovery MENU.' x. Exit to the shell. Selection: |
Si le chemin d'accès du bootlif est correct,
tapez a. Le menu ci-après apparaît : BOOT STRING VERIFICATION MENU This menu must be used to verify the system's boot string. When the information is correct, select 'a'. INFORMATION to verify: The system's boot string should be: 'hpux -lm (56/52.5.0)/stand/vmunix' Select one of the following: a. The above information is correct. b. WRONG!! Prompt the user for the system's boot string. m. Return to the 'HP-UX Recovery MENU.' x. Exit to the shell. NOTE: For an LVM '/'(ROOT) the '-lm' option MUST be specified (example: 'hpux -lm (2.3.4)/stand/vmunix' ) Selection: |
Si la chaîne d'amorçage est incorrecte,
tapez b à l'invite. Un message similaire à celui-ci
apparaît alors : AUTO FILE should be (remplacer 'hpux (56/52.5.0)/stand/vmunix'): |
Tapez le nom adéquat (par exemple, hpux). Le menu BOOT STRING VERIFICATION est de nouveau
affiché : BOOT STRING VERIFICATION MENU This menu must be used to verify the system's boot string. When the information is correct, select 'a'. INFORMATION to verify: The system's boot string should be: 'hpux' Select one of the following: a. The above information is correct. b. WRONG!! Prompt the user for the system's boot string. m. Return to the 'HP-UX Recovery MENU.' x. Exit to the shell. NOTE: For an LVM '/'(ROOT) the '-lm' option MUST be specified (example: 'hpux -lm (2.3.4)/stand/vmunix' ) Selection: |
 |  |  |  |  | REMARQUE : N'utilisez l'option -lm pour passer en mode d'administration LVM que si
vous effectuez la reprise d'un système LVM. |  |  |  |  |
Si l'information est correcte, tapez a. L'un des deux écrans suivants apparaît
alors : Pour un système LVM, il se
présente approximativement comme suit : *********** Installing bootlif *********** mkboot -b /dev/rmt/1m -i ISL -i HPUX /dev/rdsk/c1t1d0 mkboot -a hpux (56/52.5.0;0)/stand/vmunix /dev/rdsk/c1t1d0 |
Si la reprise concerne un système comportant
des disques à sectorisation matérielle, le message
proposé sera plutôt celui-ci : *********** Installing bootlif *********** mkboot -b 15.16.128.126 -H -i ISL -i HPUX /dev/rdsk/c0t0d0 mkboot -a hpux (4.0.0;13)/stand/vmunix /dev/rdsk/c0t0d0 |
L'option -H est utilisée pour les disques à sectorisation matérielle. L'option -l pour les disques LVM. L'option -W est utilisée pour définir l'ensemble
du disque.
RECOVERY COMPLETION MENU Use this menu after the recovery process has installed all requested files on your system. Select one of the following: a. REBOOT the target system and continue with recovery. b. Return to the CORWE Media Main Menu. Selection: |
Lorsque vous êtes parvenu à l'écran
RECOVERY COMPLETION MENU, achevez le processus de reprise en sélectionnant a, ce qui entraîne le réamorçage
du système. Le processus de reconstruction du bootlif seul est
alors achevé.
Remplacement
du noyau seul |  |
Amorcez le support CORE, selon la procédure décrite
par la rubrique « Reconstruction
du bootlif et installation des fichiers critiques ».
Différents messages d'états apparaissent, suivis
de l'affichage d'un menu : Welcome to the HP-UX installation process! Use the <tab> and/or arrow keys to navigate through the following menus, and use the <return> key to select an item. If the menu items are not clear, select the "Help" item for more information. [ Install HP-UX ] [ Run a Recovery Shell ] [ Cancel and Reboot ] [ Advanced Options ] [ Help ]
|
 |
Sélectionnez Run a Recovery Shell. L'écran
disparaît, et le message suivant est affiché : Would you like to start up networking at this time? [n] |
Tapez n. L'écran suivant apparaît alors
: * Loading in a shell... * Loading in the recovery system commands... ... HP-UX SYSTEM RECOVERY CORE MEDIA WARNING: YOU ARE SUPERUSER !! NOTE: Commands residing in the RAM-based file system are unsupported 'mini' commands. These commands are only intended for recovery purposes. Loading commands needed for recovery! WARNING: If ANYTHING is changed on a root(/) that is mirrored a 'maintenance mode'(HPUX -lm) boot MUST be done in order to force the mirrored disk to be updated!! Press <return> to continue. |
Tapez Entrée. Un message d'état apparaît : Loading commands needed for recovery! |
Le menu ci-après est ensuite affiché : HP-UX CORE MEDIA RECOVERY MAIN MENU s. Search for a file b. Reboot l. Load a file r. Recover an unbootable HP-UX system x. Exit to shell c. Instructions on chrooting to a lvm /(root). This menu is for listing and loading the tools contained on the CORE media. Once a tool is loaded, it may be run from the shell. Some tools require other files to be present in order to successfully execute. Select one of the above: |
Pour lancer la reprise système effective,
sélectionnez r. Le menu HP-UX Recovery apparaît : HP-UX Recovery MENU Select one of the following: a. Rebuild the bootlif (ISL, HPUX, and the AUTO file) and install all files required to boot and recover HP-UX on a target root file system. b. Do not rebuild the bootlif but install files required to boot and recover HP-UX on the root file system. c. Rebuild only the bootlif. d. Replace only the kernel on the root file system. m. Return to 'CORE media Main Menu'. x. Exit to the shell. Use this menu to select the level of recovery desired. Selection: |
Sélectionnez d pour remplacer seulement le noyau du système
de fichiers racine. Le menu ci-après est alors affiché : DEVICE FILE VERIFICATION MENU This menu is used to specify the path of the root file system. When the information is correct, select 'a'. INFORMATION to verify: Device file used for '/'(ROOT) is c1t6d0 The path to disk is 56/52.6.0 Select one of the following: a. The above information is correct. b. WRONG!! The device file used for '/'(ROOT) is incorrect. m. Return to the 'HP-UX Recovery MENU.' x. Exit to the shell. NOTE: If '/' is an LVM, use an 's1lvm' suffix (e.g.,c0t1d0s1lvm). Selection: |
Si le fichier spécial racine est incorrect,
sélectionnez b. Le système vous demande alors de taper
le nom correct du fichier spécial : Enter the device file associated with the '/'(ROOT) file system (example: c1t6d0): |
 |  |  |  |  | REMARQUE : Sur un système comportant des disques à sectorisation
matérielle, l'invite et la réponse se présenteront
de la manière suivante : |  |  |  |  |
Enter the device file associated with the '/'(ROOT) file system (For example: c0t1d0s1lvm ) : fichier_spécial /dev/rdsk/fichier_spécial not a special file <Press return to continue> Enter the address associated with the '/'(ROOT) file system (For example: 4.0.1) : adresse NOTE: if your '/'(ROOT) is not part of a sectioned disk layout enter a 'W' for whole disk layout or enter a 'l' for an LVM disk layout instead of a section number. Enter the section associated with the '/'(ROOT) file system (For example: 13 ): 13 making rdsk/c0t0d0s13 c 214 0x00000d making dsk/c0t0d0s13 b 26 0x00000d |
Si le nom de fichier spécial racine tapé est c1t1d0, l'écran proposé est celui-ci
: DEVICE FILE VERIFICATION MENU This menu is used to specify the path of the root file system. When the information is correct, select 'a'. INFORMATION to verify: Device file used for '/'(ROOT) is c1t1d0 The path to disk is 56/52.1.0 Select one of the following: a. The above information is correct. b. WRONG!! The device file used for '/'(ROOT) is incorrect. m. Return to the 'HP-UX Recovery MENU.' x. Exit to the shell. NOTE: If '/' is an LVM, use an 's1lvm' suffix (e.g.,c0t1d0s1lvm). Selection: |
Sélectionnez a, si le nom de fichier spécial racine
correct est c1t1d0. Le menu suivant apparaît ensuite : FILE SYSTEM CHECK MENU The file system check '/sbin/fs/hfs/fsck -y /dev/rdsk/c1t1d0' will now be run. Select one of the following: a. Run fsck -y . b. Prompt for the fsck run string on c1t1d0. m. Return to the 'HP-UX Recovery MENU.' Selection: |
Sélectionnez a pour lancer l'utilitaire fsck -y et vérifier l'altération éventuelle
du système de fichiers. Un écran similaire à celui-ci apparaît
alors : ** /dev/rdsk/c1t1d0 ** Last Mounted on /ROOT ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 6256 files, 0 icont, 149423 used, 1563824 free (928 frags, 195362 blocks) Mounting c1t1d0 to the CORE media /ROOT directory... Filesystem kbytes used avail %cap iused ifree iused Mounted on /ROOT 434773 352461 38834 90% 15241 54647 22% ? Should the existing kernel be 'left', 'overwritten', or 'moved'?[moved]over |
Pour déplacer le noyau existant avec votre
nouveau système de fichiers, tapez move à l'invite. Le message suivant apparaît
: downloading INSTALL to /stand/vmunix RECOVERY COMPLETION MENU Use this menu after the recovery process has installed all requested files on your system. Select one of the following: a. REBOOT the target system and continue with recovery. b. Return to the CORE media Main Menu. Selection: |
Lorsque vous êtes parvenu à l'écran
RECOVERY COMPLETION MENU, achevez le processus de reprise en sélectionnant a, ce qui entraîne le réamorçage
du système cible.
Le processus de remplacement du noyau seul est alors
achevé.
|