Use this section as a quick reference for the NLVM commands that support Linux POSIX volumes. Enter commands in a terminal console or script as the root user. For details about each command, see the OES 2023: NLVM Reference.
Task |
Command |
---|---|
Create a clustered Linux LVM volume group and logical volume. Specify the ncp option to enable NCP for the volume and create an NCP share at the root of the volume, and to automatically create the NCP Server storage object for the cluster resource. See also Section 8.0, Clustering LVM Volume Groups with Novell Cluster Services. |
nlvm create linux volume type=<btrfs|ext2|ext3|reiserfs|xfs> device=<devicename> mp=<full_mount_point_path> [mntopt=<fs_mount_options>] lvm name=<lv_name> [group=<vg_name>] shared ip=<resource_ip_address> [ncp] Example: nlvm create linux volume type=xfs device=sde mp=/mnt/vol42 mntopt=rw lvm name=lvmvol42 shared ip=10.10.10.42 |
Create a Linux LVM volume group and logical volume. Specify the ncp option to enable NCP for the volume and create an NCP share at the root of the volume. See also Creating an LVM Logical Volume. |
nlvm create linux volume type=<btrfs|ext2|ext3|reiserfs|xfs device=<devicename> size=<value[K|M|G|T]> mp=<full_mount_point_path> [mntopt=<fs_mount_options>] lvm name=<lv_name> [group=<vg_name>] [ncp] Example: nlvm create linux volume type=xfs device=sde size=511M mp=/mnt/vol42 mntopt=rw lvm name=lvmvol42 group=lvmvg42 |
Specify the ncp option to enable NCP for the volume and create an NCP share at the root of the volume. See also Creating a Non-LVM Linux Volume. |
nlvm create linux volume type=<btrfs|ext2|ext3|reiserfs|xfs> device=<device_name|anydisk> size=<value[K|M|G|T]|max> mp=<full_mount_point_path> [mntopt=<fs_mount_options>] [ncp] Example: nlvm create linux volume type=ext3 device=sda size=20G mp=/mnt/vol1 mntopt=rw |
See also Deleting a Linux POSIX Volume. See also Deleting an LVM Volume Group and Logical Volume. See also Deleting a Clustered LVM Volume Group and Logical Volume. |
nlvm delete linux volume <volume_name>
Example: Linux POSIX volume nlvm delete linux volume /vol1 Example: Linux LVM logical volume nlvm delete linux volume lvvol1 |
See also Initializing a Device. |
nlvm [--force] init
<device_name>
[format=<gpt|msdos>]
unshared
Example: nlvm init sde format=msdos unshared |
nlvm [-m] rescan |
|
See also Unsharing a Device. |
nlvm unshare <device> Example: nlvm unshare sde |
See also Viewing a List of Devices. |
nlvm list devices [more] [exclude=<raid|nonraid|shared| nonshared|lvm|nonlvm>] |
See also Viewing a List of Linux Volumes. |
nlvm list linux volumes |
See also Viewing Device Details. |
nlvm list <device> Example: nlvm list device sde |