Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| elearning:workbooks:centos:8:admin:l120 [2021/11/01 15:52] – created admin | elearning:workbooks:centos:8:admin:l120 [2022/06/05 18:00] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ~~PDF: | ~~PDF: | ||
| - | Dernière mise-à-jour | + | Version |
| - | ======LCF514 - Gestion du Serveur NFS====== | + | Last updated : ~~LASTMOD~~ |
| - | =====Contenu du Module===== | + | ======LCE514 - Training Validation====== |
| - | * **LCF514 - Gestion du Serveur NFS** | + | =====Contents===== |
| - | * Contenu du Module | + | |
| - | * Présentation | + | |
| - | * Les Services et Processus du Serveur NFSv3 | + | |
| - | * Les Services RPC | + | |
| - | * Options d'un Partage NFS | + | |
| - | * Commandes de Base | + | |
| - | * Installation | + | |
| - | * Mise en Place | + | |
| - | * Configuration du Serveur | + | |
| - | * Configuration du Client | + | |
| - | * Surveillance du Serveur | + | |
| - | * La Commande rpcinfo | + | |
| - | * La Commande nfsstat | + | |
| - | =====Présentation===== | + | * **LCE514 - Training Validation** |
| + | * Contents | ||
| + | * Course Materials | ||
| + | * Reminder of the Training Program | ||
| + | * Training Evaluation | ||
| + | * Exam - Acquired knowledge | ||
| - | Quand on parle de NFS, on parle d' | + | =====Course Materials===== |
| - | Le Network File System (NFS) est le protocole de partage de fichiers historique sur des systèmes Unix. Lors de l' | + | Access to the course materials, LABS and tests requires |
| - | | + | You have been given a **free** 365 day subscription to your Course Materials on our LMS. |
| - | | + | |
| - | Cependant l' | + | =====Reminder of the Training Program===== |
| - | Il existe actuellement 3 versions de NFS : | + | * **LCE500 - CentOS 8 Linux (RHEL 8 / Oracle Linux 8) - System Administrator** |
| + | * Contents | ||
| + | * Prerequisites | ||
| + | * Hardware | ||
| + | * Software | ||
| + | * Internet | ||
| + | * Using our infrastructure | ||
| + | * Training Program | ||
| + | * Skills Assessment | ||
| - | ^ Version ^ Protocole Utilisé ^ Dépendance ^ | + | * **LCE501 - Managing Users and Groups** |
| - | | **NFSv2** | TCP et UDP | portmap | | + | * Contents |
| - | | **NFSv3** | TCP et UDP | portmap | | + | |
| - | | **NFSv4** | TCP | Aucune | + | |
| + | | ||
| + | * The /etc/group and / | ||
| + | | ||
| + | | ||
| + | | ||
| + | * groupadd | ||
| + | | ||
| + | | ||
| + | | ||
| + | * gpasswd | ||
| + | * Users | ||
| + | * useradd | ||
| + | * userdel | ||
| + | * usermod | ||
| + | * passwd | ||
| + | * chage | ||
| + | * Configuration | ||
| + | * LAB #1 - Managing Users and Groups | ||
| + | * LAB #2 - su and su - | ||
| + | * sudo | ||
| - | La version utilisée par défaut sous CentOS/Redhat est **NFSv3**. | + | * **LCE502 - Package Management** |
| + | * Contents | ||
| + | * LAB #1 - Compiling Software | ||
| + | * 1.1 - ./configure | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | * 2.1 - Configuration | ||
| + | * 2.2 - Usage | ||
| + | * LAB #3 - The dnf Command | ||
| + | * 3.1 - Presentation | ||
| + | * 3.2 - Configuration | ||
| + | * 3.3 - Repositories | ||
| + | * 3.4 - Searching for Packages | ||
| + | * 3.5 - Viewing Information on and Downloading a Package | ||
| + | * 3.6 - Installing a Package | ||
| + | * 3.7 - Updating Packages | ||
| + | * 3.8 - Deleting Packages | ||
| + | * Shared Libraries | ||
| + | * Presentation | ||
| + | * Introduction | ||
| + | * Shared Object Locations | ||
| + | * ld-linux.so.2 | ||
| + | * The ldd Command | ||
| + | * The / | ||
| + | * The ldconfig Command | ||
| - | ====Les Services et Processus du Serveur NFSv3==== | + | * **LCE503 - Managing File Permissions** |
| + | * Contents | ||
| + | * Presentation | ||
| + | * Preparation | ||
| + | * LAB #1 - Basic Unix File Permissions | ||
| + | * 1.1 - Changing Permissions with chmod | ||
| + | * Symbolic Mode | ||
| + | * Octal Mode | ||
| + | * The umask Command | ||
| + | * 1.2 - Changing the Owner or the Group with chown and chgrp | ||
| + | * The chown Command | ||
| + | * The chgrp Command | ||
| + | * LAB #2 - Advanced Unix Permissions | ||
| + | * 2.1 - SUID/SGID bit | ||
| + | * 2.2 - Inheritance Flag | ||
| + | * 2.3 - Sticky bit | ||
| + | * LAB #3 - Extending Linux Permissions using ACLs and Attributes | ||
| + | * 3.1 - ACLs | ||
| + | * 3.2 - Attributes | ||
| - | La version NFSv3 utilise | + | * **LCE504 - Managing Disks and Filesystems** |
| + | * Contents | ||
| + | * Peripherals | ||
| + | * Partitions | ||
| + | * Partitioning | ||
| + | * LAB #1 - Partioning your Disk with the fdisk Command | ||
| + | * LAB #2 - Modifier | ||
| + | * Logical Volume Manager (LVM) | ||
| + | * LAB #3 - Linear Logical Volumes | ||
| + | * Physical Volumes (PV) | ||
| + | * Volume Groups (VG) and Physical Extents (PE) | ||
| + | * Logical Volumes (LV) | ||
| + | * LAB #4 - Grow a Volume | ||
| + | * LAB #5 - Snapshots | ||
| + | * LAB #6 - Deleting Volumes | ||
| + | * LAB #7 - Mirrored Volumes | ||
| + | * LAB #8 - Changing LVM Attributes | ||
| + | * LAB #9 - Striped Volumes | ||
| + | * LAB #10 - Managing Meta-data | ||
| + | * Journaled Filesystems | ||
| + | * Ext3 | ||
| + | * Managing Ext3 | ||
| + | * LAB #11 - Converting Ext3 to Ext2 | ||
| + | * LAB #12 - Converting Ext2 to Ext3 | ||
| + | * LAB #13 - Using another PArtition for the Journal | ||
| + | * LAB #14 - Changing the File System Check interval on an ext3 Filesystem | ||
| + | * Ext4 | ||
| + | * LAB #15 - Creating an Ext4 Filesystem | ||
| + | * LAB #16 - Adding a Label to an Ext4 Filesystem | ||
| + | * LAB #17 - Converting Ext3 to Ext4 | ||
| + | * XFS | ||
| + | * LAB #18 - Creating an XFS Filesystem | ||
| + | * LAB #19 - Adding a Label to an XFS Filesystem | ||
| - | ^ Services ^ Fonction ^ | + | |
| - | | **nfs** | Démarre le service NFS ainsi que les processus RPC pour recevoir et traiter les demandes des clients | | + | * Contents |
| - | | **nfslock** | Démarre les processus RPC qui permettent aux clients de verrouiller les fichiers sur le serveur | + | |
| - | | **portmap** | Gestion des réservations des ports pour les services RPC locaux afin que les services RPC distants puissent se connecter | | + | |
| + | | ||
| + | * User Crontabs | ||
| + | | ||
| + | | ||
| - | ===Les Services RPC=== | + | * **LCE506 - Archiving and Compression** |
| + | * Contents | ||
| + | * Traditional Backup Tools | ||
| + | * Preparation | ||
| + | * The tar Command | ||
| + | * Presentation | ||
| + | * LAB #1 - Working with the tar Command | ||
| + | * The GPL tar Commande and Compression | ||
| + | * The cpio Command | ||
| + | * Presentation | ||
| + | * LAB #2 - Working with the cpio Command | ||
| + | * The dd Command | ||
| + | * Presentation | ||
| + | * LAB #3 - Working with the dd Command | ||
| + | * The dump et restore Commands | ||
| + | * Presentation | ||
| + | * LAB #4 - System Backups | ||
| + | * Backing up the Installed Package List | ||
| + | * Backing up the Disk Structure | ||
| + | * Backing up Mount Points | ||
| + | * Backing up the Boot Loader | ||
| + | * GRUB Legacy | ||
| + | * GRUB 2 on BIOS | ||
| + | * GRUB 2 on EFI | ||
| + | * Backing up User Files | ||
| + | * Rsync | ||
| + | * Presentation | ||
| + | * LAB #5 - Working with the rsync Command | ||
| + | * Compression | ||
| + | * The gzip Command | ||
| + | * Presentation | ||
| + | * LAB #4 - Working with the gzip Command | ||
| + | * The bzip2 Command | ||
| + | * Presentation | ||
| + | * LAB #5 - Working with the bzip2 Command | ||
| + | * The xz Command | ||
| + | * Presentation | ||
| + | * LAB #6 - Working with the xz Command | ||
| + | * Other Compression Utilities | ||
| - | Les services RPC ( //Remote Procedure Calls// ou appel de procédures distantes ) ont été inventé par SUN Microsystem pour faciliter le travail des développeurs | + | * **LCE507 - Process Management** |
| + | * Contents | ||
| + | * Presentation | ||
| + | * Process Types | ||
| + | * Process Commands | ||
| + | * The ps Command | ||
| + | * The pgrep Command | ||
| + | * The pstree Command | ||
| + | * The top Command | ||
| + | * The fg, bg and jobs Commands | ||
| + | * The wait Command | ||
| + | * The nice Command | ||
| + | * The renice Command | ||
| + | * The nohup Command | ||
| + | * The kill Command | ||
| + | * The pkill Command | ||
| - | Lorsque le client veut faire une requête à un service RPC, il contacte en premier lieu le service | + | |
| + | | ||
| + | | ||
| + | | ||
| + | * Security Logging | ||
| + | * The last Command | ||
| + | * The lastlog Command | ||
| + | * The lastb Command | ||
| + | * The / | ||
| + | * The / | ||
| + | * Managing Audit Events | ||
| + | * auditd | ||
| + | * auditctl | ||
| + | * Viewing Audit Events | ||
| + | * The aureport Command | ||
| + | * The ausearch Command | ||
| + | * The / | ||
| + | * Applications | ||
| + | * rsyslog | ||
| + | * Priorities | ||
| + | * Facilitiess | ||
| + | * The / | ||
| + | * Modules | ||
| + | * Global Directives | ||
| + | * Rules | ||
| + | * Facility.Priority | ||
| + | * Facility!Priority | ||
| + | * Facility=Priority | ||
| + | * Using the * Wildcard | ||
| + | * n Facilities with Identical Priorities | ||
| + | * n Selectors with Identical Actions | ||
| + | * The logger Command | ||
| + | * The logrotate Command | ||
| + | * journald | ||
| + | * Using Journald | ||
| + | * Application Specific Messages | ||
| + | * Boot Messages | ||
| + | * Priority Specific Messages | ||
| + | * Messages from a Specific Date Range | ||
| + | * Real Time Messages | ||
| + | * Searching with Key Words | ||
| + | * **LCE509 - Printer Management** | ||
| + | * Contents | ||
| + | * Cups | ||
| + | * Protocols | ||
| + | * Packages | ||
| + | * Daemon | ||
| + | * The / | ||
| + | * Filters | ||
| + | * Backends | ||
| + | * Logs | ||
| + | * Printers | ||
| + | * Administration | ||
| + | * The lpstat Command | ||
| + | * The lpadmin Command | ||
| + | * The accept et cupsenable Commands | ||
| + | * Classes | ||
| + | * The / | ||
| + | * The / | ||
| + | * The cancel Command | ||
| + | * The lpmove Command | ||
| + | * Web Interface | ||
| - | ====Options | + | * **LCE510 - System Startup and Shutdown** |
| + | * Contents | ||
| + | * System Startup | ||
| + | * Boot Loader | ||
| + | * BIOS Systems | ||
| + | * EFI Systems | ||
| + | * GRUB 2 | ||
| + | * The / | ||
| + | * The / | ||
| + | * Files in the /etc/grub.d directory | ||
| + | * Initramfs | ||
| + | * The init Script | ||
| + | * Kernel Booting Process | ||
| + | * Systemd | ||
| + | * LAB #1 - The systemctl Command | ||
| + | * LAB #2 - Configuration Files | ||
| + | * 2.1 - Default Configuration Files | ||
| + | * 2.1 - Overloading Default Configuration Files | ||
| + | * LAB #3 - The systemd-analyze Command | ||
| + | * LAB #4 - Targets | ||
| + | * 4.1 - Checking the Target Dependencies | ||
| + | * 4.2 - The Default Target | ||
| + | * Checking the Default Target | ||
| + | * Changing the Default Target | ||
| + | * Changing the Default Target for the Current Session | ||
| + | * LAB #5 - Managing Services | ||
| + | * 5.1 - Single Service Instances | ||
| + | * 5.2 - Multiple Instance Services | ||
| + | * 5.3 - Disallowing Modifications to a Service Status | ||
| + | * LAB #6 - System Shutdown | ||
| + | * 6.1 - The shutdown Command | ||
| + | * 6.2 - The reboot Command | ||
| + | * 6.3 - The halt Command | ||
| + | * 6.4 - The poweroff Command | ||
| - | Certaines options, appliquées à un partage, modifient le comportement du serveur NFS pour le partage concerné lors de son démarrage : | + | * **LCE511 - Training Validation** |
| + | * Course Materials | ||
| + | * Reminder of the Training Program | ||
| + | * Day #1 | ||
| + | * Day #2 | ||
| + | * Day #3 | ||
| + | * Day #4 | ||
| + | * Training Evaluation | ||
| + | * Exam - Acquired knowledge | ||
| - | ^ Option ^ Comportement ^ | + | =====Training Evaluation===== |
| - | | **ro** | Accès en lecture seule | | + | |
| - | | **rw** | Accès en lecture / écriture | | + | |
| - | | **sync** | Ecriture synchrone ( écriture immédiate sur disque ) | | + | |
| - | | **async** | Ecriture asynchrone ( écriture sur disque en utilisant une cache ) | | + | |
| - | | **root_squash** | Root perd ses prérogatives sur le partage concerné | | + | |
| - | | **no_root_squash** | Root garde ses prérogatives sur le partage concerné | | + | |
| - | | **no_lock** | Pas de verrous sur les fichiers accédés | | + | |
| - | | **all_squash** | Force la mapping de tous les utilisateurs vers l' | + | |
| - | | **anonuid** | Fixe l'UID de l' | + | |
| - | | **anongid** | Fixe le GID de l' | + | |
| - | <WRAP center round important> | + | Please complete and submit the training evaluation form. |
| - | **Important** : Si plusieurs options sont spécifiées, | + | |
| - | </ | + | |
| - | ====Commandes de Base==== | + | =====Exam - Acquired knowledge===== |
| - | Plusieurs commandes permettent de gérer et de s' | + | Please take the final examination. |
| - | + | ||
| - | ^ Commande ^ Comportement ^ | + | |
| - | | **exportfs** | Affiche les partages actifs sur le serveur courant | | + | |
| - | | **nfsstat** | Affiche les statistiques de l' | + | |
| - | | **rpcinfo** | Affiche les démons gérés en effectuant une requête RPC sur le serveur courant | | + | |
| - | | **showmount** | Affiche les partages actifs sur un serveur distant | | + | |
| - | | **mount** | Permet de monter un partage distant sur un répertoire local | | + | |
| - | + | ||
| - | =====Mise en Place===== | + | |
| - | + | ||
| - | ====Configuration du Serveur==== | + | |
| - | + | ||
| - | <WRAP center round important> | + | |
| - | **Important** : Arrêtez votre VM. Dans la fenêtre de Oracle VM VirtualBox, cliquez sur **Fichier > Paramètres > Réseau** et créez un réseau NAT appelé **NatNetwork**. Dans les paramètres de votre VM, cliquez sur **Réseau** et configurez la Carte 1 en Réseau NAT dans le réseau NatNetwork. Démarrez votre VM. | + | |
| - | </ | + | |
| - | + | ||
| - | Configurez votre interface réseau si ce n'est pas déjà fait : | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# nmcli connection add con-name ip_fixe ifname enp0s3 type ethernet ip4 10.0.2.16/ | + | |
| - | Connection ' | + | |
| - | [root@centos7 ~]# nmcli connection mod ip_fixe ipv4.dns 8.8.8.8 | + | |
| - | [root@centos7 ~]# nmcli connection up ip_fixe | + | |
| - | Connection successfully activated (D-Bus active path: / | + | |
| - | [root@centos7 ~]# systemctl restart NetworkManager.service | + | |
| - | </ | + | |
| - | + | ||
| - | Ajoutez une autre adresse IP pour le NFS : | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# nmcli connection mod ip_fixe +ipv4.addresses 192.168.1.2/ | + | |
| - | </ | + | |
| - | + | ||
| - | Continuez maintenant par la mise en place du service **nfs** : | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# systemctl status nfs.service | + | |
| - | nfs-server.service - NFS server and services | + | |
| - | | + | |
| - | | + | |
| - | + | ||
| - | [root@centos7 ~]# systemctl enable nfs-server.service | + | |
| - | ln -s '/ | + | |
| - | [root@centos7 ~]# systemctl status nfs.service | + | |
| - | nfs-server.service - NFS server and services | + | |
| - | | + | |
| - | | + | |
| - | </ | + | |
| - | + | ||
| - | La mise en place d'un partage ponctuel se fait en utilisant la commande **exportfs** en indiquant en argument le répertoire sous la forme de // | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# exportfs | + | |
| - | [root@centos7 ~]# exportfs 192.168.1.2:/ | + | |
| - | [root@centos7 ~]# exportfs | + | |
| - | / | + | |
| - | </ | + | |
| - | + | ||
| - | Démarrez maintenant le service **nfs** : | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# systemctl start nfs.service | + | |
| - | [root@centos7 ~]# systemctl status nfs.service | + | |
| - | nfs-server.service - NFS server and services | + | |
| - | | + | |
| - | | + | |
| - | Process: 9552 ExecStart=/ | + | |
| - | Process: 9551 ExecStartPre=/ | + | |
| - | Main PID: 9552 (code=exited, | + | |
| - | | + | |
| - | + | ||
| - | Oct 01 13:18:13 centos7.fenestros.loc systemd[1]: Starting NFS server and services... | + | |
| - | Oct 01 13:18:13 centos7.fenestros.loc systemd[1]: Started NFS server and services. | + | |
| - | </ | + | |
| - | + | ||
| - | Afin de mettre en place un ou des partages **permanents**, | + | |
| - | + | ||
| - | < | + | |
| - | / | + | |
| - | / | + | |
| - | </ | + | |
| - | + | ||
| - | <WRAP center round important> | + | |
| - | **Important** : Dans ce cas, nous avons partagé le répertoire **/ | + | |
| - | </ | + | |
| - | + | ||
| - | Redémarrez maintenant le service nfs afin que le fichier **/ | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# systemctl restart nfs.service | + | |
| - | [root@centos7 ~]# systemctl status nfs.service | + | |
| - | nfs-server.service - NFS server and services | + | |
| - | | + | |
| - | | + | |
| - | Process: 4642 ExecStopPost=/ | + | |
| - | Process: 4639 ExecStopPost=/ | + | |
| - | Process: 4638 ExecStop=/ | + | |
| - | Process: 4650 ExecStart=/ | + | |
| - | Process: 4649 ExecStartPre=/ | + | |
| - | Main PID: 4650 (code=exited, | + | |
| - | | + | |
| - | + | ||
| - | Oct 01 14:24:50 centos7.fenestros.loc systemd[1]: Starting NFS server and services... | + | |
| - | Oct 01 14:24:50 centos7.fenestros.loc exportfs[4649]: | + | |
| - | Oct 01 14:24:50 centos7.fenestros.loc exportfs[4649]: | + | |
| - | Oct 01 14:24:50 centos7.fenestros.loc systemd[1]: Started NFS server and services. | + | |
| - | </ | + | |
| - | + | ||
| - | Puisque aucune option ne soit spécifiée pour les montages, ceux-ci ont été exportés avec des option par défaut. En utilisant l' | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# exportfs -v | + | |
| - | / | + | |
| - | /tmp < | + | |
| - | </ | + | |
| - | + | ||
| - | ====Configuration du Client==== | + | |
| - | + | ||
| - | <WRAP center round important> | + | |
| - | **Important** : Arrêtez votre VM. Créez une clône de votre VM. Démarrez la VM clonée. | + | |
| - | </ | + | |
| - | + | ||
| - | Re-configurez ensuite l' | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# nmcli connection del ip_fixe | + | |
| - | + | ||
| - | [root@centos7 ~]# nmcli connection show ip_fixe | + | |
| - | Error: ip_fixe - no such connection profile. | + | |
| - | + | ||
| - | [root@centos7 ~]# nmcli connection add con-name ip_fixe ifname enp0s3 type ethernet ip4 10.0.2.17/ | + | |
| - | Connection ' | + | |
| - | + | ||
| - | [root@centos7 ~]# nmcli connection mod ip_fixe ipv4.dns 8.8.8.8 | + | |
| - | + | ||
| - | [root@centos7 ~]# nmcli connection mod ip_fixe +ipv4.addresses 192.168.1.1/ | + | |
| - | + | ||
| - | [root@centos7 ~]# nmcli connection up ip_fixe | + | |
| - | Connection successfully activated (D-Bus active path: / | + | |
| - | + | ||
| - | [root@centos7 ~]# systemctl restart NetworkManager.service | + | |
| - | </ | + | |
| - | + | ||
| - | <WRAP center round important > | + | |
| - | **Important** : Démarrez la VM d' | + | |
| - | </ | + | |
| - | + | ||
| - | Dans la VM d' | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# getenforce | + | |
| - | Enforcing | + | |
| - | [root@centos7 ~]# setenforce permissive | + | |
| - | [root@centos7 ~]# systemctl status firewalld.service | + | |
| - | firewalld.service - firewalld - dynamic firewall daemon | + | |
| - | | + | |
| - | | + | |
| - | Main PID: 479 (firewalld) | + | |
| - | | + | |
| - | | + | |
| - | + | ||
| - | Oct 01 14:54:57 centos7.fenestros.loc systemd[1]: Started firewalld - dynamic firewall daemon. | + | |
| - | [root@centos7 ~]# systemctl stop firewalld.service | + | |
| - | </ | + | |
| - | + | ||
| - | A partir de votre client, consultez les répertoire exportés du serveur : | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# showmount --exports 192.168.1.2 | + | |
| - | Export list for 192.168.1.2: | + | |
| - | /tmp * | + | |
| - | / | + | |
| - | </ | + | |
| - | + | ||
| - | Créez maintenant le répertoire **/nfs** dans le client et montez le partage **192.168.1.2:/ | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# mkdir /nfs | + | |
| - | [root@centos7 ~]# mount -t nfs 192.168.1.2:/ | + | |
| - | </ | + | |
| - | + | ||
| - | Notez que quand vous essayer de rentrer dans le répertoire en tant que root, vous obtenez le message **-bash: cd: /nfs: Permission non accordée** : | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# cd /nfs | + | |
| - | -bash: cd: /nfs: Permission denied | + | |
| - | </ | + | |
| - | + | ||
| - | <WRAP center round important> | + | |
| - | **Important** : Puisque le répertoire **/ | + | |
| - | </ | + | |
| - | + | ||
| - | Retournez donc dans le serveur et modifiez le fichier **/ | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# cat / | + | |
| - | / | + | |
| - | /tmp * | + | |
| - | </ | + | |
| - | + | ||
| - | Redémarrez le service nfs : | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# systemctl restart nfs.service | + | |
| - | </ | + | |
| - | + | ||
| - | Vous noterez que maintenant vous êtes capable de vous positionner dans le répertoire **/nfs** du client en tant que **root** | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# cd /nfs | + | |
| - | [root@centos7 nfs]# | + | |
| - | </ | + | |
| - | + | ||
| - | =====Surveillance du Serveur===== | + | |
| - | + | ||
| - | ====La Commande rpcinfo==== | + | |
| - | + | ||
| - | La commande **rpcinfo** permet de faire une requête RPC sur le serveur et de voir les démons gérés : | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos6 ~]# rpcinfo | + | |
| - | | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100024 | + | |
| - | 100024 | + | |
| - | 100024 | + | |
| - | 100024 | + | |
| - | 100011 | + | |
| - | 100011 | + | |
| - | 100011 | + | |
| - | 100011 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100227 | + | |
| - | 100227 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100227 | + | |
| - | 100227 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100227 | + | |
| - | 100227 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100227 | + | |
| - | 100227 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# rpcinfo | + | |
| - | | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100000 | + | |
| - | 100024 | + | |
| - | 100024 | + | |
| - | 100024 | + | |
| - | 100024 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100005 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100227 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100227 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100227 | + | |
| - | 100003 | + | |
| - | 100003 | + | |
| - | 100227 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | 100021 | + | |
| - | </ | + | |
| - | + | ||
| - | ====La Commande nfsstat==== | + | |
| - | + | ||
| - | La Commande **nfsstat** permet de vérifier l' | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos6 ~]# nfsstat | + | |
| - | Server rpc stats: | + | |
| - | calls badcalls | + | |
| - | 50 | + | |
| - | + | ||
| - | Server nfs v4: | + | |
| - | null | + | |
| - | 2 4% 48 96% | + | |
| - | + | ||
| - | Server nfs v4 operations: | + | |
| - | op0-unused | + | |
| - | 0 0% 0 0% 0 0% 5 4% 0 0% 0 0% | + | |
| - | create | + | |
| - | 0 0% 0 0% 0 0% 45 41% 5 4% 0 0% | + | |
| - | lock | + | |
| - | 0 0% 0 0% 0 0% 3 2% 0 0% 0 0% | + | |
| - | open | + | |
| - | 0 0% 0 0% 0 0% 0 0% 46 42% 0 0% | + | |
| - | putrootfh | + | |
| - | 2 1% 0 0% 3 2% 0 0% 0 0% 0 0% | + | |
| - | renew restorefh | + | |
| - | 0 0% 0 0% 0 0% 0 0% 0 0% 0 0% | + | |
| - | setcltidconf verify | + | |
| - | 0 0% 0 0% 0 0% 0 0% 0 0% 0 0% | + | |
| - | exchange_id | + | |
| - | 0 0% 0 0% 0 0% 0 0% 0 0% 0 0% | + | |
| - | getdevlist | + | |
| - | 0 0% 0 0% 0 0% 0 0% 0 0% 0 0% | + | |
| - | set_ssv | + | |
| - | 0 0% 0 0% 0 0% 0 0% 0 0% | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | [root@centos7 ~]# nfsstat | + | |
| - | Server rpc stats: | + | |
| - | calls badcalls | + | |
| - | 34 | + | |
| - | + | ||
| - | Server nfs v4: | + | |
| - | null | + | |
| - | 1 2% 33 97% | + | |
| - | + | ||
| - | Server nfs v4 operations: | + | |
| - | op0-unused | + | |
| - | 0 0% 0 0% 0 0% 5 7% 0 0% 0 0% | + | |
| - | create | + | |
| - | 0 0% 0 0% 0 0% 22 31% 4 5% 0 0% | + | |
| - | lock | + | |
| - | 0 0% 0 0% 0 0% 5 7% 0 0% 0 0% | + | |
| - | open | + | |
| - | 0 0% 0 0% 0 0% 0 0% 23 33% 0 0% | + | |
| - | putrootfh | + | |
| - | 1 1% 0 0% 0 0% 0 0% 0 0% 0 0% | + | |
| - | renew restorefh | + | |
| - | 5 7% 0 0% 0 0% 0 0% 0 0% 2 2% | + | |
| - | setcltidconf verify | + | |
| - | 2 2% 0 0% 0 0% 0 0% 0 0% 0 0% | + | |
| - | exchange_id | + | |
| - | 0 0% 0 0% 0 0% 0 0% 0 0% 0 0% | + | |
| - | getdevlist | + | |
| - | 0 0% 0 0% 0 0% 0 0% 0 0% 0 0% | + | |
| - | set_ssv | + | |
| - | 0 0% 0 0% 0 0% 0 0% 0 0% | + | |
| - | </ | + | |
| ----- | ----- | ||
| - | < | + | Copyright © 2022 Hugh Norris - Non-contractual document. The Training Program may be modified without notice. |
| - | <div align=" | + | |
| - | Copyright © 2020 Hugh Norris | + | |
| - | </ | + | |
| - | </ | + | |
| - | ----- | + | |