OpenVZ + Reiserfs [message #47680] |
Fri, 24 August 2012 21:26 |
|
Sorry, I searched a little in this forum, in the wiki and in google for a "HOW TO OPENVZ KERNEL + ReiserFS" and didn't found a way to do it.
How can I add it? Since the kernel is different, I tried to download the package but it's only the utilities:
As CT0 I'm running CentOS 6.3(final) fully updated
As CT1 I'm running Gentoo Base System release 2.0.2 (not fully updated)
mount: unknown filesystem type 'reiserfs'
What's the right way to add support for reiserfs?
TY in advice!
|
|
|
|
Re: OpenVZ + Reiserfs [message #47683 is a reply to message #47680] |
Sat, 25 August 2012 13:27 |
|
TY for your reply, unfortunately, to add reiserfs support to a redhat kernel I would need to compile the kernel from source, cause in CentOS I got kmod-reiserfs and I'm able to mkfs.reiserfs and even mount it, but inside Gentoo(that only uses the kernel) he does not have support(that's why I would need to compile).
I already work w/ reiserfs both but w/o OpenVZ as another layer.
I'll try to modprobe the module, but I don't thing it's gonna work, guess I'll have to compile from source.
|
|
|
|
Re: OpenVZ + Reiserfs [message #47685 is a reply to message #47684] |
Sat, 25 August 2012 21:04 |
|
I'm just trying to mount, I can mount in CentOS (CT0) but I cannot mount in Gentoo (CT1), Gentoo can't mount saying:
mount: unknown filesystem type 'reiserfs'
But CentOS can.
|
|
|
|
Re: OpenVZ + Reiserfs [message #47696 is a reply to message #47680] |
Mon, 27 August 2012 19:19 |
|
I'm sorry I didn't provided enough information:
I've made this far:
CT0:
NODE=101
vzctl create $NODE --ostemplate gentoo-openvz-stage3-amd64-20110520
# set some variables
vzctl set $NODE --hostname mysql01-openvz.localhost.net --save
vzctl set $NODE --devnodes sdb1:rw --save
vzctl set $NODE --netif_add eth0 --save
I'm delivering a full partitioned reiserfs disk:
[root@openvz-test ~]# fdisk -l /dev/sdb
Disk /dev/sdb: 146.2 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x80d176b5
Device Boot Start End Blocks Id System
/dev/sdb1 1 17769 142729461 83 Linux
At CT1 I got this:
mysql01-openvz / # mount /dev/sdb1 /var/lib/mysql/
mount: unknown filesystem type 'reiserfs'
But at CT0:
[root@openvz-test ~]# mount /dev/sdb1 test/
[root@openvz-test ~]# mount
/dev/sdb1 on /root/test type reiserfs (rw)
|
|
|
Re: OpenVZ + Reiserfs [message #47702 is a reply to message #47680] |
Tue, 28 August 2012 17:40 |
Ales
Messages: 330 Registered: May 2009
|
Senior Member |
|
|
I was hoping you answer would provide some clue on how to solve this, but everything looks fine to me...
What I'd do at this point is:
- check on CT1 if /proc/filesystems contains reiserfs (I'm guessing that it doesn't)
- try with CT2 using CentOS 6 as OS, for better comparison.
If both CT1 and CT2 behave the same, than I'd assume it's a deeper issue and that resierfs and openvz don't play nicely together. You might have more luck catching the attention of one of the openvz developers on the mailing list for further help. They seem to frequent there more.
I'm sure you're also aware of bind mounts as an option, I'm just mentioning it here for the sake of completeness or if anyone else is reading the thread.
[Updated on: Tue, 28 August 2012 17:42] Report message to a moderator
|
|
|
Re: OpenVZ + Reiserfs [message #47704 is a reply to message #47702] |
Tue, 28 August 2012 21:52 |
|
I double check /proc/filesystem, they even show different support, tomorrow I'll try a CentOS(CT0) / CentOS(CT1) install. I like Gentoo for low resources consumption and that he compiles everything for my machine(when I set the right flags).
I'm aware of bind_mounts, but they don't really offer the solution I want. I want to deliver the disk for the user w/ hot-swap support in his system.
If even this does not happen, still, I must thank you for trying to help!
|
|
|
Re: OpenVZ + Reiserfs [message #47738 is a reply to message #47680] |
Mon, 03 September 2012 16:05 |
|
Just an update(busy last week):
I can't, even in a CentOS(CT0) / CentOS(CT3) cenario use reiserfs inside cannot be done:
openvz-test(CT0)
[root@openvz-test ~]# uname -a
Linux openvz-test.localhost.net 2.6.32-042stab059.7 #1 SMP Tue Jul 24 19:12:01 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@openvz-test ~]# cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cgroup
nodev cpuset
nodev tmpfs
nodev devtmpfs
nodev binfmt_misc
nodev debugfs
nodev securityfs
nodev sockfs
nodev usbfs
nodev pipefs
nodev anon_inodefs
nodev inotifyfs
nodev devpts
nodev ramfs
nodev pram
nodev hugetlbfs
iso9660
nodev pstore
nodev mqueue
ext4
nodev rpc_pipefs
nodev nfs
nodev nfs4
nodev delayfs
nodev simfs
mysql03-openvz(CT3)
[root@mysql03-openvz /]# cat /proc/filesystems
nodev cgroup
nodev devpts
nodev mqueue
ext4
nodev nfs
nodev nfs4
nodev delayfs
nodev devtmpfs
nodev sysfs
nodev proc
nodev tmpfs
nodev binfmt_misc
[root@mysql03-openvz /]# uname -a
Linux mysql03-openvz.localhost.net 2.6.32-042stab059.7 #1 SMP Tue Jul 24 19:12:01 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
I'll try them.
|
|
|
Re: OpenVZ + Reiserfs [message #47750 is a reply to message #47738] |
Thu, 06 September 2012 20:08 |
|
I know you guys may not share the same vision that I have, but ReiserFS is a MUST for high I/O | low files scenario that I have.
I posted there but I didn't got any answer on that yet...
|
|
|