bs2fs container
The mount/umount operations are managed and thus also automated in the same way as other POSIX file systems of the type "ufs". When the file system is created using the POSIX installation program (append function), an entry is automatically generated in the /etc/vfstab table. If Automount=yes
was specified, the file system is mounted immediately. The Automount=yes
entry in the /etc/vfstab table also causes the file system to be mounted automatically the next time the POSIX subsystem starts. Modifications in the /etc/vfstab table can also be made using the POSIX installation program (modify function).
bs2fs file systems
Similarly to nfs file systems, bs2fs file systems cannot be managed using the POSIX installation program. To automate mount operations, the administrator must edit the system tables or create scripts.
Overview of the various automation options:
Enter mount commands in shell scripts and execute these at any time.
Enter mount commands in shell scripts of the type "rc". These will then be executed automatically when the POSIX subsystem is started.
Enter the required bs2fs file systems in vfstab format (with Automount=yes) in a separate file system table. This table can then be used as an argument in the mountall command.
Enter the required bs2fs file systems (with Automount=yes) in the /etc/vfstab table. This table is processed by the mountall command if no file system table is specified. When the POSIX subsystem starts, the mount operations will be executed automatically.
Recommendation: entries suitable for vfstab can be created with mount –p for a bs2fs file system which has already been successfully mounted.e
An example of this is provided in "Introductory example for quick entry into the bs2fs file system".
Starting and terminating POSIX
If the mount/umount operations take place automatically when POSIX is started and terminated, this has the advantage that the necessary order is observed.
Startup: ufs file systems, bs2fs file systems, nfs file systems
Termination: nfs file systems, bs2fs file systems, ufs file systems
If the administrator wants to mount and unmount the file systems explicitly, they must observe this order.