D
D
denism3002018-08-02 19:23:29
FreeBSD
denism300, 2018-08-02 19:23:29

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

the following information in the logs:
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'

gpart output:
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)

zpool list output:
xigmanas: ~# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
zroot 460G 430M 460G - - 0% 0% 1.00x ONLINE -

If possible, explain intelligibly how to do it to make it work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2018-08-02
@denism300

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'

You already have a zpool named zroot on /dev/ada0 . You won't be able to create another one. Use an existing zroot

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question