Skip to main content
Snapdrive for Unix

Creating a VxVM entity and specifying the LUN

Contributors

You can create a host entity such as a file system, logical volume, or disk group and specify the LUN that is created as part of it.

Steps
  1. At the command line, enter the following command:

    snapdrive storage create -host_lvm_fspec -lun long_lun_name [lun_name…​] -lunsize size [-igroup ig_name [ig_name…​]] [{ -reserve | -noreserve }]

    This example on a Solaris host creates the file system acctfs on three LUNs and explicitly names the volume group and host volume underneath it. Each LUN is 10 GB:

    # snapdrive storage create -fs /mnt/acctfs -hostvol acctfsdg/acctfshv -lun acctfiler:/vol/vol1/lunA lunB lunC -lunsize 10g

    LUN acctfiler:/vol/vol1/lunA ... created
    LUN acctfiler:/vol/vol1/lunB ... created
    LUN acctfiler:/vol/vol1/lunC ... created
    mapping new lun(s) ... done
    discovering new lun(s) ... done
    LUN to device file mappings:
    - acctfiler:/vol/vol1/lunA => /dev/vx/rdmp/c4t0d3s2
    - acctfiler:/vol/vol1/lunB => /dev/vx/rdmp/c4t0d7s2
    - acctfiler:/vol/vol1/lunC => /dev/vx/rdmp/c4t0d8s2
    disk group acctfsvg created
    host volume acctfshv created
    file system /mnt/acctfs created