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
The hosting volume was sitting idle. I deleted the hosting volume and that took care of the LUNs that I was unable to delete.
Hello my friend,
What is the volume type where this LUN is hosted?
Which command did you use on CLI for the deletion attempt?
Pedro
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,
Vserver Name: SVM2Volume Name: MX02_mirrorAggregate Name: aggr1_02_SASList of Aggregates for FlexGroup Constituents: aggr1_SASEncryption Type: noneList of Nodes Hosting the Volume: BKCPACKRAT-02Volume Size: 500GBVolume Data Set ID: 1079Volume Master Data Set ID: 2162346041Volume State: onlineVolume Style: flexExtended Volume Style: flexvolFlexCache Endpoint Type: noneIs Cluster-Mode Volume: trueIs Constituent Volume: falseExport Policy: defaultUser ID: -Group ID: -Security Style: ntfsUNIX Permissions: ------------Junction Path: -Junction Path Source: -Junction Active: -Junction Parent Volume: -Comment:Available Size: 286.4GBFilesystem Size: 500GBTotal User-Visible Size: 500GBUsed Size: 213.6GBUsed Percentage: 42%Volume Nearly Full Threshold Percent: 95%Volume Full Threshold Percent: 98%Maximum Autosize: 1TBMinimum Autosize: 500GBAutosize Grow Threshold Percentage: 92%Autosize Shrink Threshold Percentage: 87%Autosize Mode: grow_shrinkTotal Files (for user-visible data): 15564791Files Used (for user-visible data): 113Space Guarantee in Effect: trueSpace SLO in Effect: trueSpace SLO: noneSpace Guarantee Style: volumeFractional Reserve: 0%Volume Type: DPSnapshot Directory Access Enabled: trueSpace Reserved for Snapshot Copies: 0%Snapshot Reserve Used: 0%Snapshot Policy: noneCreation Time: Thu Jul 25 16:37:21 2019Language: en_USClone Volume: falseNode name: PACK-02Clone Parent Vserver Name: -FlexClone Parent Volume: -NVFAIL Option: onVolume's NVFAIL State: falseForce NVFAIL on MetroCluster Switchover: offIs File System Size Fixed: false(DEPRECATED)-Extent Option: offReserved Space for Overwrites: 0BPrimary Space Management Strategy: volume_growRead Reallocation Option: offNaming Scheme for Automatic Snapshot Copies: create_timeInconsistency in the File System: falseIs Volume Quiesced (On-Disk): falseIs Volume Quiesced (In-Memory): falseVolume Contains Shared or Compressed Data: trueSpace Saved by Storage Efficiency: 0BPercentage Saved by Storage Efficiency: 0%Space Saved by Deduplication: 0BPercentage Saved by Deduplication: 0%Space Shared by Deduplication: 140.4GBSpace Saved by Compression: 0BPercentage Space Saved by Compression: 0%Volume Size Used by Snapshot Copies: 2.37MBBlock Type: 64-bitIs Volume Moving: falseFlash Pool Caching Eligibility: read-writeFlash 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: falseNumber of Snapshot Copies in the Volume: 10VBN_BAD may be present in the active filesystem: falseIs Volume on a hybrid aggregate: falseTotal Physical Used Size: 142.7GBPhysical Used Percentage: 29%Is Volume a FlexGroup: falseSnapLock Type: non-snaplockVserver DR Protection: -Enable Encryption: falseIs Volume Encrypted: falseVolume Encryption State: noneEncryption Key ID:Application: -Is Fenced for Protocol Access: falseProtocol Access Fence Owner: -Is SIDL enabled: offOver Provisioned Size: 0BAvailable Snapshot Reserve Size: 0BLogical Used Size: 354.0GBLogical Used Percentage: 71%Logical Available Size: -Logical Size Used by Active Filesystem: 354.0GBLogical Size Used by All Snapshots: 1.37TBLogical Space Reporting: falseLogical Space Enforcement: falseVolume Tiering Policy: nonePerformance Tier Inactive User Data: -Performance Tier Inactive User Data Percent: -
Here is the output from "lun show -vserver SVM2" command
I'm trying to delete the offline LUNs.