ONTAP Discussions

Highlighted

Can't delete volume

Pardon my naivete, I"ve not used NetApp much.  I've inherited an old FAS8040 running OnTap 8.2.4. It's out of support and the only thing I need to do is securely erase the disks prior to system disposal. So I want to run disk  sanitize. To do that (as I understand it) I have to delete the aggregates and make all the disks spares. So to do that I need to delete the volumes. There were 481 and I was able to delete all but 53 of them. They give this error:

 

dco-prod-netapp::*> volume delete -vserver es-prod-netapp-vs2 -volume urcdev_data_a_vol

Error: command failed: Volume urcdev_data_a_vol in Vserver es-prod-netapp-vs2 must be offline to be deleted.

 

dco-prod-netapp::*> volume offline -vserver es-prod-netapp-vs2 -volume urcdev_data_a_vol

Warning: Volume "urcdev_data_a_vol" on Vserver "es-prod-netapp-vs2" must be unmounted before being taken offline or restricted. Clients will not be able to access the affected volume and related
junction paths after that. Do you still want to unmount the volume and continue? {y|n}: y
vol offline: Error offlining volume "es-prod-netapp-vs2:urcdev_data_a_vol". Error while deleting junction.

 

dco-prod-netapp::*> volume modify -vserver es-prod-netapp-vs2 -volume urutst_tmp_a_vol -state force-offline

Warning: Forcing offline volume urutst_tmp_a_vol in Vserver es-prod-netapp-vs2 can potentially disrupt access to files in other volumes.
Do you want to continue? {y|n}: y

Volume modify successful on volume: urutst_tmp_a_vol

 

dco-prod-netapp::*> volume delete -vserver es-prod-netapp-vs2 -volume urutst_tmp_a_vol

Warning: Are you sure you want to delete volume "urutst_tmp_a_vol" in Vserver "es-prod-netapp-vs2" ? {y|n}: y
[Job 39372] Job is queued: Delete urutst_tmp_a_vol.

Error: command failed: [Job 39372] Job failed: Failed to delete junction from volume rootvol_esprd_vs2 on Vserver es-prod-netapp-vs2. Reason: The volume or plex is offline.

 

 

Any pointers would be appreciated.

8 REPLIES 8
Highlighted

Re: Can't delete volume

Hello,

 

This could be due to different reason, but you can check couple things listed below:

 

1. Check if you have any failed drive that belong to the aggr in question.

2. Check the status of the aggr (online, offline foreign....)

3. Check the volume and if you have any clone.

 

Thanks

Highlighted

Re: Can't delete volume

You have to unmount the volume from the namespace first. It says as much here:

 

Warning: Volume "urcdev_data_a_vol" on Vserver "es-prod-netapp-vs2" must be unmounted before being taken offline or restricted. 

 

So, do this:

- Online the volume

- Run "volume unmount" to unmount the junction path

- offline the volume

- delete the volume

 

Keep in mind that deleting the volume without -force will put the volume into the recovery-queue and won't free up space for 12ish hours:

https://docs.netapp.com/ontap-9/topic/com.netapp.doc.dot-cm-vsmg/GUID-D4E85AB5-EEBB-44B4-A648-5B1B04FD5F85.html

Highlighted

Re: Can't delete volume

If you want to zero all drives, just reboot the filer and push ctrl+c to interrupt boot menu. I believe there is an option there in 7-mode to wipe the drives. Option 4 will wipe then initialize with a new O/S.

 

Highlighted

Re: Can't delete volume

There were 2 failed drives, but they were not listed as part of any aggregate or spares.

Tried this both when the aggregate was online and offline. Same result.

There were 5 FlexClones listed but I didn't see any way to delete them.

 

dco-prod-netapp::volume clone*> ?
create Create a FlexClone volume
show Display a list of FlexClones
split> Commands to manage FlexClone split

dco-prod-netapp::volume clone*> show
Vserver FlexClone Parent-Volume Parent-Snapshot State Type
--------- -------------- --------------- ---------------------- ---------- ----
es-prod-netapp-vs2
urcdev_data_a_vol
- - - RW
urcply_data_a_vol
- - - RW
urctst_data_a_vol
- - - RW
urudev_data_a_vol
- - - RW
urutst_data_a_vol
- - - RW
5 entries were displayed.

dco-prod-netapp::volume clone*> split

dco-prod-netapp::volume clone split*> show
This table is currently empty.

dco-prod-netapp::volume clone split*> stop -vserver es-prod-netapp-vs2 *

Error: command failed on vserver "es-prod-netapp-vs2" flexclone "urcdev_data_a_vol": Clone volume is not being split from its parent.

Highlighted

Re: Can't delete volume

Tried this but got the same error:

 

dco-prod-netapp::*> volume online -vserver es-prod-netapp-vs2 urutst_tmp_a_vol
Volume "es-prod-netapp-vs2:urutst_tmp_a_vol" is now online.

Volume modify successful on volume: urutst_tmp_a_vol

 

dco-prod-netapp::volume*> show urutst_tmp_a_vol
Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
es-prod-netapp-vs2
urutst_tmp_a_vol
node01_sata online RW 33GB 32.58GB 1%

 

dco-prod-netapp::volume*> unmount -vserver es-prod-netapp-vs2 urutst_tmp_a_vol

Error: command failed: Failed to delete junction from volume rootvol_esprd_vs2 on Vserver es-prod-netapp-vs2. Reason: The volume or plex is offline.

Highlighted

Re: Can't delete volume

Didn't see any options on the Service Process, System Console, or Boot Loader for this.

 

SP dco-prod-netapp1-01*> system
system battery - battery related commands
system console - connect to the system console
system core - dump the system core and reset
system log - print system console logs
system power - commands controlling system power
system reset - reset the system using the selected firmware
system sensors - print environmental sensors status
system fru - fru related commands
system forensics - configure watchdog forensics collection settings
system nvram flash - nvram flash related commands
system watchdog - system watchdog commands

SP dco-prod-netapp1-01*>
SP dco-prod-netapp1-01*> system
system battery - battery related commands
system console - connect to the system console
system core - dump the system core and reset
system log - print system console logs
system power - commands controlling system power
system reset - reset the system using the selected firmware
system sensors - print environmental sensors status
system fru - fru related commands
system forensics - configure watchdog forensics collection settings
system nvram flash - nvram flash related commands
system watchdog - system watchdog commands

 

SP dco-prod-netapp1-01*> system power status
Host Power is on

SP dco-prod-netapp1-01*> system console
Type Ctrl-D to exit.

 

LOADER-A> bye
BIOS version: 9.3X3
Portions Copyright (c) 2011-2014 NetApp. All Rights Reserved
?Phoenix SecureCore Tiano(TM)
Copyright 1985-2020 Phoenix Technologies Ltd.
All Rights Reserved

Build Date: 09/25/2014
**********************************************
* 9.3X3 *
* ================================== *
* PHOENIX SC-T 2009-2020 *
**********************************************
CPU = 1 Processor(s) Detected, Cores per Processor = 8
Intel(R) Xeon(R) CPU E5-2658 @ 2.10GHz
32768 MB System RAM Installed
256 KB L2 Cache
System BIOS shadowed
Video BIOS shadowed
USB Device: MICRON eUSB DISK

Boot Loader version 5.3X1
Copyright (C) 2000-2003 Broadcom Corporation.
Portions Copyright (C) 2002-2014 NetApp, Inc. All Rights Reserved.

 

Starting AUTOBOOT press Ctrl-C to abort...

Autoboot of PRIMARY image aborted by user.

LOADER-A> help
Available commands:

netboot Boots the supplied URL off the network.
boot_diags Boots the diagnostic image off of the boot device.
boot_backup Boots the backup image of Data ONTAP off of the boot device.
boot_primary Boots the primary image of Data ONTAP off of the boot device.
boot_ontap Boots the correct image of Data ONTAP
update_flash Updates the boot flash with the firmware image on the boot device.
sp status Show the Service Processor Network Settings
sp setup Interactively configure a Service Processor
flash Update a flash memory device
version Print the firmware version
bye Reset the system.
set date Set current date
set time Set current time
set console Change the active console device
lsmod Per-file metadata.
autoboot Automatic system bootstrap.
go Start a previously loaded program.
boot Load an executable file into memory and execute it
load Load an executable file into memory without executing it
ndp Display or modify the NDP Table(IPv6 only)
ping Ping a remote IP host.
arp Display or modify the ARP Table
ifconfig Configure the Ethernet interface
show date Display current time according to RTC
show time Display current time according to RTC
show devices Display information about the installed devices.
savenv Save the environmental variables.
saveenv Save the environmental variables.
unsetenv Delete an environment variable.
set-defaults Reset all system environmental variables to default values.
setenv Set an environment variable.
printenv Display the environment variables
undi UNDI driver diagnostic command
help Obtain help for loader commands

For more information about a command, enter 'help command-name'
LOADER-A>

Highlighted

Re: Can't delete volume

Thanks to everyone that offered a solution. Still could not resolve it though. We decided to get a bigger hammer for this problem. Literally, we're just going to physically destroy the disks.

View solution in original post

Highlighted

Re: Can't delete volume

Well...that's one way to do it!
Check out the KB!
NetApp Insights To Action
All Community Forums