Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:lpic:21:450:l104 [2022/10/11 13:56] – admin | elearning:workbooks:lpic:21:450:l104 [2022/11/01 07:26] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
Updated : ~~LASTMOD~~ | Updated : ~~LASTMOD~~ | ||
- | ======Topic | + | ======Topic |
- | * **Topic | + | * **Topic |
* 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, | SMART (Self-Monitoring, | ||
- | |||
- | ====La Commande autofs==== | ||
- | |||
- | < | ||
- | [root@centos8 ~]# apt install autofs | ||
- | </ | ||
- | |||
- | < | ||
- | [root@centos8 ~]# systemctl enable --now autofs | ||
- | Created symlink / | ||
- | </ | ||
- | |||
- | < | ||
- | [root@centos8 ~]# systemctl status autofs | ||
- | ● autofs.service - Automounts filesystems on demand | ||
- | | ||
- | | ||
- | Main PID: 67631 (automount) | ||
- | Tasks: 5 (limit: 100949) | ||
- | | ||
- | | ||
- | | ||
- | |||
- | 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. | ||
- | </ | ||
- | |||
- | < | ||
- | [root@centos8 ~]# cat / | ||
- | # | ||
- | # 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 " | ||
- | # | ||
- | USE_MISC_DEVICE=" | ||
- | # | ||
- | # Use OPTIONS to add automount(8) command line options that | ||
- | # will be used when the daemon is started. | ||
- | # | ||
- | # | ||
- | # | ||
- | </ | ||
- | |||
- | < | ||
- | [root@centos8 ~]# vi / | ||
- | [root@centos8 ~]# cat / | ||
- | # | ||
- | # 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 " | ||
- | # | ||
- | USE_MISC_DEVICE=" | ||
- | # | ||
- | # Use OPTIONS to add automount(8) command line options that | ||
- | # will be used when the daemon is started. | ||
- | # | ||
- | OPTIONS=" | ||
- | # | ||
- | </ | ||
- | |||
- | < | ||
- | [root@centos8 ~]# systemctl restart autofs | ||
- | [root@centos8 ~]# systemctl status autofs | ||
- | ● autofs.service - Automounts filesystems on demand | ||
- | | ||
- | | ||
- | Main PID: 67756 (automount) | ||
- | Tasks: 5 (limit: 100949) | ||
- | | ||
- | | ||
- | | ||
- | |||
- | 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. | ||
- | </ | ||
- | |||
- | < | ||
- | [root@centos8 ~]# cat / | ||
- | # | ||
- | # Sample auto.master file | ||
- | # This is a ' | ||
- | # mount-point [map-type[, | ||
- | # For details of the format look at auto.master(5). | ||
- | # | ||
- | /misc / | ||
- | # | ||
- | # NOTE: mounts done from a hosts map will be mounted with the | ||
- | # " | ||
- | # | ||
- | # | ||
- | /net -hosts | ||
- | # | ||
- | # Include / | ||
- | # The included files must conform to the format of this file. | ||
- | # | ||
- | +dir:/ | ||
- | # | ||
- | # 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. | ||
- | #/ | ||
- | # | ||
- | # 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 | ||
- | </ | ||
- | |||
- | < | ||
- | [root@centos8 ~]# cat / | ||
- | # | ||
- | # 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, | ||
- | |||
- | # the following entries are samples to pique your imagination | ||
- | # | ||
- | #boot | ||
- | # | ||
- | # | ||
- | # | ||
- | #jaz -fstype=ext2 | ||
- | # | ||
- | </ | ||
----- | ----- |