Is it possible to use zpool create one a full disk, whilst specifying the main partition size? My main use case would be to setup the partitions slightly smaller than the entire disk, so that I know any disks of the "same" size that I happen to purchase as replacements later on will be large enough to hold the ZFS partition. Eg, create a main 998Gb partition on 1TB hard disks.
I set a couple of disk up this way manually, formatting with diskutil, and it worked ok but I wasn't convinced that I'd created the partitions correctly. I'd rather have them structured/labelled as per the zpool create command.
I suppose the easier way is just to get the formatting/labelling correct via diskutil - any advice?
For an 8GB memory stick I was using:
- Code: Select all
diskutil partitiondisk /dev/disk6 2 GPT ZFS ZFS 7.8G HFS+ Second 0.2G
But I don't know how I should specify the 2nd partition. I don't know where the name (something like 6A945A3B-1DD2-11B2-99A6-080020736631) comes from, or what format it should be, or how to make it occupy the remaining disk space.
Thanks.