Useful commands in DataOnTAP

Below lists come useful commands when administering DataOnTAP storage (incl. IBM N-series, NetApp FAS)

System administrative commands:

timezone Asia/Taipei: 設定台灣當地時間
license add {######}: 匯入License

secureadmin setup ssh: Setup SSH for administrative managing.

Aggregate related commands:

aggr create {aggr_name} -d {disk_id}: create aggregate
aggr create {aggr_name} {total_number_of_disks}: automatically select which disk to be added when creating the aggregate.

aggr add  {aggr_name} -g new -d {disk_id}: create disk group in the aggregate
aggr add {aggr_name} -d {disk_id}: add disks to the aggregate
aggr add {aggr_name} {number_of_added_disks}: add the number of disks to the aggregate

aggr options {aggr_name} raidtype {raid4/raid_dp}: change the raid type of the aggregate

aggr status -s: display spare disks
aggr status -v: display status of aggregates with verbose options

df -Ah: display aggregate usage with human-readable format

Volume related commands:

vol create {vol_name} {aggr_name} {size}: create a volume in the aggregate with the dedicated volume size.
vol size {vol_name} {+|-}{size}{k|m|g|t}: resize the volume

vol status -v: display status of volumes with verbose options
vol status {vol_name} -d: display the disks used in the particular volume

df -Vh: display volume usage with human-readable format

Snapshot related commands:

snap create {vol_name} {snapshot_name}: create a volume-based snapshot
snap delete {vol_name} {snapshot_name}: delete a snapshot

snap list: display all of the snapshots

snap reserve [-V] {vol_name} {percentage}: specify the reserve space for snapshot

snap reserve -A {aggr_name} {percentage}: specify the reserve space for snapshot

snap restore -s {snapshot_name} {vol_name}: snaprestore

Disk drive related commands:

disk zero spares: zero spare disks

sysconfig -r: display the entire disk drives within different raid groups

NFS related commands:

exportfs -io root={ip_addr} {vol_path}: assign root permission for the volume to the NFS client.

CIFS related commands:

cifs shares: display the shared cifs volume
cifs shares -add {shared_name} {path}: for example, cifs shares vol1 /vol/vol1
cifs shares -delete {shared_name}: delete a shared folder

cifs access {shared_name} {user|group} {r w x | No Access/Read/Change/Full Control}
cifs access -delete {shared_name} {user|group}: delete a ACE

cifs domaininfo: display infos for AD domain.
cifs prefdc add {domain_name} {DC_ip_addr}: add a DC ip to preferred DC list
cifs prefdc print: display preffered DC list
cifs terminate: stop the CIFS service
cifs restart: start the CIFS service
cifs setup: setup CIFS service

iSCSI related commands:

iscsi start

lun create -s {size} -t {os_type} [-o noreserve] /vol/{vol_name}/{lun_name}: create a lun
lun show: display all LUNs

igroup create -i -t {os_type} {igroup_name} {iscsi_initiator_node}: create an iGroup
igroup add {igroup_name} {iscsi_initiator_node}: add a node to the iGroup
igroup show: display the present igroups
igroup destroy {igroup_name}: delete an iGroup

lun map {lun_path} {igroup_name}: map a lun to an igroup

lun offline {lun_path}: offline a lun
lun destroy {lun_path}: delete a lun

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *