Views:

Summary



After a Network Data Management Protocol (NDMP) restore is completed for a logical unit number (LUN) file, the storage system recognizes a restored resource, but does not identify it as a LUN. Although the restored file appears in the common Internet file system (CIFS), LUN attributes remain unrecognized.

Symptoms



The Restore job log contains the following error messages:

Text(RESTORE: Cannot create qtree: ./qrd )

Text(RESTORE: Creating a regular directory instead. )

Text(RESTORE: cannot reserve blocks for file ./[volume]/[lunfile]/attributes: Operation not permitted )

Text(RESTORE: LUN files can only be restored to qtree root directories )

Text(RESTORE: can't mark as LUN: ./[volume]/[lunfile]: Undefined error: 0 )

 

In addition, the LUN does not appear in the LUN show output:

 

FAS2040PROD> lun show

/vol/Training/Training 500.1g (536952700928) (r/w, online, mapped)

/vol/Training/Training2 400.0g (429523992576) (r/w, online, mapped)

/vol/demo/demo 600.1g (644326883328) (r/w, online, mapped)



Resolution



Before you attempt to run the NDMP restore, you must create the restore volume and then, assign certain volume options. If the volume options are not set, the restore will complete but the LUN file will not be the original inflated size. It will be 0 KB in size. So when you map the restore volume as a LUN, you will not be able to see the original data. Also the server you are mapping the LUN to, will also state that you must format the drive before you can access it.

For example, the restore volume name is vol2.

Assuming that the LUN is 2 TB in size, you could assign the volume options as follows:

vol options vol2 fractional_reserve 0

vol options vol2 nosnap on

snap autodelete vol2 on

snap reserve -V vol2 0

vol autosize vol2 on

vol autosize vol2 -m 4000g

vol autosize vol2 -i 50g

vol options vol2 try_first volume_grow

snap sched vol2 0

qouta off rd

Note: Adjust these options to accommodate the requirements of your restored LUN.

A LUN must reside in a qtree root directory.

Once the NDMP restore is complete the vol2 volume will automatically be set as a LUN. But the LUN will be offline. You must then assign an ISCSI Initiator Group to it and then online the LUN.