Ignorer les liens de navigation | |
Quitter l'aperu | |
Guide d'administration système : administration de base |
1. Oracle Solaris Management Tools (présentation)
2. Utilisation de la console de gestion Solaris (tâches)
3. Utilisation d'Oracle Java Web Console (tâches)
4. Gestion des comptes utilisateur et des groupes (présentation)
5. Gestion des comptes utilisateur et des groupes (tâches)
6. Gestion de la prise en charge client-serveur (présentation)
7. Gestion des clients sans disque (tâches)
8. Présentation de l'arrêt et de l'initialisation d'un système
9. Arrêt et initialisation d'un système (présentation)
10. Arrêt d'un système (tâches)
11. Modification du comportement d'initialisation d'Oracle Solaris (tâches)
12. Initialisation d'un système Oracle Solaris (tâches)
Initialisation d'un système SPARC (liste des tâches)
Initialisation d'un système SPARC
SPARC : Initialisation d'un système au niveau d'exécution 3 (niveau multiutilisateur)
SPARC : Initialisation d'un système au niveau d'exécution S (niveau monoutilisateur)
SPARC : Initialisation d'un système en mode interactif
SPARC : Initialisation d'un noyau autre que le noyau par défaut
Initialisation à partir d'un système de fichiers racine ZFS donné sur un système SPARC
SPARC : Obtention de la liste des jeux de données initialisables disponibles dans un pool racine ZFS
SPARC : Initialisation à partir d'un système de fichiers racine ZFS spécifié
Initialisation d'un système SPARC en mode de secours
Initialisation d'un système SPARC en mode de secours
Initialisation d'un système SPARC à partir du réseau
SPARC : Initialisation d'un système à partir du réseau
Initialisation d'un système x86 à l'aide de GRUB (liste des tâches)
x86 : Initialisation d'un système au niveau d'exécution 3 (multiutilisateur)
x86 : Initialisation d'un système au niveau d'exécution S (niveau monoutilisateur)
x86 : Initialisation à partir d'un système de fichiers racine ZFS spécifié sur un système x86
x86 : Affichage d'une liste des environnements d'initialisation ZFS disponibles
x86 : Initialisation à partir d'un système de fichiers racine ZFS spécifié
Initialisation d'un système x86 en mode de secours
Initialisation d'un système x86 en mode de secours
Initialisation d'un système x86 à partir du réseau
x86 : À propos des macros DHCP
x86 : Exécution d'une initialisation GRUB à partir du réseau
Accélération du processus de réinitialisation sur la plate-forme SPARC (liste des tâches)
Lancement d'une réinitialisation rapide d'un système SPARC
Lancement d'une réinitialisation rapide d'un système SPARC
Exécution d'une réinitialisation classique sur un système SPARC
Gestion du service de configuration d'initialisation
13. Gestion des archives d'initialisation d'Oracle Solaris (tâches)
14. Dépannage de l'initialisation d'un système Oracle Solaris (tâches)
15. x86 : Initialisation avec le GRUB (référence)
16. x86 : Initialisation d'un système qui ne met pas en uvre GRUB (tâches)
17. Utilisation de la commande regadm d'enregistrement automatique Oracle Solaris (tâches)
18. Gestion des services (présentation)
19. Gestion des services (tâches)
20. Gestion des logiciels (présentation)
21. Gestion des logiciels à l'aide des d'outils d'administration système d'Oracle Solaris (tâches)
22. Gestion des logiciels à l'aide des commandes de package Oracle Solaris (tâches)
|
Utilisez cette procédure pour initialiser au niveau d'exécution 3 un système qui est actuellement au niveau d'exécution 0.
# reboot
Si le système affiche l'invite Press any key to reboot, appuyez sur n'importe quelle touche pour redémarrer le système.
Vous pouvez également utiliser le bouton de réinitialisation à cette invite. Si le système a été mis hors tension, mettez le système sous tension à l'aide du bouton d'alimentation.
Lorsque la séquence d'initialisation commence, le menu GRUB s'affiche.
Si vous ne sélectionnez pas d'entrée dans un délai de 10 secondes, le système s'initialise automatiquement au niveau d'exécution 3.
L'invite de connexion s'affiche lorsque le processus d'initialisation s'est terminé avec succès.
hostname console login:
# who -r system% who -r . run-level 3 Mar 2 09:44 3 0 S
Exemple 12-9 x86 : Initialisation d'un système au niveau d'exécution 3 (niveau multiutilisateur)
# reboot Jul 24 11:29:52 bearskin reboot: rebooted by root syncing file systems... done rebooting... Adaptec AIC-7899 SCSI BIOS v2.57S4 (c) 2000 Adaptec, Inc. All Rights Reserved. Press <Ctrl><A> for SCSISelect(TM) Utility! Ch B, SCSI ID: 0 SEAGATE ST336607LSUN36G 160 GNU GRUB version 0.95 (637K lower / 2096064K upper memory) ============================================================== Solaris 10 10/08 s10x_u6wos_03 X86 Solaris failsafe ============================================================== Use the and keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line. SunOS Release 5.10 Version Generic_144500-10 64-bit Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Hostname: pups NIS domain name is ....sfbay.sun.com Reading ZFS config: done. Mounting ZFS filesystems: (5/5) pups console login: # who -r . run-level 3 Jul 24 11:31 3 0 S
Utilisez cette procédure pour initialiser au niveau d'exécution S un système qui est au niveau d'exécution 0. Le niveau multiutilisateur est utilisé pour l'exécution de la maintenance du système.
Remarque - Cette procédure peut être utilisée pour toutes les mises en œuvre GRUB. Toutefois, les entrées d'initialisation du menu principal GRUB varient selon la version d'Oracle Solaris que vous exécutez.
Pour obtenir une description de l'ensemble des options de noyau que vous pouvez spécifier au moment de l'initialisation, reportez-vous à la section x86 : Modification du comportement d'initialisation en modifiant le menu GRUB au moment de l'initialisation.
# reboot
Si le système affiche l'invite Press any key to reboot, appuyez sur n'importe quelle touche pour redémarrer le système.
Vous pouvez également utiliser le bouton de réinitialisation à cette invite. Si le système a été mis hors tension, mettez le système sous tension à l'aide du bouton d'alimentation.
Lorsque la séquence d'initialisation commence, le menu GRUB s'affiche.
Si vous ne pouvez pas utiliser les touches fléchées, utilisez la touche d'accent circonflexe (^) pour faire défiler vers le haut et la touche de la lettre v pour faire défiler vers le bas.
Vous pouvez alors ajouter des options et des arguments à la ligne kernel ou kernel$.
Les autres comportements d'initialisation suivants peuvent être spécifiés de cette manière :
Effectuez une initialisation de reconfiguration.
Initialisez un système compatible 64 bits en mode 32 bits.
Initialisez le système avec le débogueur de noyau.
Redirigez la console.
Pour plus d'informations, reportez-vous à la page de manuel boot(1M).
# who -r . run-level S Jun 13 11:07 S 0 0
Exemple 12-10 x86 : Initialisation d'un système en mode monoutilisateur
# reboot Jul 2 14:30:01 pups reboot: initiated by root on /dev/console syncing files... Press <Ctrl><A> forPSCSISelect(TM) Utility! GNU GRUB version 0.95 (637K lower / 2096064K upper memory) =================================================== Solaris 10 10/08 s10x_u6wos_03 X86 Solaris failsafe ===================================================== Use the and keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line. ===================================================== GNU GRUB version 0.95 (637K lower / 2096064K upper memory) ===================================================== findroot (pool_rpool,0,a) kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS module /platform/i86pc/boot_archive ================================================ Use the and keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu. [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ESC at any time exits. ] grub edit> kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS -s GNU GRUB version 0.95 (637K lower / 2096064K upper memory) ======================================================= findroot (pool_rpool,0,a) kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS -s module /platform/i86pc/boot_archive ====================================== Use the and keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu. . . . SunOS Release 5.10 Version Generic_144500-10 64-bit Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Booting to milestone "milestone/single-user:default". Hostname: pups Requesting System Maintenance Mode SINGLE USER MODE Root password for system maintenance (control-d to bypass): single-user privilege assigned to /dev/console. Entering System Maintenance Mode Jul 2 14:41:48 su: 'su root' succeeded for root on /dev/console Sun Microsystems Inc. # who -r who -r . run-level S Jul 2 14:39 S 0 0 #
Utilisez cette procédure pour initialiser un système, si vous avez besoin de spécifier un autre noyau ou un autre fichier /etc/system.
Avant de commencer
Pour spécifier un autre fichier /etc/system lors de l'initialisation d'un système x86 en mode interactif à l'aide de la commande boot -a, suivez les étapes ci-dessous :
1. Réalisez des copies de sauvegarde des fichiers /etc/system et boot/solaris/filelist.ramdisk.
# cp /etc/system /etc/system.bak # cp /boot/solaris/filelist.ramdisk /boot/solaris/filelist.ramdisk.orig
2. Ajoutez le nom de fichier /etc/system.bak au fichier /boot/solaris/filelist.ramdisk.
# echo "etc/system.bak" >> /boot/solaris/filelist.ramdisk
3. Mettez à jour l'archive d'initialisation.
# bootadm update-archive -v
# reboot
Si le système affiche l'invite Press any key to reboot, appuyez sur n'importe quelle touche pour redémarrer le système.
Vous pouvez également utiliser le bouton de réinitialisation à cette invite. Si le système a été mis hors tension, mettez le système sous tension à l'aide du bouton d'alimentation.
Lorsque la séquence d'initialisation commence, le menu GRUB principal s'affiche.
Enter default directory for modules [/platform/i86pc/kernel /kernel /usr/kernel]:
Name of system file [etc/system]: /etc/system.bak
Le fait d'appuyer sur la touche Entrée sans indiquer un autre fichier entraîne l'acceptation de la valeur par défaut.
Réparez le fichier /etc/system endommagé.
Exemple 12-11 x86 : Initialisation d'un système en mode interactif
# reboot syncing file systems... done rebooting... GNU GRUB version 0.95 (637K lower / 2096064K upper memory) =================================================== Solaris 10 10/08 s10x_u6wos_03 X86 Solaris failsafe ===================================================== Use the and keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line. ===================================================== GNU GRUB version 0.95 (637K lower / 2096064K upper memory) ===================================================== findroot (pool_rpool,0,a) kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS module /platform/i86pc/boot_archive ====================================================== Use the and keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu. [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ESC at any time exits. ] grub edit> kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS -a GNU GRUB version 0.95 (637K lower / 2096064K upper memory) =================================================== findroot (pool_rpool,0,a) kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS -a module /platform/i86pc/boot_archive ==================================================== . . . Enter default directory for modules [/platform/i86pc/kernel /kernel /usr/kernel]: Name of system file [/etc/system]: /etc/system.bak SunOS Release 5.10 Version Generic_144500-10 64-bit Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Hostname: pups NIS domain name is ....sfbay.sun.com Reading ZFS config: done. Mounting ZFS filesystems: (5/5) pups console login: