Trying to format volume, but not succeeding (diskutil bug)

This forum is to find answers to problems you may be having with ZEVO Community Edition.

Moderators: jhartley, MSR734, nola

Trying to format volume, but not succeeding (diskutil bug)

Post by moxie » Fri Sep 14, 2012 11:14 pm

Is there any reason why I cannot format volume (any of these fails):

Code: Select all
diskutil eraseVolume ZFS %noformat% /dev/disk0s4
Error with erase: Name invalid (-69873)

diskutil eraseVolume ZFS ZPOOL /dev/disk0s4
Formatting is not supported by: ZFS zfs ZFS

sudo zpool create zfs_pool /dev/disk0s4
diskutil eraseVolume failed, exit status 1


Other than that, if it is not speed handicapped like maczfs's 20mb/s write speed, I will be supper happy with it!
moxie Offline


 
Posts: 1
Joined: Fri Sep 14, 2012 9:45 pm

diskutil eraseVolume

Post by grahamperrin » Fri Sep 14, 2012 11:39 pm

diskutil eraseVolume ZFS %noformat% /dev/disk0s4


Command:

Code: Select all
diskutil listFilesystems


ZFS is not amongst the personalities.

diskutil eraseVolume ZFS ZPOOL /dev/disk0s4


Closer.

Try matching uppercase, lowercase etc. to the personalities listed by diskutil.

If there's white space, use quotation marks … "… …" …
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Trying to format volume, but not succeeding

Post by dbrady » Sat Sep 15, 2012 12:29 am

In ZEVO, the GPT labeling is built-in to the zpool create command, so the separate step to create a "ZFS" partition is not necessary.

If you wanted to use diskutil(8), the syntax is:

whole disk:
Code: Select all
$ diskutil eraseDisk "ZFS Pool" %noformat% disk5


existing partition (GPT):
Code: Select all
$ diskutil eraseVolume "ZFS Pool" %noformat% disk3s2
dbrady Offline


 
Posts: 67
Joined: Wed Sep 12, 2012 12:43 am

Re: Trying to format volume, but not succeeding

Post by jdwhite » Sat Sep 15, 2012 8:37 am

moxie wrote:Other than that, if it is not speed handicapped like maczfs's 20mb/s write speed, I will be supper happy with it!

According to 'zpool iostat' I was able to push 37Mi/s with a RAID-Z1 set over FW800.

-Jason
jdwhite Offline


 
Posts: 1
Joined: Fri Sep 14, 2012 9:50 pm

Re: Trying to format volume, but not succeeding

Post by satadru » Mon Sep 17, 2012 4:55 pm

I can confirm there's a problem with using diskutil to format volumes with the current version.


Code: Select all
sudo diskutil eraseVolume "ZFS Pool" %noformat% /Volumes/temp
Error with erase: Name invalid (-69873)

sudo diskutil unmount /Volumes/temp
Volume temp on disk0s4 unmounted

sudo diskutil eraseVolume "ZFS Pool" %noformat% /dev/disk0s4
Error with erase: Name invalid (-69873)


(This is on a partition on the boot disk that has been reformatted as exFAT)
satadru Offline


 
Posts: 20
Joined: Fri Sep 14, 2012 10:07 pm

Re: Trying to format volume, but not succeeding

Post by si-ghan-bi » Mon Sep 17, 2012 5:43 pm

37 MB/s over FW800 is pretty bad, RAID Z should not slow down that much.
si-ghan-bi Offline


 
Posts: 145
Joined: Sat Sep 15, 2012 5:55 am

Re: Trying to format volume, but not succeeding

Post by jesse » Mon Sep 17, 2012 6:17 pm

i'm having the same errors as satadru creating a zpool on a volume. i can't try the whole disk as i only have the single ssd in my laptop.

incidentally, my two-disk mirror is working on my desktop (inherited setup that was previously running with may 9 beta), but it has had two kernel panics since i installed the new zevo this morning. not sure if it's related, so i want to see if zevo behaves any differently on my laptop.
jesse Offline


 
Posts: 16
Joined: Fri Sep 14, 2012 11:59 pm

Re: Trying to format volume, but not succeeding

Post by Asuranceturix » Mon Sep 17, 2012 7:23 pm

I have exactly the same problem.
Asuranceturix Offline


 
Posts: 2
Joined: Mon Sep 17, 2012 8:32 am

Re: Trying to format volume, but not succeeding

Post by donmontalvo » Mon Sep 17, 2012 9:20 pm

Asuranceturix wrote:I have exactly the same problem.


Ya...I'm about to give up. :(

Guys, how about a QuickStart or how-to with proper steps for:

1. Formatting a disk.
2. Creating a volume on disk.

Don
donmontalvo Offline


 
Posts: 1
Joined: Mon Sep 17, 2012 10:01 am

Re: Trying to format volume, but not succeeding

Post by Asuranceturix » Tue Sep 18, 2012 4:29 am

From a post by Smolk on other thread, it appears that the only valid volume name is ZFS. This did work for me:

Code: Select all
sudo diskutil eraseVolume "ZFS Pool" ZFS rdisk5s7


This actually creates a one-volume pool with name ZFS that is automatically mounted on "/Volumes/ZFS". If you do this with several partitions, diskutil will complain of the mountpoint being already used but will successfully format them. Then you can destroy the mounted pool and use all the volumes you have formatted for multi-volume pools without the "exit status 1" error.
Asuranceturix Offline


 
Posts: 2
Joined: Mon Sep 17, 2012 8:32 am

Next

Return to Troubleshooting

Who is online

Users browsing this forum: hlxpgxmum and 0 guests

cron