Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fun with zfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Bail0ng
n00b
n00b


Joined: 29 Aug 2013
Posts: 18

PostPosted: Wed Dec 18, 2013 12:07 pm    Post subject: fun with zfs Reply with quote

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
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 934
Location: Queensland

PostPosted: Tue Feb 11, 2014 10:55 pm    Post subject: Re: fun with zfs Reply with quote

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
View user's profile Send private message
Bail0ng
n00b
n00b


Joined: 29 Aug 2013
Posts: 18

PostPosted: Wed Feb 12, 2014 8:13 am    Post subject: Reply with quote

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
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 934
Location: Queensland

PostPosted: Wed Feb 12, 2014 9:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bail0ng
n00b
n00b


Joined: 29 Aug 2013
Posts: 18

PostPosted: Thu Feb 13, 2014 8:24 am    Post subject: Reply with quote

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
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 934
Location: Queensland

PostPosted: Fri Feb 14, 2014 12:38 am    Post subject: Nasty Reply with quote

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
View user's profile Send private message
Bail0ng
n00b
n00b


Joined: 29 Aug 2013
Posts: 18

PostPosted: Fri Feb 14, 2014 8:51 am    Post subject: Reply with quote

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
View user's profile Send private message
ashley12
n00b
n00b


Joined: 10 Apr 2014
Posts: 1

PostPosted: Thu Apr 10, 2014 5:57 pm    Post subject: why? Reply with quote

how could i know that? On what OS ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum