Sunday, June 24, 2012

Basic Netapp Commands


Creating an Aggregate and RAID Group:

1. Create an aggregate for data storage:
->aggr create aggr1 -t raid_dp -r 16 12

aggr1 is created using raid_dp with 16 disks and an initial size of 12 disks.

2. Confirm that the aggregate was created:
->aggr status

Creating a Volume:

1. Create a volume (flexible volume)
-> vol create InfraVol aggr1 size 100g

2. If using Snap Creator to trigger Snapshot copies and sync with SnapMirror, desable the default snapshot schedules.
-> vol options /vol/InfraVol nosnap on

-----------

Run the following commands to modify the volume options and the volume snap options:

-> vol options /vol/InfraVol guarantee none
-> vol options /vol/InfraVol fractional_reserve 0
-> vol autosize /vol/InfraVol on
-> vol options /vol/InfraVol try_first volume_grow
-> snap reserve /vol/InfraVol 20
-> snap autodelete /vol/InfraVol off

-------------------

1. Use the following command to create a LUN named InfraLUN, 15GB in size, in volume /vol/InfraVol.
->lun create -s 15g -t linux /vol/InfraVol/InfraLUN

2. Use the following command to verify the LUN that was created.
-> lun show

---------------------

Mapping the LUN:

For the intended host or hosts to access the LUN, igroups are created. In the case of FCP or FCoE, the igroup contains the
 World Wide Port Name (WWPN) of the HBA or CNA ports that are expected to connect to the LUN. For iSCSI, the iSCSI qualified name (IQN)
is used. In all cases, the proper operating system must be chosen and must match the operating system selected when the LUN was created.

Create an FCP or FCoE Igroup:

No comments:

Post a Comment