gpart: arg0 'ada0': Invalid argument

ttslt

Cadet
Joined
Jul 20, 2019
Messages
5
I am trying to prep a 1TB drive so I can mirror a test striped single 1TB drive. This box is not a production box, it is a learning box.
Currently I have physically disconnected all my important drives, with only the SSD boot drive connected besides the recalcitrant 1TB.

I am attempting to follow these pages to mirror a single striped drive:
http://www.plocmstart.com/index.php/2017/04/08/converting-a-freenas-stripe-to-mirrored-drive/
https://blog.fosketts.net/2017/12/11/add-mirror-existing-zfs-drive/

I cannot get past the gpart section:
gpart destroy -F /dev/<yournewdrive>
returns "gpart: arg0 'ada0': Invalid argument"

gpart list
only returns the boot drive partitions,

I have been down several rabbit holes trawling forums about this as a "label" issue on the old 1 TB drive I am using.

I've tried "dd" and successfully run it to overwrite the beginning and end of the drive, to no avail.
dd if=/dev/zero of=/dev/ada0 count=2048
dd if=/dev/zero of=/dev/ada0 seek=1953523140

gmirror fails (a la https://forums.freebsd.org/threads/...ng-the-gpt-label-but-the-gpt-partition.26702/)

(I've change cables after reboots and so forth after the dd runs, but the drive remains named ada0)

I even created a test pool and added this new drive to it, and then removed it. Did not help at all.

I am at a loss at the moment.

OS Version: FreeNAS-11.2-U5 (Build Date: Jun 24, 2019 18:41)
Processor: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz (8 cores) RAM: 32 GiB
Asus TS700 8Bay box with two NICs currently on one plugged in with a router/modem static DHCP lease
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080

ttslt

Cadet
Joined
Jul 20, 2019
Messages
5
thanks for that!! I'll check it out

Also had a friend come over and after mucking around we skipped to the next step using

gpart create ...

success....

apparently you cannot destroy something which is not there...
 
Top