impossible to wipe disk

Status
Not open for further replies.

yaume

Dabbler
Joined
Jun 14, 2013
Messages
36
Hi,

I can't wipe my 3 disks on freenas.
Each time, i obtain this message:
Error: Failed to wipe ada1: dd: /dev/ada1: Operation not permitted
Error: Failed to wipe ada1: dd: /dev/ada1: Operation not permitted
Error: Failed to wipe ada1: dd: /dev/ada1: Operation not permitted

What can i do to solve the problem.
I understand that there is some residu on the disks, but i've not found any solution.

Thanks.


Add logs:

Jul 12 14:09:27 freenas notifier: 1048576 bytes transferred in 0.550470 secs (1904874 bytes/sec)
Jul 12 14:09:27 freenas notifier: dd: /dev/ada4: short write on character device
Jul 12 14:09:27 freenas notifier: dd: /dev/ada4: end of device
Jul 12 14:09:27 freenas notifier: 5+0 records in
Jul 12 14:09:27 freenas notifier: 4+1 records out
Jul 12 14:09:27 freenas notifier: 4284416 bytes transferred in 0.075934 secs (56422943 bytes/sec)
Jul 12 14:09:36 freenas kernel: GEOM_ELI: Device ada4p1.eli created.
Jul 12 14:09:36 freenas kernel: GEOM_ELI: Encryption: AES-XTS 256
Jul 12 14:09:36 freenas kernel: GEOM_ELI: Crypto: software
Jul 12 14:09:36 freenas notifier: Mounting late file systems:.
Jul 12 14:09:37 freenas notifier: Stopping collectd.
Jul 12 14:09:38 freenas notifier: Waiting for PIDS: 2166.
Jul 12 14:09:38 freenas notifier: Starting collectd.
Jul 12 14:15:09 freenas notifier: gpart: geom '/dev/ada1': Invalid argument
Jul 12 14:15:09 freenas notifier: gpart: geom 'ada1': Operation not permitted
Jul 12 14:15:09 freenas notifier: gpart: geom '/dev/ada1': Invalid argument
Jul 12 14:15:09 freenas manage.py: [middleware.exceptions:38] [MiddlewareError: Failed to wipe ada1: dd: /dev/ada1: Operation not permitted ]
Jul 12 14:15:10 freenas manage.py: [storage.views:996] Could not check for disk wipe progress: [Errno 3] No such process
Jul 12 14:15:12 freenas last message repeated 2 times
Jul 12 23:16:25 freenas notifier: Stopping ntpd.
Jul 12 14:16:25 freenas ntpd[1770]: ntpd exiting on signal 15
Jul 12 23:16:25 freenas notifier: Starting ntpd.
Jul 12 23:16:25 freenas ntpd[3376]: ntpd 4.2.4p5-a (1)
Jul 12 23:16:33 freenas ntpd[3377]: kernel time sync status change 2001
Jul 12 23:17:01 freenas manage.py: [storage.views:996] Could not check for disk wipe progress: [Errno 3] No such process
Jul 12 23:17:01 freenas notifier: gpart: geom '/dev/ada1': Invalid argument
Jul 12 23:17:01 freenas notifier: gpart: geom 'ada1': Operation not permitted
Jul 12 23:17:01 freenas notifier: gpart: geom '/dev/ada1': Invalid argument
Jul 12 23:17:02 freenas manage.py: [middleware.exceptions:38] [MiddlewareError: Failed to wipe ada1: dd: /dev/ada1: Operation not permitted ]
Jul 12 23:17:02 freenas manage.py: [storage.views:996] Could not check for disk wipe progress: [Errno 3] No such process
Jul 12 23:17:04 freenas last message repeated 2 times
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
I had the same error when I tried to do a dd random write to some disks. I'm thinking that FreeNAS is protecting the disk because there used to be a zpool on the disk. Somewhere here is a command that "unlocks" FreeNAS and allows you to overwrite the disks, but I can't remember it off the top of my head. I'll post back if I confirm/fix the issue.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Ok, I couldn't find the command line to allow you to dd overwrite the disk, but here's how I got around the issue. I wiped the disks from the GUI, chosing the "quick" wipe. This wipes out the zpool metadata. Then a reboot and I was able to dd write to the disk.
 

yaume

Dabbler
Joined
Jun 14, 2013
Messages
36
thanks,

Well, now i can't create a volume.
When i try "quick wipe", i ve the message "wipe successfull"
But if i choose "wipe with all to zero" i've an error.
when i try to create a volume i've an error.

i think freenas don't like that i've already use these disks before, and i've remove it from freenas and recreate.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Did you reboot? It's important that you reboot so FreeNAS doesn't protect the disks anymore.
 

yaume

Dabbler
Joined
Jun 14, 2013
Messages
36
Ok i've do a lot of things, so i could be clear now.
I've done what you do => quick wipe disk and reboot and it's working full.
What i don't understand is that it's not working if i do a full wipe disk with zero (or random).

Thanks for your solution.
 

survive

Behold the Wumpus
Moderator
Joined
May 28, 2011
Messages
875
Hi yaume,

How long are you waiting for the full wipe to complete?

Keep in mind a full wipe (especially with random) is going to take a (very) long time depending on how big the drives are!

-Will
 

yaume

Dabbler
Joined
Jun 14, 2013
Messages
36
I've got 3 drives of 1TB.

Yes, i understand that it's too long, but what i can see, the % bar stopped at 14% (or other value ,it's depend of the HDD) and says "error can't wipe disk" (something like that) and in the console i see something like GEOM.... and "operation not permitted"
I'm sorry i've not keep the message and now it's working with cyberjock's solution.

What i can say to you is that i've mounted these disks with freenas in UFS format. and unmounted, reset factory in freenas, and try to mount again the HDD in my new freenas (after the reset factory), that's the beginning of the problem.

I'm sorry, i'm very rooky with freenas.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Honestly, if you are more familiar with Windows, i'd use a windows program to wipe the disks. In FreeNAS, you seem to have a good grasp of it(the errors aren't helping you learn anything though). You can "monitor" the write and reads on the disk devices with the command gstat.
 
Status
Not open for further replies.
Top