Trying to build a new RAIDZ2 pool using existing RAID1 set from FreeNAS 7

Status
Not open for further replies.

electricd7

Explorer
Joined
Jul 16, 2012
Messages
81
Hello,

I got my new hardware in and am trying to build a new RAIDZ2 pool from 6 disks. 4 of the disks were part of a raidz1 ifs pool and the other 2 were part of a RAID1 set from freenas7. The disks that were part of the original raidz1 zfs pool are fine, but when I try to create the volume using all 6 disks, I get an error trying to use disks 4 and 5. I believe they were formatted with UFS, but I am unable to do anything with them. If I try to wipe them, I get operation not permitted. How can I make these disks "new" again so that I can use them in my new raidz2 zfs set?

ED7
 

electricd7

Explorer
Joined
Jul 16, 2012
Messages
81
Here is what the console says when I try to wipe the disk:

Jul 27 22:26:14 freenas manage.py: [storage.views:985] Could not check for disk wipe progress: [Errno 3] No such process
Jul 27 22:26:14 freenas notifier: gpart: geom '/dev/ada4': Invalid argument
Jul 27 22:26:14 freenas notifier: gpart: geom 'ada4': Operation not permitted
Jul 27 22:26:14 freenas notifier: gpart: geom '/dev/ada4': Invalid argument
Jul 27 22:26:14 freenas manage.py: [middleware.exceptions:38] [MiddlewareError: Failed to wipe ada4: dd: /dev/ada4: Operation not permitted ]
 

electricd7

Explorer
Joined
Jul 16, 2012
Messages
81
Solved it. Should have done some more searching..here is what I had to do solve it.

1. Login via SSH
2. sysctl kern.geom.debugflags=0x10
3. dd if=/dev/zero of=/dev/ada4 bs=512 count=1 && dd if=/dev/zero of=/dev/ada5 bs=512 count=1
4. Log into web interface and use "View Disks" to wipe the drives in that interface
5. Create new ZFS volume including these disks.
 
Status
Not open for further replies.
Top