Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Managing LUNs and LUN ownership

One LUN is assigned to the root volume during setup  Top

During the initial setup of a gFiler, you are required to specify one LUN that the gFiler is to own, but you can specify more. During the setup process, the system automatically creates a root volume and chooses one LUN (if you entered multiple LUNs) to be in the root volume. (Typically, the system chooses the smallest LUN.) Because that LUN was assigned to a volume through this process, the gFiler can read from and write to the LUN.

About spare LUNs  Top

Until the LUN that a gFiler owns is configured to be part of a volume, it is a spare LUN.

During initial setup, the system adds one LUN that you specified in the disk assign command (in item 5 Maintenance on the boot menu) to the root volume. The system specifies any additional LUNs in item 5 as spares. After initial setup, you can also add spare LUNs to the gFiler, as described in About adding LUN ownership after initial setup.

How to enable a LUN to be used for storage  Top

For a LUN to be used for storage, you must add it to a NetApp volume. You can include the spare in the vol create command for a new volume (see Creating a volume.) Alternatively you can include the spare in the vol add command for an existing volume. See Adding LUNs (disks) to a volume by using the disk add command.

Requirement for spare LUNs for a GF270c  Top

Each head of a GF270c must have one spare LUN of 1.5 GB or more assigned to it at all times, in case a problem occurs that results in a panic. The system can then dump core to the spare LUN and NetApp can analyze the core dump to determine the cause of the problem.

About adding LUN ownership after initial setup  Top

You can specify additional LUNs that a specific gFiler is to own anytime after Data ONTAP is installed. Circumstances in which you would add gFiler ownership of a LUN on a storage subsystem include the following:

LUN name format  Top

LUN name format is shown in the following list:

Assigning disk (LUN) ownership  Top

You use the disk assign command for assigning ownership of LUNs on a storage subsystem to a gFiler. To assign LUN ownership, complete the following steps.

Step

Action

1

If you are not going to be deploying SyncMirror, from the CLI prompt enter the disk assign command in the form

disk assign fullLUNname1 fullLUNname2 ...

You do not need to enter the pool parameter (-p) with the disk assign command. The pool parameter defaults to 0 (zero).

You can enter multiple LUNs on the same command line.

2

If you are going to be deploying SyncMirror, enter the disk assign command with the pool parameter.

You must use the pool parameter with the disk assign command, and you must enter the pool parameter correctly. See Planning for RAID mirroring for data protection for details so that you can plan your configuration correctly. For example:

disk assign storeAlun1 storeAlun2 -p 0
disk assign storeBlun1 storeBlun2 -p 1

Typically, pool 0 is assigned to the local pool and pool 1 is assigned to the remote pool.

3

Enter the following command:

disk show -v

Result

The Local System ID is shown and the LUNs (disks) exported on the port are shown.

4

Review the list of LUNs (disks) to confirm that all disks (LUNs) that you expected to be assigned to this gFiler (the local system) are shown with the ID of this gFiler.

5

Enter halt, then type boot at the OK prompt.

Note
A LUN cannot be used for storage until it becomes part of a volume, as described in How to enable a LUN to be used for storage.

Adding LUNs (disks) to a volume by using the disk add command  Top

To add new disks to a volume by using the disk add command, complete the following steps.

Note
You can also add LUNs while creating a volume, as described in Creating a volume.

Step

Action

1

Verify that hot spare disks are available for you to add by entering the following command:

vol status -s

2

Add the disks to a volume by entering the following command:

vol add vol-name nluns[@lun-size] | -d lun-name...

vol-name is the name of the volume to which you are adding the disks.

nluns is the number of LUNs to use.

lun-size is the LUN size, in gigabytes, to use. You must have at least nluns available of the size you specify.

lun-name is the disk (LUN) ID of one more spare LUN IDs; use a space to separate LUN IDs. The disk ID is under the HA.ID column in the vol status -s display.

Example

The following command adds the LUNs 7.17 and 7.26 to the thisvol volume:

vol add thisvol -d 7.17 7.26

Note
When adding LUNs to a volume by using automatic selection (that is, without using the -d  option), Data ONTAP attempts to distribute I/O loads, such as alternating host adapters, to improve reconstruction performance. You can override this behavior by using the -d  option to specify the LUNs you want.

Changing ownership of a spare LUN  Top

If you want to change the ownership of a spare LUN from one gFiler to another within the same neighborhood, use the procedure in this section instead of using SnapMover. To change the ownership of a spare LUN, complete the following steps.

Step

Action

1

At the console of the gFiler that you expect owns the spare LUN, enter the following command to see a list of spare LUNs on the gFiler:

vol status -s

Result

The spare disks (LUNs) are listed.

2

Reassign ownership of the spare LUN to the other gFiler by entering the following command:

disk assign <LUN-name> -o <name-of-the-receiving-system> -f

LUN-name is the name of the LUN.

sysid-of-the-receiving-system is the NVRAM of the gFiler to which the vfiler is being moved. You can find the ID of the gFiler to which the vFiler is being moved by using the sysconfig command on the destination gFiler.

Result

A message that the status of the ownership changed is displayed.

3

Verify that the ownership of the spare LUN moved to the other gFiler by entering the following command:

vol status -s

Result

The spare LUN that you moved should no longer appear in the list of spare disks (LUNs).

4

On the destination gFiler, enter the following command to ensure that the spare LUN for which you changed ownership is listed in the spare LUNs listed:

vol status -s

About making a LUN unused  Top

A gFiler must cease all the input and output operations to a LUN for you to do the following on the storage subsystem:

You can use the disk remove -w command to change the "state" of a LUN to unused. After the state is unused, the LUN can no longer be used by any neighborhood participants. (In contrast, if you want to remove disk ownership of a LUN but you want to preserve the ability for neighborhood participants to own it, you use the disk assign -s unowned command.)

The disk remove -w command does the following:

After you use the disk remove -w command on a LUN (from the gFiler), you can make the LUN unavailable to the gFilers (from the storage subsystem).

Removing LUN ownership  Top

To prepare the LUN to be physically removed, complete the following step.

Step

Action

1

From the CLI prompt of the gFiler, enter the following command:

disk remove -w <LUNfullname>

where <LUNfullname> is the full name of the LUN.

Changing LUN size and composition  Top

The gFiler supports LUN size or composition changes only for unused LUNs. If a LUN is assigned as a spare LUN or an owned LUN (through the gFiler ownership scheme), you cannot change the size or composition of the LUN from the storage system management tool. Therefore, if you want to change the LUN size or composition, you must first make the LUN unused on the gFiler.

To change the size or composition of an unused LUN, complete the following steps.

Step

Action

1

On the gFiler, make a LUN unused by specifying the full name of the LUN in the disk remove -w command from the CLI command prompt (as described in About making a LUN unused). For example:

disk remove -w <LUNfullname>

2

On the storage subsystem, make the LUN invisible to the gFilers.

3

Change the size of the LUN.

4

Make the LUN available to the gFiler again.

Result

The LUN will be seen to the gFiler as unused.

5

Assign the LUN ownership by a gFiler (by using the disk assign command).

Removal of a LUN from a gFiler to move to a non-gFiler  Top

If a LUN is mapped to a gFiler and you want to unallocate the LUN from the gFiler and map it to another host, use a LUN that is a spare. Make the LUN unused by using the disk remove -w command, as described in About making a LUN unused.

Checksum space on each LUN  Top

The gFiler formats LUNs in a special way to store checksum information that is used for data integrity checking on reads. One eighth of the space of the LUN is used for this purpose and is not available to the user.

Core dump space per LUN  Top

For gFiler models other than the GF270c, one percent of the space on each LUN is reserved for core dumps. A minimum capacity of 272 GB results in 2.5 GB of core dump space (accounting for loss of space due to checksum formatting). Typically, this 1 percent allocation should be enough for core dumps.

Requirement for spare LUNs for a GF270c

Each head of a GF270c must have one spare LUN of 1.5 GB or more assigned to it at all times, in case a problem occurs that results in a panic. The system can then dump core to the spare LUN and NetApp can analyze the core dump to determine the cause of the problem.

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments