OpenVZ Forum


Home » General » Support » a unionfs-ed ve hangs at stopping it
a unionfs-ed ve hangs at stopping it [message #4215] Mon, 03 July 2006 06:52 Go to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

i'm trying a ve with <vpsid> putting on a unionfs template_dir:


+ /vz/template/debian-3.1-i386-minimal/ readonly (ro)
+ /vz/private_unionfs/<vpsid>/ read/write (rw)

= /vz/private/<vpsid>/

starting and useing ... all fine, but when i will stop the ve it,
the kernel pull this messages out:

//---

kern.err: current 12466 (vzctl), VE 0, time 1118.077867
kern.warn: [<e0aaae70>] vzquota_det_qmblk_recalc+0x223/0x259 [vzdquota]
kern.warn: [<e0aab038>] vzquota_inode_data+0x55/0x83 [vzdquota]
kern.warn: [<e0aaaf9a>] vzquota_inode_init_call+0x1f/0x63 [vzdquota]
kern.warn: [<e0dba802>] unionfs_put_inode+0xec/0xfa [unionfs]
kern.warn: [<e0dba810>] unionfs_delete_inode+0x0/0xd3 [unionfs]
kern.warn: [<e0aac9ee>] vzquota_initialize+0xf/0x15 [vzdquota]
kern.warn: [<c017a6a5>] generic_delete_inode+0xd9/0x113
kern.warn: [<c017a894>] iput+0x62/0x7f
kern.warn: [<e0da4e44>] unionfs_d_iput+0x5c/0xad [unionfs]
kern.warn: [<c01775a0>] dentry_iput+0x64/0x9a
kern.warn: [<c0177b0a>] prune_dcache+0x1ba/0x231
kern.warn: [<c0177dbb>] shrink_dcache_parent+0x25/0x2c
kern.warn: [<c0166d48>] generic_shutdown_super+0x27/0x12f
kern.warn: [<c01675d9>] kill_anon_super+0x41/0x57
kern.warn: [<c0166c7d>] deactivate_super+0x52/0x95
kern.warn: [<c017cb36>] sys_umount+0x3f/0x8e
kern.warn: [<c017297e>] vfs_ioctl+0x65/0x1c3
kern.warn: [<c0172b21>] sys_ioctl+0x45/0x6c
kern.warn: [<c0102ddd>] syscall_call+0x7/0xb

\\---

After some testings, it seem the the "umount" process hangs and the ve0 slow down.
After a "timeout"? when the vzdquota process is over -> the ve stoppend and the ve0 works fine!

system: debian-3.1
kernel: (own build) 2.6.16-020test14.4 and unionfs-20060423-1600
with the openvz-patch from http://download.openvz.org/contrib/kernel-patches/unionfs-20 060423-1600-openvz.patch

Any ideas whats going wrong ?

Regards,
Thorsten
Re: a unionfs-ed ve hangs at stopping it [message #4221 is a reply to message #4215] Mon, 03 July 2006 08:24 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

1. you should change it a bit:
it should go not this way:
+ /vz/template/debian-3.1-i386-minimal/ readonly (ro)
+ /vz/private_unionfs/<vpsid>/ read/write (rw)

= /vz/private/<vpsid>/

but:
+ /vz/template/debian-3.1-i386-minimal/ readonly (ro)
+ /vz/private/<vpsid>/ read/write (rw)

= /vz/root/<vpsid>/

in this case vzquota will be calculated on real ext3 file system in /vz/private, not on unionfs which is virtual file system.

2. these messages by itself are harmless. So I suppose a real problem in your case is some "hangs". Can you describe it more? Can you take calltraces using AltSysRq-P and AltSySRq-T keys?




http://static.openvz.org/userbars/openvz-developer.png
Re: a unionfs-ed ve hangs at stopping it [message #38466 is a reply to message #4221] Tue, 22 December 2009 12:15 Go to previous message
sakib is currently offline  sakib
Messages: 2
Registered: December 2009
Junior Member
dev wrote on Mon, 03 July 2006 11:24
1. you should + /vz/template/debian-3.1-i386-minimal/ readonly (ro)
+ /vz/private/<vpsid>/ read/write (rw)

= /vz/root/<vpsid>/

in this case vzquota will be calculated on real ext3 file system in /vz/private, not on unionfs which is virtual file system.




In this case VE <vpsid> refuses to start, cause /vz/root/<vpsid> is a mountpoint and being unmounted before start. So /vz/private/<vpsid> leaves empty & vzctl start <vpsid> fails to start init.

system: gentoo-10.0
kernel: 2.6.18-028stab056 + aufs patch

I'm using OpenVZ with aufs ( alternative, compatible with unionfs layered filesystem: http://aufs.sourceforge.net/ ).

vzquota stats don't change during VE work, and being recalculated for /vz/privete/<vpsid> only when VE starts.
So my VEs always bursting from limits i'd like to keep them in.

Are there any suggestions about using vzquota with layered filesystems? (except vzfs)
Previous Topic: sipXecs in CT?
Next Topic: how to separate this server for 3 VPS's
Goto Forum:
  


Current Time: Wed Jul 17 09:13:39 GMT 2024

Total time taken to generate the page: 0.02832 seconds