Create a Linux POSIX volume on a device.
nlvm [nlvm_options] create linux volume <type> <device> <size> [mp] [mkopt] [mntopt] [lvm] [name] [group] [shared] [ip] [ncp]
For a cluster-enabled LVM volume, issue the command from the master node in the cluster.
Mandatory. Specify the type of Linux POSIX file system to use for mkfs.
Supported file system types are btrfs (in OES 11 SP1 and later; requires the btrfsprogs package), ext2, ext3, reiserfs, and xfs.
Mandatory. Specify the device to use for the Linux POSIX volume, or specify the keyword anydisk.
IMPORTANT:NLVM does not support using Linux software RAID devices and NSS software RAID devices with Linux POSIX file systems. You can use a hardware RAID device to achieve device fault tolerance for Linux POSIX volumes.
If the device is seen by a single server, or a single node in a cluster, do not use the shared option.
If the device is seen by multiple nodes in a Novell Cluster Services cluster, you must specify the devicename and use the shared, ip, name, lvm, and group (optional) options to create the Linux volume group cluster resource. The device should already be initialized but do not mark it as shareable. The cluster-enabled LVM volume group uses the entire device. Novell Cluster Services mounts the cluster resource exclusively on one node at a time.
device=sdb device=/dev/sdb device=anydisk device=mpatha device=/dev/mapper/mpatha
Mandatory if the shared option is not used; optional if the shared option is used. Specify a size of the partition to create for the Linux volume, or specify max to use all of the free unpartitioned space for the volume. The minimum allowed size is 1 megabyte.
If the shared option is used, the entire device is dedicated to the LVM volume group. If the size option is specified, it is ignored.
size=20G size=100m size=max
Specify the path of the mount point where the volume is to be mounted. If the path does not currently exist, it will be created.
For LVM volumes, the name option must be used with the lvm option to specify a volume name. The full mount point path can specify a directory path that is the same or different than the specified volume name. If a mount path is not specified for an LVM volume or a clustered LVM volume, the utility assigns a default mount path of /usr/novell/<volume_name>.
For Linux POSIX volumes, the final directory of the full mount point path is used as the volume name. For example, if the mount point is /home/users/bob, the volume name is bob. The final directory name must be unique as a volume name on the server. If a mount path is not specified for a Linux POSIX volume, the utility assigns a default mount path of /usr/novell/<file_system_type>_<next_available_number>.
For example, if the file system type is ext3, the default mount path is /usr/novell/ext3_0. If that path is not available, the path is /usr/novell/ext3_1, and so forth until a unique volume name is achieved.
Specify the options to use when running mkfs. For a list of available options, see the mkfs(8) man page. No default option is specified.
Specify the options to use when mounting the volume. For a list of available options, see the mount(8) man page. The default mntopt value is rw.
Used to specify that an LVM volume and volume group is to be created.
If the lvm option is used, the name option must be provided to specify a name for the LVM volume. Specifying a different name for the LVM volume group is optional.
Used with the lvm option to specify a name for the LVM volume.
If you do not specify the group option, this name is also used as the LVM volume group name.
For LVM logical volume naming conventions, see Section 5.2.5, Linux LVM Volume Group and Logical Volume Names.
If the lvm option is not specified, this option is ignored.
Optional. Used with the lvm option to specify a name for the LVM volume group. If the group option is not specified, the volume group name is the same as the LVM volume name.
For LVM volume group naming conventions, see Section 5.2.5, Linux LVM Volume Group and Logical Volume Names.
If the lvm option is not specified, this option is ignored.
Used to cluster-enable an LVM volume group. This creates an LVM volume group cluster resource, including its load, unload, and monitoring scripts, for use in an existing Novell Cluster Services cluster. The cluster resource name is the LVM volume group name plus _resource; that is, <lvm_vg_name>_resource. For example, mylvmvg01_resource. The resource is created and set to an Offline state. You can use the Clusters plug-in in iManager to modify the scripts and resource settings as needed, then use iManager or cluster commands to online the resource.
If the shared option is used, the ip, name, and lvm options must also be provided. You can use the group option to specify a different name for the LVM volume group.
The device should already be initialized but do not mark the device as shareable. The LVM volume group uses the entire device. Use Novell Cluster Services tools or commands to online the cluster resource exclusively on one node at a time.
shared lvm ip=10.10.10.101 name=mvylvmvol1 shared lvm ip=10.10.10.101 name=mylvmvol1 group=mylvmvg1
Used with the shared option to specify the IP address to use for the Linux volume group cluster resource. This is required for cluster-enabled Linux volume groups on Novell Cluster Services clusters. Specify the IP address in IPv4 format.
If the shared option is not specified, this option is ignored.
Used to enable the Linux POSIX file system on the volume to be accessed with the NetWare Control Protocol (NCP).
If you use the ncp option, the volume name used for the name option must comply with the name limitations described in Section 5.2.4, NCP Volume Names.
Create a 10 gigabyte Linux POSIX volume using the Ext3 file system on the /dev/sdf device. Mount the volume on path /home/bob with the Read/Write mount option.
Create and cluster-enable an LVM volume group on the /dev/sdf device with a resource IP address of 10.10.10.101, an LVM volume name of “myclustervolbob”, and an LVM volume group name of “myclustervgbob”. Create a Linux POSIX volume on the LVM volume using the Ext3 file system. The entire device is dedicated to the LVM volume. The new cluster resource is set to offline, and waits to be brought online by using the cluster commands.
This command automatically creates an LVM volume group cluster resource called myclustervgbob_resource in a Novell Cluster Services cluster where the node is a member. It creates its resource load, unload, and monitoring scripts, then sets the resource to offline. You manage the resource by using Novell Cluster Services tools and commands.