QNAP Systems, Inc. - Network Attached Storage (NAS)

Language

Support

After restoring or cloning an application consistent snapshot, why does my disk appear offline or as read-only?

The following guide is only required when an iSCSI LUN volume restored from a snapshot with VSS Hardware Provider (Application Consistent) enabled in QNAP Snapshot Agent appears offline or is read-only. The volume appears offline or is read-only because the Microsoft VSS engine has set the following attributes to your restored or cloned volume:

  • Read only
  • Hidden
  • No default drive assigned
  • Shadow Copy enabled

This situation only occurs under certain circumstances, and is defined by the Microsoft VSS engine. This is not a bug and is consistent with its intended behavior. Regular snapshots can be reverted without the following procedure. Application Consistent snapshots (VSS Hardware Provider enabled) can be reverted with QNAP Snapshot Agent on the original sever without using this procedure. Refer to https://msdn.microsoft.com/en-us/library/windows/desktop/aa384623(v=vs.85).aspx for more detail.

Restoring Volume Attributes

When using another server after restoring or cloning a snapshot, use the following steps to set the disks and volumes online and assign a drive letter to the volume.

Launch Disk Management to check for offline disks.

If there are disks that appear offline, follow the steps below:

  1. Run command prompt as administrator.
  2. Launch DISKPART by typing “diskpart” in Command Prompt.
  3. List the disks on your system by typing “list disk” in DISKPART.

Microsoft DiskPart version 6.3.9600

Copyright (C) 1999-2013 Microsoft Corporation.
On computer: ACRONISSTORAGE1

DISKPART> list disk

Disk ### Status Size Free Dyn Info
Disk 0 Online 40 GB 0 B    
Disk 1 Offline 777 GB 1024 KB    

DISKPART>

  1. Select the offline disk by typing “select disk #” in DISKPART . (# represents the offline disk number. Use “select disk 1” in our example)
  2. Bring the disk online by typing “online disk” in DISKPART.

DISKPART> select disk 1
Disk 1 is now the selected disk.
DISKPART>
DISKPART> online disk
DiskPart successfully onlined the selected disk.
DISKPART>

  1. List the volumes on the disk by typing “list volume” in DISKPART.

DISKPART> list volume

Volume ###  Ltr Label Fs Type Size Status Info
Volume 0 D     DVD-ROM 0 B No Media  
Volume 1   System Rese NTFS Partition 350 MB Healthy System
Volume 2 C   NTFS Partition 39 GB Healthy Boot
Volume 3   sas1 NTFS Partition 776 GB Healthy Hidden

DISKPART>

  1. Select the hidden volume by typing “select volume #” in DISKPART. (# represents the hidden volume number. Use “select volume 3” in our example)
DISKPART> select volume 3

Volume 3 is the selected volume.
  1. Display the volume’s attributes by typing “detail volume” in DISKPART to confirm the following steps applies.
    Step Result: The volume’s “Read-only”, “Hidden”, “No Default Drive Letter”, and “Shadow Copy” attributes are set to “Yes”.
DISKPART>
DISKPART> detail volume

Disk ### Status Size Free Dyn Gpt
* Disk 1 Online 777 GB  1024 KB    

Read-only                      : Yes
Hidden                          : Yes
No Default Drive Letter  : Yes
Shadow Copy                : Yes

Offline                           : No
BitLocker Encrypted       : No
Installable                      : Yes

Volume Capacity             :  776 GB
Volume Free Space          :  683 GB

DISKPART>

  1. Change the volume’s attributes by:
    1. Type “att vol clear shadowcopy” in DISKPART.
    2. Type “att vol clear nodefaultdriveletter” in DISKPART.
    3. Type “att vol clear hidden” in DISKPART.
    4. Type “att vol clear readonly” in DISKPART.

DISKPART> att vol clear shadowcopy

Volume attributes cleared successfully.

DISKPART> att vol clear nodefaultdriveletter

Volume attributes cleared successfully.

DISKPART>

DISKPART> att vol clear hidden

Volume attributes cleared successfully.

DISKPART> att vol clear readonly

Volume attributes cleared successfully.

  1. Confirm the volume’s attributes have been updated by typing “detail volume” in DISKPART.
    Step Result: Step Result: The volume’s “Read-only”, “Hidden”, “No Default Drive Letter”, and “Shadow Copy” attributes are set to “No”.

DISKPART> detail volume

Disk ### Status Size Free Dyn Gpt
* Disk 1 Online 100 GB 1024 KB    

Read-only                      : No
Hidden                          : No
No Default Drive Letter  : No
Shadow Copy                : No

Offline                           : No
BitLocker Encrypted       : No
Installable                      : Yes

Volume Capacity            : 99 GB
Volume Free Space         : 99 GB

  1. Repeat step 7 to 10 if there are other hidden volumes.
  2. Repeat steps 3 to 11 if there are other offline disks.
  3. Assign drive letters to the volumes that were previously hidden.
    1. Launch Disk Management with administrator privileges.
    2. Right click on the volume.
    3. Select “Change Drive Letter and Paths”.
    4. Follow the wizard to assign a letter to the volume.

  4. Repeat step 13 for all volumes that were hidden.

References

The Shadow Copy Creation Process
https://msdn.microsoft.com/en-us/library/windows/desktop/aa384623(v=vs.85).aspx
DiskPart Command-Line Options
https://technet.microsoft.com/en-us/library/cc766465(v=ws.10).aspx
QNAP Snapshot Agent Application Notes
https://www.qnap.com/en/tutorial/con_show.php?op=showone&cid=185

Datum vydání: 2017-08-23
Bylo to pro vás to užitečné?
Děkujeme vám za vaši zpětnou vazbu.
Děkujeme vám za vaši zpětnou vazbu. Máte-li nějaké dotazy, kontaktujte prosím adresu support@qnap.com