ONTAP Discussions

Unable to delete read only LUNs

Emadul-Islam

Hi there,

 

I'm trying to delete a LUN from Ontap 9.7. It throws an error as "ONTAP API Failed: Read-only file system". I tried from CLI with "-f" flag. Still getting the same error. Any idea how I can delete read-only LUN.

 

Regards,

Emadul

6 REPLIES 6

Re: Unable to delete read only LUNs

pedro_rocha

Hello my friend,

 

What is the volume type where this LUN is hosted?

 

Which command did you use on CLI for the deletion attempt?

 

Regards,

Pedro

Kind Regards,
__
Pedro Rocha

Re: Unable to delete read only LUNs

Emadul-Islam

Hi Pedro,

 

I believe the volume type is “DP” and I used this command to delete “ lun delete -vserver SVM2 -path /vol/MX02_mirror/MX02_PUBFOLD -f”.

 

regards,

Emadul

Re: Unable to delete read only LUNs

pedro_rocha
please post the output for

volume show -vserver XXX -vol XXX -instance
Kind Regards,
__
Pedro Rocha

Re: Unable to delete read only LUNs

Emadul-Islam

Vserver Name: SVM2
Volume Name: MX02_mirror
Aggregate Name: aggr1_02_SAS
List of Aggregates for FlexGroup Constituents: aggr1_SAS
Encryption Type: none
List of Nodes Hosting the Volume: BKCPACKRAT-02
Volume Size: 500GB
Volume Data Set ID: 1079
Volume Master Data Set ID: 2162346041
Volume State: online
Volume Style: flex
Extended Volume Style: flexvol
FlexCache Endpoint Type: none
Is Cluster-Mode Volume: true
Is Constituent Volume: false
Export Policy: default
User ID: -
Group ID: -
Security Style: ntfs
UNIX Permissions: ------------
Junction Path: -
Junction Path Source: -
Junction Active: -
Junction Parent Volume: -
Comment:
Available Size: 286.4GB
Filesystem Size: 500GB
Total User-Visible Size: 500GB
Used Size: 213.6GB
Used Percentage: 42%
Volume Nearly Full Threshold Percent: 95%
Volume Full Threshold Percent: 98%
Maximum Autosize: 1TB
Minimum Autosize: 500GB
Autosize Grow Threshold Percentage: 92%
Autosize Shrink Threshold Percentage: 87%
Autosize Mode: grow_shrink
Total Files (for user-visible data): 15564791
Files Used (for user-visible data): 113
Space Guarantee in Effect: true
Space SLO in Effect: true
Space SLO: none
Space Guarantee Style: volume
Fractional Reserve: 0%
Volume Type: DP
Snapshot Directory Access Enabled: true
Space Reserved for Snapshot Copies: 0%
Snapshot Reserve Used: 0%
Snapshot Policy: none
Creation Time: Thu Jul 25 16:37:21 2019
Language: en_US
Clone Volume: false
Node name: PACK-02
Clone Parent Vserver Name: -
FlexClone Parent Volume: -
NVFAIL Option: on
Volume's NVFAIL State: false
Force NVFAIL on MetroCluster Switchover: off
Is File System Size Fixed: false
(DEPRECATED)-Extent Option: off
Reserved Space for Overwrites: 0B
Primary Space Management Strategy: volume_grow
Read Reallocation Option: off
Naming Scheme for Automatic Snapshot Copies: create_time
Inconsistency in the File System: false
Is Volume Quiesced (On-Disk): false
Is Volume Quiesced (In-Memory): false
Volume Contains Shared or Compressed Data: true
Space Saved by Storage Efficiency: 0B
Percentage Saved by Storage Efficiency: 0%
Space Saved by Deduplication: 0B
Percentage Saved by Deduplication: 0%
Space Shared by Deduplication: 140.4GB
Space Saved by Compression: 0B
Percentage Space Saved by Compression: 0%
Volume Size Used by Snapshot Copies: 2.37MB
Block Type: 64-bit
Is Volume Moving: false
Flash Pool Caching Eligibility: read-write
Flash Pool Write Caching Ineligibility Reason: -
Constituent Volume Role: -
QoS Policy Group Name: -
QoS Adaptive Policy Group Name: -
Caching Policy Name: -
Is Volume Move in Cutover Phase: false
Number of Snapshot Copies in the Volume: 10
VBN_BAD may be present in the active filesystem: false
Is Volume on a hybrid aggregate: false
Total Physical Used Size: 142.7GB
Physical Used Percentage: 29%
Is Volume a FlexGroup: false
SnapLock Type: non-snaplock
Vserver DR Protection: -
Enable Encryption: false
Is Volume Encrypted: false
Volume Encryption State: none
Encryption Key ID:
Application: -
Is Fenced for Protocol Access: false
Protocol Access Fence Owner: -
Is SIDL enabled: off
Over Provisioned Size: 0B
Available Snapshot Reserve Size: 0B
Logical Used Size: 354.0GB
Logical Used Percentage: 71%
Logical Available Size: -
Logical Size Used by Active Filesystem: 354.0GB
Logical Size Used by All Snapshots: 1.37TB
Logical Space Reporting: false
Logical Space Enforcement: false
Volume Tiering Policy: none
Performance Tier Inactive User Data: -
Performance Tier Inactive User Data Percent: -

 

Here is the output from "lun show -vserver SVM2" command

 

LUN-Show.PNG

 

I'm trying to delete the offline LUNs.

Re: Unable to delete read only LUNs

pedro_rocha

Hi,

 

Does the hosting volume have been or is in a mirror relationship? Type DP normally is a mirro destination...

 

If so, you could try to break any mirror relationship first and then try to delete things...

 

The hosting volume should RW

 

Kind Regards,
__
Pedro Rocha

Re: Unable to delete read only LUNs

Emadul-Islam

The hosting volume was sitting idle. I deleted the hosting volume and that took care of the LUNs that I was unable to delete. 

 

 

View solution in original post

Earn Rewards for Your Review!
GPI Review Banner
All Community Forums
Public