netapp knowledgebase - how to delete snapshots in the (busy,lun) state

Upload: harry-crowley

Post on 04-Jun-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 NetApp Knowledgebase - How to Delete Snapshots in the (Busy,LUN) State

    1/1

    Rate this Page Did this article solve your issue?

    Back

    How to delete snapshots in the (busy,LUN) state

    KB ID: 1010151 Version: 8.0 Published date: 04/01/2013 Categories: Troubleshooting, Data ONTAP7G, Troubleshooting

    Description

    Basic instructions for deleting snapshots in the '(busy,LUN)' state are provided in Deleting busy snapshot copies. However, these instructions sometimes failbecause a more recent snapshot holds the blocks of the LUN, preventing the busy snapshot from being deleted. In that situation, use these modified instructions.

    Also, when deleting the parent LUN of a cloned LUN,lun snap usage -s is advising to delete the lun in the active filesystem in order to delete the snapshot:

    You need to delete the following LUNs before deleting the snapshot

    /vol/testvol/lun2.lun

    Procedure

    Preferred option:

    If the snapshot contains mounted LUNs, they should be disconnected using the host. UnderSnapDrive > Disks, in the host's MMC, locate and disconnect theoffending LUNs by right clicking them and selecting 'disconnect'.

    Alternate option (Data ONTAP 7.3+):

    A new feature of Data ONTAP 7.3 eliminates the obligation to delete the subsequent snapshots in order to free the snapshot locking the LUN.

    1. Identify all snapshots that are locked by LUNs in a busy state by entering the following command:snap list

    2. Identify the LUNs and the snapshots that contain them by entering the following command:lun snap usageNote: See 1010736: Using lun snap usage -s when deleting busy snapshot copies for more information.

    3. Use thelun showcommand to display all LUNs. Does that LUN stil l exist?Note:Do not delete files with a .lun extension. Contact NetApp Supportif you are unsure of which file to delete.

    4. Delete the temporary LUN with the following command: lun destroy

    5. Change the thesnapshot_clone_dependency volume option on the volume with the locked snapshots in the busy state by using the followingcommand: vol options volume_name snapshot_clone_dependency onNote: For more information, see the sectionExamples of deleting backing snapshot copies of deleted LUN clonesinthe Data ONTAP 7.3.2 Block Access Management Guide for iSCSI and FC.

    Alternate option (previous to Data ONTAP 7.3):

    1. Identify all snapshots that are locked by LUNs in a busy state by entering the following command:snap list

    2. Identify the LUNs and the snapshots that contain them by entering the following command:lun snap usage

    Note: See 1010736: Using lun snap usage -swhen deleting busy snapshot copies for more information.

    3. Use thelun show command to display all LUNs. Does that LUN still exist?Note: Do not delete files with a .lun extension. Contact NetApp Supportif you are unsure of which file to delete.

    4. Delete the temporary LUN with the following command:lun destroy

    5. The steps below may require deleting all of the current snapshots. To be on the safe side, take a new snapshot. Now that the LUN file has been deleted,this snapshot will not hold the busy one.

    6. Try to delete the busy snapshot with: snap deleteThe delete attempt should fail, indicating that younger snapshots are holding the LUN.

    7. Find the younger snapshots and delete them. There are two approaches to this, a careful one and an expedient one:

    The careful approach: Starting with the next youngest snapshot, look in the snapshot for the LUN file. Identify all snapshots that have this LUN file.Then starting with the youngest, delete these snapshots. Once these are deleted, delete the snapshot in the '(busy,LUN)' state.-OR-

    The expedient approach: Try deleting the next youngest snapshot to the busy one. If that fails, try deleting the next one younger than that. Continue untila deletion succeeds. Then work your way back until you have deleted the '(busy,LUN)' snapshot.

    Cloned LUNs

    This can also be encountered when the LUN in the volume is cloned from a LUN that was removed from the system. The clone is never split and is still dependanton the snapshot. In this scenario, split the LUN in the active file system using the following command:

    lun clone split start /vol/testvol/lun2.lun

    This will remove the dependency of the LUN in the snapshot.

    Related Link:

    1011117: How to delete a 'Busy,LUNs' snapshot without deleting all snapshots

    Connect, share and learn more with peers in the NetApp Support Community.

    Weekly contest: Search, share, soar! Win a NetApp t-shirt!

    To optimize your search results, view the Knowledgebase search tips.

    NetApp Knowledgebase - How to delete snapshots in the (busy,LUN) state 4/2/2013

    https://kb.netapp.com/support/index?page=content&id=1010151&pmv=print&impressions=false 1 / 1

    https://library.netapp.com/ecmdocs/ECMM1278361/html/bsag/GUID-7823FA56-F024-43E3-8117-D4232741F4E1.htmlhttps://kb.netapp.com/support/index?page=content&id=1013388https://kb.netapp.com/support/index?page=content&id=4010030https://forums.netapp.com/community/supporthttps://kb.netapp.com/support/index?page=content&id=1011117http://www.netapp.com/us/support/ngs-contacts.htmlhttps://kb.netapp.com/support/index?page=content&id=1010736https://library.netapp.com/ecmdocs/ECMM1278361/html/bsag/index.htmlhttps://library.netapp.com/ecmdocs/ECMM1278361/html/bsag/GUID-7823FA56-F024-43E3-8117-D4232741F4E1.htmlhttp://www.netapp.com/us/support/ngs-contacts.htmlhttps://kb.netapp.com/support/index?page=content&id=1010736https://library.netapp.com/ecmdocs/ECMM1278048/html/bsagiscs/c5data5.htmhttp://kb.netapp.com/support/index?page=content&id=1010151&impressions=false