7.5 Creating a Linux Volume on a Device that Contains a Novell Partition

As a best practice, disks using Novell partitions should have only Novell partitions on the device. If you mix Novell and Linux partition types on the same device, the recommended method is to create a Linux volume first, and then create the NSS pool.

In OES 11 SP2 and later, you can use the following procedure to create a Linux partition on a device that already contains a Novell type partition, and then specify the Linux partition as the location for a non-clustered Linux volume.

To add a Linux volume to an unshared device with an existing NSS partition and pool on it:

  1. Log in to the server as the root user, then open a terminal console.

  2. Create a Linux partition on the device. Enter

    nlvm create partition type=<83|8E> device=<node_name> size=<value[K|M|G|T]|max>
    

    Specify the partition type based on the type of Linux volume you plan to create.

     type=83                   (Linux native volume)
     type=8E                   (Linux LVM volume)
    

    For example, to create an LVM partition type on device sdd that is 500 GB, enter

    nlvm create partition type=8E device=sdd size=500G
    
  3. Unmount all NSS pools on the device. Enter

    nlvm unmount pool <poolname>
    

    For example, to dismount POOL1 and POOL2 on device sdd, enter

    nlvm unmount pool POOL1
    nlvm unmount pool POOL2
    
  4. Do any one of the following to allow NLVM to recognize the new Linux storage object on the device for Device Mapper:

    • Mount the pools on the device. For each pool, enter

      nlvm mount pool <poolname>
      
    • Rescan the device for storage objects and allow NLVM to automatically mount all pools on the device.

      nlvm rescan
      
    • Restart the server.

  5. Create a non-clustered Linux volume on the new partition.

    nlvm create linux volume type=<fs_type> part=<partition_name> mp=<mount_path> 
    [mkopt=<opt1[,opt2,...]>] [mntopt=<opt1[opt2]...] 
    [lvm] [name=<lvm_volume_name>] [group=<lvm_vg_name>]
    [ncp]
    

    The volume type must match the type of partition you created in Step 2.

    Continuing the example, on a type 8E partition named sdd3, create an Ext3 file system on an ncp-enabled LVM logical volume named MYVOL3. Enter:

    nlvm create linux volume type=ext3 part=sdd3 mp=/usr/novell/lvm/myvol3 mntopt=rw lvm name=MYVOL3 ncp