Sycobob
Dabbler
- Joined
- Jul 23, 2018
- Messages
- 19
I'm setting up a new NAS and noticed something strange. It appears that any time I detach a volume it becomes unusable. Attempting to create a new volume results in
I've read that FreeNAS won't let you wipe a partitioned drive, which makes some sense. But there's no way to do that without command line chicanery.
So far the only way I've found to actually use the disk at this point is to
then I can reboot and wipe.
I'm currently reading the manual and learning to setup and administer the system, so luckily no data is at risk at the moment, but it has me confused and worried.
Is this some sort of known issue? Am I doing something wrong?
Unable to GPT format the disk "ada1": gpart: geom 'ada1': File exists
and wiping it from Storage > View Disks yields Failed to wipe ada1p1: dd: /dev/ada1p1: Operation not permitted
I've read that FreeNAS won't let you wipe a partitioned drive, which makes some sense. But there's no way to do that without command line chicanery.
gpart show ada1
shows a freenas-swap and a freenas-zfs partition. I can use gpart delete -i 2 ada1
to kill the zfs partition, but attempting gpart delete -i 1 ada1
fails with gpart: Device busy
. This happens repeatably whether or not I use the 'mark the disks as new' flag when detaching the volume.So far the only way I've found to actually use the disk at this point is to
Code:
sysctl kern.geom.debugflags=0x10 dd if=/dev/zero of=/dev/ada1 bs=512 count=1000 dd if=/dev/zero of=/dev/ada1 bs=512 count=1000 oseek=7814036168
then I can reboot and wipe.
I'm currently reading the manual and learning to setup and administer the system, so luckily no data is at risk at the moment, but it has me confused and worried.
Is this some sort of known issue? Am I doing something wrong?