Skip Navigation Links | |
Exit Print View | |
Oracle Solaris 11.1 Administration: Devices and File Systems Oracle Solaris 11.1 Information Library |
1. Managing Removable Media (Tasks)
2. Writing CDs and DVDs (Tasks)
4. Dynamically Configuring Devices (Tasks)
5. Managing USB Devices (Tasks)
6. Using InfiniBand Devices (Overview/Tasks)
9. Administering Disks (Tasks)
11. Configuring Storage Devices With COMSTAR (Tasks)
12. Configuring and Managing the Oracle Solaris Internet Storage Name Service (iSNS)
13. The format Utility (Reference)
14. Managing File Systems (Overview)
15. Creating and Mounting File Systems (Tasks)
Creating Oracle Solaris File Systems
Creating a Temporary File System
Creating and Mounting Oracle Solaris File Systems
How to Create an ZFS File System
How to Create and Mount a Legacy UFS File System
How to Create and Mount a TMPFS File System
How to Create and Mount an LOFS File System
How to Add an Entry to the /etc/vfstab File
How to Mount a File System (/etc/vfstab File)
How to Mount an NFS File System (mount Command)
x86: How to Mount a PCFS (DOS) File System From a Hard Disk (mount Command)
How to Stop All Processes That Are Accessing a File System
16. Configuring Additional Swap Space (Tasks)
17. Copying Files and File Systems (Tasks)
ZFS file systems are mounted and unmounted automatically. You can make a legacy UFS file system available by mounting it, which attaches the file system to the system directory tree at the specified mount point. The root (/) file system is always mounted.
The following table provides guidelines on mounting file systems based on how you use them.
|
For more information on mounting removable media, see Managing Removable Media (Overview).
You can determine which file systems are already mounted by using the mount command:
$ mount [ -v ]
The -v displays the list of mounted file systems in verbose mode.
Example 15-1 Determining Which File Systems Are Mounted
This example shows how to use the mount command to display information about the file systems that are currently mounted.
$ mount / on rpool/ROOT/zfsBE read/write/setuid/devices/rstchown/dev=3390002 on Tue ... /devices on /devices read/write/setuid/devices/rstchown/dev=8580000 on Tue May 15 ... /dev on /dev read/write/setuid/devices/rstchown/dev=85c0000 on Tue May 15 14:49:01 2012 /system/contract on ctfs read/write/setuid/devices/rstchown/dev=8680001 on Tue May 15 ... /proc on proc read/write/setuid/devices/rstchown/dev=8600000 on Tue May 15 14:49:01 2012 /etc/mnttab on mnttab read/write/setuid/devices/rstchown/dev=86c0001 on Tue May 15 14:49:01 ... /system/volatile on swap read/write/setuid/devices/rstchown/xattr/dev=8700001 on Tue May 15 ... /system/object on objfs read/write/setuid/devices/rstchown/dev=8740001 on Tue May 15 ... /etc/dfs/sharetab on sharefs read/write/setuid/devices/rstchown/dev=8780001 on Tue May 15 ... /lib/libc.so.1 on /usr/lib/libc/libc_hwcap2.so.1 read/write/setuid/devices/rstchown/dev ... /dev/fd on fd read/write/setuid/devices/rstchown/dev=8880001 on Tue May 15 14:49:29 2012 /var on rpool/ROOT/zfsBE/var read/write/setuid/devices/rstchown/nonbmand/exec/xattr/atime/ ... /tmp on swap read/write/setuid/devices/rstchown/xattr/dev=8700002 on Tue May 15 14:49:29 2012 /var/share on rpool/VARSHARE read/write/setuid/devices/rstchown/nonbmand/exec/xattr/atime/ ... /home/rimmer on pluto:/export/home/rimmer remote/read/write/setuid/xattr/...
This example shows how to use the zfs mount command to display information about ZFS file systems that are currently mounted.
$ zfs mount rpool/ROOT/zfsBE / rpool/ROOT/zfsBE /var rpool/VARSHARE /var/share tank/home /tank/home
An entry in the /etc/vfstab file has seven fields, which are described in the following table.
Table 15-1 Field Descriptions for the /etc/vfstab File
|
Note - You must have an entry in each field in the /etc/vfstab file. If there is no value for a field, be sure to specify a dash (-). Otherwise, the system might not boot successfully. Similarly, white space should not be used as a field value.
The prerequisites for unmounting file systems include the following:
You must be an administrator.
You cannot unmount a file system that is busy. A file system is considered busy if a user is accessing a directory in the file system, if a program has a file open in that file system, or if the file system is being shared.
You can make a file system available for unmounting by doing the following:
Changing to a directory in a different file system.
Logging out of the system.
Using the fuser command to list all processes that are accessing the file system and to stop them, if necessary. For more details, see How to Stop All Processes That Are Accessing a File System.
Notify users if you need to unmount a file system that they are using.
Unsharing the file system.
For example:
# zfs set share.nfs=off tank/fs1
Use the legacy unshare method. For information, see unshare(1M).
To verify that you unmounted a file system or a number of file systems, examine the output from the mount command:
$ mount | grep unmounted-file-system