View previous topic :: View next topic |
Author |
Message |
Bail0ng n00b
Joined: 29 Aug 2013 Posts: 18
|
Posted: Wed Dec 18, 2013 12:07 pm Post subject: fun with zfs |
|
|
Code: |
zpool create -o ashift=12 -O normalization=formD -m none kvm mirror /dev/sdg /dev/sdh
zfs create -V 50G kvm/gentoo-base
|
breaks kvm... |
|
Back to top |
|
|
mounty1 l33t
Joined: 06 Jul 2006 Posts: 936 Location: Queensland
|
Posted: Tue Feb 11, 2014 10:55 pm Post subject: Re: fun with zfs |
|
|
Bail0ng wrote: | Code: |
zpool create -o ashift=12 -O normalization=formD -m none kvm mirror /dev/sdg /dev/sdh
zfs create -V 50G kvm/gentoo-base
|
breaks kvm... | In what way ? On what OS ? If Gentoo+FUSE, well, get yourself onto OmniOS instead if you want proper ZFS support with timely integration of upstream fixes. http://omnios.omniti.com _________________ Michael Mounteney |
|
Back to top |
|
|
Bail0ng n00b
Joined: 29 Aug 2013 Posts: 18
|
Posted: Wed Feb 12, 2014 8:13 am Post subject: |
|
|
It's zfs on linux, and creating a zvol with the name kvm/gentoo-base creates
Code: | /dev/kvm/gentoo-base |
but kvm creates itself a /dev/kvm device node, which conflicts with the zvol... So it's a simple naming issue.... |
|
Back to top |
|
|
mounty1 l33t
Joined: 06 Jul 2006 Posts: 936 Location: Queensland
|
Posted: Wed Feb 12, 2014 9:38 pm Post subject: |
|
|
Bail0ng wrote: | but kvm creates itself a /dev/kvm device node, which conflicts with the zvol... So it's a simple naming issue.... |
Ah, fair point. On OmniOS, ZFS volumes are under /dev/zvol/, presumably to avoid the problem you describe. _________________ Michael Mounteney |
|
Back to top |
|
|
Bail0ng n00b
Joined: 29 Aug 2013 Posts: 18
|
Posted: Thu Feb 13, 2014 8:24 am Post subject: |
|
|
Well, I don't understand what devices in /dev are created by zfs and why, however I have a pool called rpool with different zvols and it looks like that:
Code: |
bailong@hetzner ~ $ ls -lsa /dev/
total 13
0 drwxr-xr-x 17 root root 4060 Feb 7 14:02 .
9 drwxr-xr-x 20 root root 21 Feb 6 18:13 ..
0 drwxr-xr-x 2 root root 220 Feb 7 14:02 rpool
|
In this directory I have the zvols:
Code: |
bailong@hetzner ~ $ ls -lsa /dev/rpool/
total 0
0 drwxr-xr-x 2 root root 220 Feb 7 14:02 .
0 drwxr-xr-x 17 root root 4060 Feb 7 14:02 ..
0 lrwxrwxrwx 1 root root 7 Feb 7 14:07 mail -> ../zd80
0 lrwxrwxrwx 1 root root 7 Feb 7 14:07 mail_swap -> ../zd96
|
But I also have /dev/zvol:
Code: |
bailong@hetzner ~ $ ls -lsa /dev/zvol/rpool/
total 0
0 drwxr-xr-x 2 root root 220 Feb 7 14:02 .
0 drwxr-xr-x 3 root root 60 Feb 6 18:13 ..
0 lrwxrwxrwx 1 root root 10 Feb 7 14:07 mail -> ../../zd80
0 lrwxrwxrwx 1 root root 10 Feb 7 14:07 mail_swap -> ../../zd96
|
|
|
Back to top |
|
|
mounty1 l33t
Joined: 06 Jul 2006 Posts: 936 Location: Queensland
|
Posted: Fri Feb 14, 2014 12:38 am Post subject: Nasty |
|
|
Looks like a very silly bug in the implementation. Regrettably, the history of GNU/Linux is that what might seem like a show-stopping bug to one user can take weeks to be noticed and fixed upstream. Presumably, the fact that you are still participating in this thread shows that nearly two months after your initial post, it's still unfixed. _________________ Michael Mounteney |
|
Back to top |
|
|
Bail0ng n00b
Joined: 29 Aug 2013 Posts: 18
|
Posted: Fri Feb 14, 2014 8:51 am Post subject: |
|
|
Well, I don't know if this is a bug, however this forum is no bug reporting tool so even if it is a bug I'd have to report it on the corresponding bugtracker. It's no show-stopping problem for me, using a different name for my zpool is an easy fix and I posted it here in case other people experience the same issue. |
|
Back to top |
|
|
ashley12 n00b
Joined: 10 Apr 2014 Posts: 1
|
Posted: Thu Apr 10, 2014 5:57 pm Post subject: why? |
|
|
how could i know that? On what OS ? |
|
Back to top |
|
|
|