Snapdrive for Unix
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

创建 LVM 实体并指定 LUN

贡献者

您可以创建主机实体,例如文件系统,逻辑卷或磁盘组,并指定作为其一部分创建的 LUN 。

步骤
  1. 在命令行中,输入以下命令:

    ` * SnapDrive storage create -host_lvm_fspec -lun long_lun_name LUN_name…​] -lunsize size [-igroup ig_name [ig_name…​]] [ { -reserve _ -noreserve } ]*`

    此示例将根据您的主机使用文件系统创建文件系统 /mnt/Acctfs 。它会在存储系统访问存储器上设置三个 LUN 。每个 LUN 均为 10 GB :

    ` # SnapDrive lun storage create -fs /mnt/Acctfs -fstype jfs2 -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 => hdisk2
    - acctfiler:/vol/vol1/lunB => hdisk3
    - acctfiler:/vol/vol1/lunC => hdisk4
    disk group acctfs_SdDg created
    host volume acctfs_SdHv created
    file system /mnt/acctfs created
    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