Saturday, October 25, 2014

NetApp SnapLock Configuration


Introduction:

SnapLock is an alternative to the traditional optical "write once, read many" (WORM) data. SnapLock is used for the storage of read-only WORM data.
SnapLock is a license-based, disk-based, open-protocol feature that works with application software to administer non-rewritable storage of data. The primary objective of this Data ONTAP feature is to provide storage-enforced WORM and retention functionality by using open file protocols such as CIFS and NFS. SnapLock can be deployed for protecting data in strict regulatory environments in such a way that even the storage administrator is considered an untrusted party.
SnapLock provides special purpose volumes in which files can be stored and committed to a non-erasable, non-rewritable state either forever or for a designated retention period. SnapLock allows this retention to be performed at the granularity of individual files through standard open file protocols such as CIFS and NFS.



NetApp SnapLock compliance software helps you meet strict data retention regulations and internal IT governance rules.

SnapLock is available in tow version: SnapLock compliance for strict regulatory environment, and SnapLock Enterprise, for more flexible environments.

SnapLock can integrates with the snap Mirror and snap vault, and snap mirror allows the SnapLock volumes to be replicated to another storage system and Lock vault backs up SnapLock volumes to a secondary storage system to ensure that if the original data is destroyed than the data can be restored or accessed from another location.

Once the data is created in the SnapLock volume they comes under the retention period and these files get treated as WORM, so that nobody can delete or modify the data until and unless it reach to its retention period, the SnapLock volumes cannot be deleted by the user, administrator nor by the application, the retention date on a WORM file is set when the file is committed to WORM state, but it can be extended at any time. The retention period can never be shortened for any WORM file.

SnapLock Compliance 

SnapLock Compliance is used in strictly regulated environment, where data is retained for longer period of time and these data are accessed frequently only for readable purpose.

SnapLock Compliance even does not allow the storage administrator’s to perform any operations that might modify the file, it uses the feature called “ComplianceClock” to enforce the retention periods. SnapLock Compliance requires the SnapLock license to enable the SnapLock features and to restrict the administration access to the file.

SnapLock Enterprise 

SnapLock Enterprise allows the administrator to destroy the SnapLock volume before all the file on the volume reach their expiration date. However no one else can delete or modify the files.

It requires the SnapLock _enterprise license



Configuration Steps:

Check the licenses or else add the snaplock licenses.

Here both snaplock licenses are installed.



Check the snaplock clock status.

If it is not initialized, initialize the snaplocl clock using the following command.

snaplock clock initialize.




Check the status, it was initialized successfully.



Now you can create an aggregate with snaplock.



Check the aggregate status, it was created with snaplock enterprise option.



Now you can create a flex volume, that volume also automatically comes with snaplock option.



You can list the retention period by using the following command.




You can change the retention period also using the following command.


Now i am exporting this volume.



Login to the linux server and mount the volume.



I am creating few files in the snaplock volume.




I can able to list and read that files.

But i can't able to delete that file.



Same as i am mounting another volume which doesn't have snaplock option.

In this volume i can able to create a new files.



Same time i can able to delete the files also.















NetApp Aggregate and Volume Status



An aggregate can be in one of the below three states

OnlineRead and write access to volumes is allowed
RestrictedSome operations, such as parity reconstruction are allowed, but data access is not allowed
OfflineNo access to the aggregate is allowed


The aggregate can have a number of different status values


32-bitThis aggregate is a 32-bit aggregate
64-bitThis aggregate is a 64-bit aggregate
aggrThis aggregate is capable of contain FlexVol volumes
copyingThis aggregate is currently the target aggregate of an active copy operation
degradedThis aggregate is contains at least one RAID group with single disk failure that is not being reconstructed
double degradedThis aggregate is contains at least one RAID group with double disk failure that is not being reconstructed (RAID-DP aggregate only)
foreignDisks that the aggregate contains were moved to the current storage system from another storage system
growingDisks are in the process of being added to the aggregate
initializingThe aggregate is in the process of being initialized
invalidThe aggregate contains no volumes and none can be added. Typically this happend only after an aborted "aggr copy" operation
ironingA WAFL consistency check is being performewd on the aggregate
mirror degradedThe aggregate is mirrored and one of its plexes is offline or resynchronizing
mirroredThe aggregate is mirrored
needs checkWAFL consistency check needs to be performed on the aggregate
normalThe aggregate is unmirrored and all of its RAID groups are functional
out-of-dateThe aggregate is mirrored and needs to be resynchronized
partialAt least one disk was found for the aggregate, but two or more disks are missing
raid0The aggrgate consists of RAID 0 (no parity) RAID groups
raid4The agrregate consists of RAID 4 RAID groups
raid_dpThe agrregate consists of RAID-DP RAID groups
reconstructAt least one RAID group in the aggregate is being reconstructed
redirectAggregate reallocation or file reallocation with the "-p" option has been started on the aggregate, read performance will be degraded
resyncingOne of the mirror aggregates plexes is being resynchronized
snapmirrorThe aggregate is a SnapMirror replica of another aggregate (traditional volumes only)
tradThe aggregate is a traditional volume and cannot contain FlexVol volumes.
verifyingA mirror operation is currently running on the aggregate
wafl inconsistentThe aggregate has been marked corrupted; contact techincal support




Volumes:


OnlineRead and write access to this volume is allowed.
RestrictedSome operations, such as parity reconstruction, are allowed, but data access is not allowed.
OfflineNo access to the volume is allowed.


There are number of possible status values for volumes


access deniedThe origin system is not allowing access. (FlexCache volumes
only.)
active redirectThe volume's containing aggregate is undergoing reallocation (with the -p option specified). Read performance may be reduced while the volume is in this state.
connectingThe caching system is trying to connect to the origin system. (FlexCache volumes only.)
copyingThe volume is currently the target of an active vol copy or snapmirror operation.
degradedThe volume's containing aggregate contains at least one degraded RAID group that is not being reconstructed after single disk failure.
double degradedThe volume's containing aggregate contains at least one degraded RAID-DP group that is not being reconstructed after double disk failure.
flexThe volume is a FlexVol volume.
flexcacheThe volume is a FlexCache volume.
foreignDisks used by the volume's containing aggregate were moved to the current storage system from another storage system.
growingDisks are being added to the volume's containing aggregate.
initializingThe volume's containing aggregate is being initialized.
invalidThe volume does not contain a valid file system.
ironingA WAFL consistency check is being performed on the volume's containing aggregate.
lang mismatchThe language setting of the origin volume was changed since the caching volume was created. (FlexCache volumes only.)
mirror degradedThe volume's containing aggregate is mirrored and one of its plexes is offline or resynchronizing.
mirroredThe volume's containing aggregate is mirrored.
needs checkA WAFL consistency check needs to be performed on the volume's containing aggregate.
out-of-dateThe volume's containing aggregate is mirrored and needs to be resynchronized.
partialAt least one disk was found for the volume's containing aggregate, but two or more disks are missing.
raid0The volume's containing aggregate consists of RAID0 (no parity) groups (array LUNs only).
raid4The volume's containing aggregate consists of RAID4 groups.
raid_dpThe volume's containing aggregate consists of RAID-DP groups.
reconstructAt least one RAID group in the volume's containing aggregate is being reconstructed.
redirectThe volume's containing aggregate is undergoing aggregate reallocation or file reallocation with the -p option. Read performance to volumes in the aggregate might be degraded.
rem vol changedThe origin volume was deleted and re-created with the same name. Re-create the FlexCache volume to reenable the FlexCache relationship. (FlexCache volumes only.)
rem vol unavailThe origin volume is offline or has been deleted. (FlexCache volumes only.)
remote nvram errThe origin system is experiencing problems with its NVRAM. (FlexCache volumes only.)
resyncingOne of the plexes of the volume's containing mirrored aggregate is being resynchronized.
snapmirroredThe volume is in a SnapMirror relationship with another volume.
tradThe volume is a traditional volume.
unrecoverableThe volume is a FlexVol volume that has been marked unrecoverable; contact technical support.
unsup remote volThe origin system is running a version of Data ONTAP the does not support FlexCache volumes or is not compatible with the version running on the caching system. (FlexCache volumes only.)
verifyingRAID mirror verification is running on the volume's containing aggregate.
wafl inconsistentThe volume or its containing aggregate has been marked corrupted; contact technical support .


NetApp 7-Mode Aggregate Mirror Configuration




Aggregates

Disks are grouped together in aggregates, these aggregates provide storage to the volume or volumes that they contain. Each aggregate has it own RAID configuration, plex structure and set of assigned disks or array LUNs. You can create traditional volumes or NetApp's FlexVol volumes. There are two types of aggregate
  • 32bit - Maximum 16TB
  • 64bit - Maximum 100TB
A aggregate has only one plex (pool 0), if you use SyncMirror (licensed product) you can mirror the aggregate in which case it will have two plexes (pool 0 and pool 1). Disks can be assigned to different pools which will be used for hot spares or extending aggregates for those pools. The plexes are updated simultaneously when mirroring aggregates and need to be resynchronized if you have problems with one of the plexes.




You can create mirror aggregate using the following command.

aggr create aggrname -m -t raid4 -d <disk list from pool0> -d <disk list from pool1>

If the aggregate is already exists then, aggr mirror command to create a mirror.






Check the aggr status.

Run sysconfig command, you can see the two plexes (Plex0 and Plex1) and internally mirrored.



You can check the aggr status to list the mirror status of that aggregate.




Wednesday, October 15, 2014

Symantec NetBackup 7.6.0.1 Installation on Linux




Extract the Netbackup Application Software.

tar -zxvf  netbackup ......tar.gz



Once successfully extracted, run the install script.




It starts extracting the binaries, and then it will start the netbackup installation.



Installing Java and Jre.


Installing the startup scripts in run control file location.


Now it is installing  the Netbackup Master server software.


 It is installing the EMM Server also.

Starting all the netbackup  services.



Installing the sqlanywhere (Catalog) software automatically.



After successfully netbackup is installed, check all the services using bpps command.




Run the java console.


 Use the credentials to login to Master server.



Now you can able to see the admin console.



Now you can able to create new storage unit.


Specify the storage unit type and path.


 Now successfully storage unit got created.


Now you can create a new policy.


Define schedule and take a backup.





Tuesday, October 14, 2014

Symantec NetBAckup 7.6.0.1 Catalog Recovery Tutorial



Catalog

§Internal databases which is maintained by the Netbackup
§Catalog contains:
§Details about backup configuration
§Storage devices and Media

§Backed up Files


Proper management of catalog is very important.

This article deals with the catalog backup and recovery.

First define the policy for catalog backup using the NBU-CATALOG policy type.

Select the storage unit.



Define the schedule and backup type.



Define the path for the disaster recovery file. Even you add this file as an email attachment also.




Run one manual backup.
Backup done successfully.



Now you some policies are available in catalog.



Delete all the policies.



Same as you can delete the storage units also.



Now you don't have any policies and storage units.



Now you can for the catalog recovery wizard.




Select the recovery file location and the file.




Now the recovery file search successfully.




Now the recovery of catalog started.


Netbackup catalog recovered successfully.





Now you just the refresh and you can see all the polices.




You can see all the storage units.