You can mount Linux volumes from the command line by using the nlvm linux mount command or by using the native Linux mount(8) command and ncpcon mount command (for NCP-enabled volumes).
IMPORTANT:If an LVM logical volume is clustered, you must use the cluster online command to allow the load script to mount the volume. You can also use the Cluster Manager page in the Clusters plug-in for iManager to bring a resource online.
You can use the nlvm linux mount command to mount Linux volumes. If the volume is NCP-enabled, the command mounts the volume in Linux and then automatically mounts the volume in NCP. It uses the mount options in the /etc/fstab file by default. You can optionally specify mount options available in the mount(8) command. See the mount(8) man page for information about the mount options for the volume’s file system.
Log in to the server as the root user, then open a terminal console.
View a list of Linux volumes by entering the following command, then find the name, mount point, and mount status of the volume you want to mount.
nlvm list linux volumes
For example, the following Linux POSIX volume’s name is LVMNCP. It is not mounted.
Name Group Mounted Size Shared Type LVM NCP Mountpoint / Yes 15.98GB No ext3 No No / /home Yes 3.00GB No ext3 No No /home mylvm mylvm No 100.00MB No ext3 Yes No /usr/novell/mylvm LVMNCP lvmncp No 100.00MB No ext3 Yes Yes /usr/novell/lvmncp2 NCP3 Yes 103.59MB No ext3 No Yes /usr/novell/NCP3
Mount the volume by entering
nlvm linux mount <lx_volume_name> [mntopt=[option1][,option2][,...]]
Use the name format as it is displayed in NSSMU or with the nlvm list volumes command, such as:
LV_VOL1 [ex: an LVM volume that is NCP-enabled] lv_vol1 [ex: an LVM volume that is not NCP-enabled] HOME [ex: a non-LVM volume that is NCP-enabled] /home [ex: a non-LVM volume that is not NCP-enabled]
For example, enter
nlvm linux mount LVMNCP nlvm linux mount LVMNCP mntopt=rw,user_xattr
The first example uses the mount options in the /etc/fstab file. The second example uses the specified mount options.
You can also use the native Linux mount(8) command to mount Linux volumes. See the mount(8) man page for information about usage and the mount options for the volume’s file system.
Log in to the server as the root user, then open a terminal console.
View a list of Linux volumes by entering the following command, then find the name, mount point, and mount status of the volume you want to mount.
nlvm list linux volumes
For example, the following Linux POSIX volume’s name is LVMNCP. Its mount point is /usr/novell/lvmncp2. It is not mounted.
Name Group Mounted Size Shared Type LVM NCP Mountpoint / Yes 15.98GB No ext3 No No / /home Yes 3.00GB No ext3 No No /home mylvm mylvm No 100.00MB No ext3 Yes No /usr/novell/mylvm LVMNCP lvmncp No 100.00MB No ext3 Yes Yes /usr/novell/lvmncp2 NCP3 Yes 103.59MB No ext3 No Yes /usr/novell/NCP3
Mount the volume by entering
mount -t <fstype> <device_name> <full_mount_point_path> [-o option_list]
Replace fstype with the file system type of the volume.
For a Linux POSIX volume, replace device_name with the Linux path of the device. For an LVM volume, replace device_name with the full device path of the logical volume, such as /dev/<vg_name>/<lv_name>.
Replace full_mount_point_path with the volume’s mount point.
For example, enter
mount -t ext3 /dev/lvmncp/LVMNCP /usr/novell/lvmncp2 mount -t ext3 /dev/lvmncp/LVMNCP /usr/novell/lvmncp2 -o rw,user_xattr
The first example uses the mount options in the /etc/fstab file. The second example uses the specified mount options.
If the volume is NCP-enabled, mount the volume in NCP by entering
ncpcon mount <NCP_volume_name>
For example, enter
ncpcon mount LVMNCP