HNAS operations via SSH command

Document created by Lei Zhang on Oct 28, 2016Last modified by Hidenori Akatoki on Oct 28, 2016
Version 3Show Document
  • View in full screen mode

Overview

These contents are for HNAS operations via SSH command.

 

Service TemplateDescription
HNAS Create File System
Choose EVS and create File system by specify the storage pool, file system name, capacity (GB), block size (KB), "object replication target", and "support and enable dedupe"
HNAS Create EVS
Create EVS by specify the IP address, Netmask, and port.

Download

  • HNAS Create EVS
  • HNAS Create File System

 

VersionFile (With Link)DescriptionTemplate IDVendor IDHAD Version
01.00.01DownloadChoose EVS and create File system by specify the storage pool, file system name, capacity (GB), block size (KB), "object replication target", and "support and enable dedupe"HNASCreateFileSystemhds8.5.0-00
01.00.04DownloadCreate EVS by specify the IP address, Netmask, and portHNASCreateEVShds8.5.0-00

 

 

How to use

  1. Download and import the template.
  2. Create a new service based on imported template.
  3. Setup the HNAS SSH access information (including the credential).
  4. Specify the information that required for creating the EVS or File System.

Note: Confirmed version is 12.7. The following is the detail version information.

Screen Shot 2016-10-28 at 6.03.20 PM.png

Detail Information

Create EVS

Screen Shot 2016-10-28 at 4.33.49 PM.png

  1. Access HNAS via SSH, and pass the token to rest steps.
  2. Generate the command, which depending on user input. (Netmask, EVS label).
  3. Run "evs create" command with user defined parameters (IP address, port, Netmask, EVS label).
  4. Error handling process for "evs create" command. (Note: HNAS SSH commands don't have the return code, so can't get return code by using "$?". That's why need this step.)
  5. Check error status of step 4, if error occurred, task will be failed.
  6. Disconnect from HNAS.

 

Create File System

Screen Shot 2016-10-28 at 4.25.01 PM.png

  1. Access HNAS via SSH, and pass the token to rest steps.
  2. Run "evs-select" command with user defined parameters (EVS name).
  3. Error handling process for "evs-select" command.(Note: HNAS SSH commands don't have the return code, so can't get return code by using "$?". That's why need this step.)
  4. Check error status of step 3, if error occurred, task will be failed.
  5. Generate the option command, which depending on user input.
  6. Check error status of step 5, if error occurred, task will be failed.
  7. Run "filesystem-create" with user defined parameters (Storage pool name, file system name, capacity, and other command options).
  8. Error handling process for "filesystem-create" command.(Note: HNAS SSH commands don't have the return code, so can't get return code by using "$?". That's why need this step.)
  9. Check error status of step 8, if error occurred, task will be failed.
  10. Disconnect from HNAS

Outcomes