Use the following procedure to create and mount an NSS pool and volume.
The Linux mkfs command is used to build a file system on Linux. This section describes how to use the Linux mkfs command to create an NSS file system pool.
IMPORTANT:Be very careful with this command. The mkfs command destroys any existing data on the specified device or partition.
mkfs [ -t fs-type ] [ fs-options ] filesys
mkfs -t nsspool -n poolname devname
mkfs -t nssvol -n volname poolname
Use the following procedure to create a /dev/partitiondevice, such as /dev/hda2or /dev/sda5.
Log in to the server as the root user, or use the su command to become root.
Go to the
, then select .Select a device with free space available.
Create a partition. The name is automatically specified, such as hda2 or sda5.
If you do not want to use all of the available free space, specify the amount of space to use.
Make sure the partition size is sufficient for the NSS pool you want to create later; the partition size determines the pool size.
Select
.Do not specify the mount point; leave the
field blank.Click
to create the partition.Continue with Section E.3.3, Creating and Mounting an NSS Pool.
Log in to the server as the root user, or use the su command to become root.
At a system command prompt, enter
mkfs -t nsspool -n poolname devname
Replace poolname with the name you want to use, such as POOL2. Replace devname with the device you created in Section E.3.2, Creating a Partition.
IMPORTANT:Do not use ampersand (&) and pound (#) characters in pool and volume names; it creates problems in the /etc/fstab file. For information about other naming conventions, see “Naming NSS Storage Objects” on page 61.
For example, enter
mkfs -t nsspool -n POOL2 /dev/hda2
where POOL2 is the pool name and /dev/hda2 is the device name.
If the location where you want to mount the NSS pool does not already exist, create the mount point. At the server command prompt, enter
mkdir /mnt/pooldir
The /mnt directory is the default location for mounting devices. If you are using a different location, replace /mnt with that path. Replace pooldir with the name (path) you want to use, such as POOL2. If you want to make it a hidden directory, begin the directory name with a period, such as .POOL2.
For example, enter
mkdir /mnt/.POOL2
where /mnt/.POOL2 is the mount point for your pool.
Mount the NSS pool. At a system command prompt, enter
mount -t nsspool devname mountpoint -o name=poolname
For example, enter
mount -t nsspool /dev/hda2 /mnt/.POOL2 -o name=POOL2
Use NSSMU to create a Storage object in eDirectory for the newly created pool.
At a terminal prompt, enter
nssmu
From the NSSMU menu, select
.Select the pool from the
list, then press (NDS Update).Continue with Section E.3.4, Creating and Mounting an NSS Volume.
Log in to the server as the root user, or use the su command to become root.
Make sure the pool where you want to create the volume is mounted.
For information, see Section E.3.3, Creating and Mounting an NSS Pool.
Create an NSS volume. At the system console, enter
mkfs -t nssvol -n volname poolname
Replace volname with the name you want to use, such as NSSV1. Replace poolname with the NSS pool where the volume will reside, such as POOL2. This is the pool you created in Section E.3.3, Creating and Mounting an NSS Pool.
IMPORTANT:Do not use ampersand (&) and pound (#) characters in pool and volume names; it creates problems in the /etc/fstab file. For information about other naming conventions, see “Naming NSS Storage Objects” on page 61.
For example, enter
mkfs -t nssvol -n NSSV1 POOL2
If the location where you want to mount the NSS volume does not already exist, create the directory path. At the server command prompt, enter
mkdir /media/nss/volname
The /media/nss path is the default location for NSS volumes. If you are using a different location, replace /media/nss with that path. Replace volname with the name of the volume you created in Step 3.
For example, enter
mkdir /media/nss/NSSV1
Mount the NSS volume. At a system command prompt, enter
mount -t nssvol VOL volmountpoint -o name=volname
For example, enter
mount -t nssvol VOL /media/nss/NSSV1 -o name=NSSV1