OpenVZ Forum


Home » General » Support » OpenVZ + Reiserfs (Kernel?)
OpenVZ + Reiserfs [message #47680] Fri, 24 August 2012 21:26 Go to next message
FilipeCifali is currently offline  FilipeCifali
Messages: 11
Registered: August 2012
Location: Porto Alegre
Junior Member

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 #47682 is a reply to message #47680] Sat, 25 August 2012 04:47 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
You need a ReiserFS kernel module. I believe you'll find one in elrepo (kmod-reiserfs) repository.

You might need to rebuild it for the OpenVZ kernel, I can't say... Neither do I have any experience in using ReiserFS with OpenVZ. Please report back with your experiences.
Re: OpenVZ + Reiserfs [message #47683 is a reply to message #47680] Sat, 25 August 2012 13:27 Go to previous messageGo to next message
FilipeCifali is currently offline  FilipeCifali
Messages: 11
Registered: August 2012
Location: Porto Alegre
Junior Member

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 #47684 is a reply to message #47680] Sat, 25 August 2012 16:59 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
If your hardware node (CT0) runs CentOS and you have ReiserFS kernel module inserted & working in the OpenVZ RHEL kernel, than that's all you need, as far as the kernel goes.

I don't think recompiling the kernel with ReiserFS included (as opposed to being inserted as a module) will make any difference.

Also, trying to insert the module from within your Gentoo CT1 can't possibly work, as OpenVZ doesn't work like that. If you have the module inserted from within CT0, than it's inserted for all the CTs. All modules / kernel changes are done on CT0 and are seen from all virtual machines, as long as OpenVZ itself supports the functionality (not all features/devices are virtualized).

How are you trying to use ReiserFS from within the CT1? What errors do you see?
Re: OpenVZ + Reiserfs [message #47685 is a reply to message #47684] Sat, 25 August 2012 21:04 Go to previous messageGo to next message
FilipeCifali is currently offline  FilipeCifali
Messages: 11
Registered: August 2012
Location: Porto Alegre
Junior Member

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 #47695 is a reply to message #47680] Mon, 27 August 2012 18:21 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Yes, but what are you trying to mount? Are you following any of these: wiki.openvz.org/Mounting_filesystems, did you give your container access to a pyhsical block device, or...?

[Updated on: Mon, 27 August 2012 18:23]

Report message to a moderator

Re: OpenVZ + Reiserfs [message #47696 is a reply to message #47680] Mon, 27 August 2012 19:19 Go to previous messageGo to next message
FilipeCifali is currently offline  FilipeCifali
Messages: 11
Registered: August 2012
Location: Porto Alegre
Junior Member

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 Go to previous messageGo to next message
Ales is currently offline  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 Go to previous messageGo to next message
FilipeCifali is currently offline  FilipeCifali
Messages: 11
Registered: August 2012
Location: Porto Alegre
Junior Member

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! Smile
Re: OpenVZ + Reiserfs [message #47738 is a reply to message #47680] Mon, 03 September 2012 16:05 Go to previous messageGo to next message
FilipeCifali is currently offline  FilipeCifali
Messages: 11
Registered: August 2012
Location: Porto Alegre
Junior Member

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 Go to previous message
FilipeCifali is currently offline  FilipeCifali
Messages: 11
Registered: August 2012
Location: Porto Alegre
Junior Member

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...
Previous Topic: Issue updating Kernel to 042stab059.7
Next Topic: vzctl VMID
Goto Forum:
  


Current Time: Wed Apr 24 21:25:04 GMT 2024

Total time taken to generate the page: 0.01341 seconds