Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
elearning:workbooks:lpic:21:450:l104 [2022/10/11 13:56] adminelearning:workbooks:lpic:21:450:l104 [2022/11/01 07:26] (Version actuelle) admin
Ligne 5: Ligne 5:
 Updated : ~~LASTMOD~~ Updated : ~~LASTMOD~~
  
-======Topic 4: Filesystem and Devices======+======Topic 203: Filesystem and Devices======
  
-  * **Topic 4: Filesystem and Devices**+  * **Topic 203: Filesystem and Devices**
     * LAB #1 - Linux File Hierarchy System     * LAB #1 - Linux File Hierarchy System
       * 1.1 - Types de Fichiers       * 1.1 - Types de Fichiers
Ligne 57: Ligne 57:
       * La Commande fstrim       * La Commande fstrim
       * La Daemon smartd       * La Daemon smartd
-      * La commande autofs 
  
 =====LAB #1 - Linux File Hierarchy System===== =====LAB #1 - Linux File Hierarchy System=====
Ligne 2912: Ligne 2911:
  
 SMART (Self-Monitoring, Analysis and Reporting Technology) est intégrée à la plupart des disques durs pour avoir des indicateurs de diagnostic. **Smartmontools** est l’outil pour exploiter la technologie SMART, notamment avec la commande smartctl et le démon smartd. SMART (Self-Monitoring, Analysis and Reporting Technology) est intégrée à la plupart des disques durs pour avoir des indicateurs de diagnostic. **Smartmontools** est l’outil pour exploiter la technologie SMART, notamment avec la commande smartctl et le démon smartd.
- 
-====La Commande autofs==== 
- 
-<code> 
-[root@centos8 ~]# apt install autofs 
-</code> 
- 
-<code> 
-[root@centos8 ~]# systemctl enable --now autofs 
-Created symlink /etc/systemd/system/multi-user.target.wants/autofs.service → /usr/lib/systemd/system/autofs.service. 
-</code> 
- 
-<code> 
-[root@centos8 ~]# systemctl status autofs 
-● autofs.service - Automounts filesystems on demand 
-   Loaded: loaded (/usr/lib/systemd/system/autofs.service; enabled; vendor preset: disabled) 
-   Active: active (running) since Tue 2022-10-11 09:26:39 EDT; 2min 36s ago 
- Main PID: 67631 (automount) 
-    Tasks: 5 (limit: 100949) 
-   Memory: 1.8M 
-   CGroup: /system.slice/autofs.service 
-           └─67631 /usr/sbin/automount --systemd-service --dont-check-daemon 
- 
-Oct 11 09:26:39 centos8.ittraining.loc systemd[1]: Starting Automounts filesystems on demand... 
-Oct 11 09:26:39 centos8.ittraining.loc systemd[1]: Started Automounts filesystems on demand. 
-</code> 
- 
-<code> 
-[root@centos8 ~]# cat /etc/sysconfig/autofs 
-# 
-# Init system options 
-# 
-# If the kernel supports using the autofs miscellanous device 
-# and you wish to use it you must set this configuration option 
-# to "yes" otherwise it will not be used. 
-# 
-USE_MISC_DEVICE="yes" 
-# 
-# Use OPTIONS to add automount(8) command line options that 
-# will be used when the daemon is started. 
-# 
-#OPTIONS="" 
-# 
-</code> 
- 
-<code> 
-[root@centos8 ~]# vi /etc/sysconfig/autofs 
-[root@centos8 ~]# cat /etc/sysconfig/autofs 
-# 
-# Init system options 
-# 
-# If the kernel supports using the autofs miscellanous device 
-# and you wish to use it you must set this configuration option 
-# to "yes" otherwise it will not be used. 
-# 
-USE_MISC_DEVICE="yes" 
-# 
-# Use OPTIONS to add automount(8) command line options that 
-# will be used when the daemon is started. 
-# 
-OPTIONS="--timeout=600" 
-# 
-</code> 
- 
-<code> 
-[root@centos8 ~]# systemctl restart autofs 
-[root@centos8 ~]# systemctl status autofs 
-● autofs.service - Automounts filesystems on demand 
-   Loaded: loaded (/usr/lib/systemd/system/autofs.service; enabled; vendor preset: disabled) 
-   Active: active (running) since Tue 2022-10-11 09:32:06 EDT; 3s ago 
- Main PID: 67756 (automount) 
-    Tasks: 5 (limit: 100949) 
-   Memory: 1.7M 
-   CGroup: /system.slice/autofs.service 
-           └─67756 /usr/sbin/automount --timeout=600 --systemd-service --dont-check-daemon 
- 
-Oct 11 09:32:05 centos8.ittraining.loc systemd[1]: Starting Automounts filesystems on demand... 
-Oct 11 09:32:06 centos8.ittraining.loc systemd[1]: Started Automounts filesystems on demand. 
-</code> 
- 
-<code> 
-[root@centos8 ~]# cat /etc/auto.master 
-# 
-# Sample auto.master file 
-# This is a 'master' automounter map and it has the following format: 
-# mount-point [map-type[,format]:]map [options] 
-# For details of the format look at auto.master(5). 
-# 
-/misc   /etc/auto.misc 
-# 
-# NOTE: mounts done from a hosts map will be mounted with the 
-#       "nosuid" and "nodev" options unless the "suid" and "dev" 
-#       options are explicitly given. 
-# 
-/net    -hosts 
-# 
-# Include /etc/auto.master.d/*.autofs 
-# The included files must conform to the format of this file. 
-# 
-+dir:/etc/auto.master.d 
-# 
-# If you have fedfs set up and the related binaries, either 
-# built as part of autofs or installed from another package, 
-# uncomment this line to use the fedfs program map to access 
-# your fedfs mounts. 
-#/nfs4  /usr/sbin/fedfs-map-nfs4 nobind 
-# 
-# Include central master map if it can be found using 
-# nsswitch sources. 
-# 
-# Note that if there are entries for /net or /misc (as 
-# above) in the included master map any keys that are the 
-# same will not be seen as the first read key seen takes 
-# precedence. 
-# 
-+auto.master 
-</code> 
- 
-<code> 
-[root@centos8 ~]# cat /etc/auto.misc 
-# 
-# This is an automounter map and it has the following format 
-# key [ -mount-options-separated-by-comma ] location 
-# Details may be found in the autofs(5) manpage 
- 
-cd              -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom 
- 
-# the following entries are samples to pique your imagination 
-#linux          -ro,soft                ftp.example.org:/pub/linux 
-#boot           -fstype=ext2            :/dev/hda1 
-#floppy         -fstype=auto            :/dev/fd0 
-#floppy         -fstype=ext2            :/dev/fd0 
-#e2floppy       -fstype=ext2            :/dev/fd0 
-#jaz            -fstype=ext2            :/dev/sdc1 
-#removable      -fstype=ext2            :/dev/hdd 
-</code> 
  
 ----- -----
Menu