Answer the question
In order to leave comments, you need to log in
How to create pool zfs?
There is a machine on which there are 2 disks. When installing XigmaNAS, I merged the disks into ZFS.
Further, in the webmord, I imported disks with pre-installed ZFS, created a virtual device of the mirror type. However, when adding a pool, I encounter an error (mainpool is the name of the pool):
cannot open 'mainpool': no such pool
cannot open 'cannot open 'mainpool': no such pool': invalid character ''' in pool name
root: zpool create -m '/mnt/mainpool' 'mainpool' mirror /dev/ada0 /dev/ada1
root: invalid vdev specification use '-f' to override the following errors: /dev/ada0 is part of active pool ' zroot' /dev/ada1 is part of active pool 'zroot'
xigmanas: ~# gpart show
=> 40 976773088 ada0 GPT (466G)
40 409600 1 efi (200M)
409640 1024 2 freebsd-boot (512K)
410664 7128 - free - (3.5M)
417792 8388608 3 freebsd-swap (417792 8388608 3 freebsd-swap)
8806400 967966720 4 freebsd-zfs (462G) 976773120 8 -
free - (4.0K)
=> 40 M) 417792 8388608 3 freebsd-swap (4.0G) 8806400 967966720 4 freebsd-zfs (462G)
976773120 8 - free - (4.0K)
xigmanas: ~# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
zroot 460G 430M 460G - - 0% 0% 1.00x ONLINE -
Answer the question
In order to leave comments, you need to log in
root: zpool create -m '/mnt/mainpool' 'mainpool' mirror /dev/ada0 /dev/ada1
root: invalid vdev specification use '-f' to override the following errors: /dev/ada0 is part of active pool 'zroot' /dev/ada1 is part of active pool 'zroot'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question