'Am sure this must have been asked a thousand of times, but let me go ahead and ask it again.
Is there a way to take snapshot of a specific LUN? I know snapshots are volume based only. But what if my volume has several LUN's and what if I'd like to restore just a single LUN? I know snapdrive would help me in some way, but is there any other option?
Is there then a way to restore just a single lun from a volume based snapshot having lots of lun's. If there is, could someone please point me out the exact syntax?
Thanks in advance!
My answer assumes that the snapshots are taken by sanpdrive, that way you have it "consistent". This is because snapshots are volume-based, snapshot should be taken when the LUN is in a consistent state which can be accomplished by utilizing snapdrive to take the snapshot to ensure that the drive is consistent before taking the volume level snapshot.
SnapRestore (requires license)- Restore an entire volume or a single LUN.
When a single LUN is restored, it must be taken offline or be unmapped prior to recovery. Using SnapRestore on a LUN, or on a volume that contains LUNs, without stopping all host access to those LUNs, can cause data corruption and system errors.
Remember, LUN restore is actually a Single File SnapRestore and is slower as WAFL has lot of work with specific blocks. This process can take longer time depending upon the LUN size.
snap restore [-t file] [-s snapshot_name] [-r restore_as_path] path_and_LUN_name
snap restore -t file -s snapshot.1 /vol/volA/my_luns
Lun clone (requires license)- As pradeep mentioned