Home » General » Support » Ubuntu VE duplicate mounts /var/run /var/lock
Ubuntu VE duplicate mounts /var/run /var/lock [message #32620] |
Tue, 19 August 2008 21:02 |
nixgeek
Messages: 5 Registered: August 2008
|
Junior Member |
|
|
Hi,
I have an issue {or I think it is} when I am in a VE
I notice that the following mount points are mounted 2
and sometimes 3 times...
/var/run
/var/lock
root@mysqlvz01:/# df -h
Filesystem Size Used Avail Use% Mounted on
simfs 4.0G 470M 3.6G 12% /
tmpfs 1.9G 32K 1.9G 1% /var/run
tmpfs 1.9G 0 1.9G 0% /var/lock
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 32K 1.9G 1% /var/run
tmpfs 1.9G 0 1.9G 0% /var/lock
tmpfs 1.9G 32K 1.9G 1% /var/run
tmpfs 1.9G 0 1.9G 0% /var/lock
tmpfs 1.9G 32K 1.9G 1% /var/run
tmpfs 1.9G 0 1.9G 0% /var/lock
tmpfs 1.9G 32K 1.9G 1% /var/run
tmpfs 1.9G 0 1.9G 0% /var/lock
Is this normal?
Current Setup:
Server: Ubuntu 8.04
Vzkernel: Linux vmserver 2.6.24-19-openvz #1 SMP Sat Jul 12 01:13:47 UTC 2008 x86_64 GNU/Linux
vzctl: 3.0.22
VE: ubuntu-8.04-amd64-minimal
Hardware:
CPU: Intel core 2 duo e6400
Mem: 4GB
Nic: Intel Pro 1000 ethernet adapter
[Updated on: Tue, 19 August 2008 21:05] Report message to a moderator
|
|
|
Re: Ubuntu VE duplicate mounts /var/run /var/lock [message #32631 is a reply to message #32620] |
Wed, 20 August 2008 22:58 |
piavlo
Messages: 159 Registered: January 2007
|
Senior Member |
|
|
Well i'm not using ubuntu in openvz, but out of curiosity i took a look at normal desktop ubuntu installation
# fgrep /var/run /proc/mounts
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
# fgrep /var/lock /proc/mounts
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
#
So this looks like unrelated to openvz ubuntu bug probably
in init.d scripts
# egrep -e 'do.*/var/(lock|run)[[:space:]]' /etc/init.d/*
/etc/init.d/mountkernfs.sh: domount tmpfs "" /var/run -omode=0755,nodev,noexec,nosuid
/etc/init.d/mountkernfs.sh: domount tmpfs "" /var/lock -omode=1777,nodev,noexec,nosuid
/etc/init.d/mtab.sh: domtab tmpfs /var/run "varrun" -omode=0755,nodev,noexec,nosuid
/etc/init.d/mtab.sh: domtab tmpfs /var/lock "varlock" -omode=1777,nodev,noexec,nosuid
#
But # fgrep /var/lock /etc/mtab
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
#
[Updated on: Wed, 20 August 2008 23:03] Report message to a moderator
|
|
|
Re: Ubuntu VE duplicate mounts /var/run /var/lock [message #32633 is a reply to message #32631] |
Thu, 21 August 2008 02:44 |
nixgeek
Messages: 5 Registered: August 2008
|
Junior Member |
|
|
So any suggestions on how this can be resolved.
Here is the output from a VE.
root@mysqlvz01[/email]:/# egrep -e 'do.*/var/(lock|run)[[:space:]]' /etc/init.d/*
/etc/init.d/mountkernfs.sh: domount tmpfs "" /var/run -omode=0755,nodev,noexec,nosuid
/etc/init.d/mountkernfs.sh: domount tmpfs "" /var/lock -omode=1777,nodev,noexec,nosuid
/etc/init.d/mtab.sh: domtab tmpfs /var/run "varrun" -omode=0755,nodev,noexec,nosuid
/etc/init.d/mtab.sh: domtab tmpfs /var/lock "varlock" -omode=1777,nodev,noexec,nosuid
root@mysqlvz01:/# fgrep /var/lock /etc/mtab
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
root@mysqlvz01:/# egrep -e 'do.*/var/(lock|run)[[:space:]]' /etc/init.d/*
/etc/init.d/mountkernfs.sh: domount tmpfs "" /var/run -omode=0755,nodev,noexec,nosuid
/etc/init.d/mountkernfs.sh: domount tmpfs "" /var/lock -omode=1777,nodev,noexec,nosuid
/etc/init.d/mtab.sh: domtab tmpfs /var/run "varrun" -omode=0755,nodev,noexec,nosuid
/etc/init.d/mtab.sh: domtab tmpfs /var/lock "varlock" -omode=1777,nodev,noexec,nosuid
root@mysqlvz01:/# fgrep /var/run /etc/mtab
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec,relatime 0 0
===========================================================
df -h output
Filesystem Size Used Avail Use% Mounted on
simfs 4.0G 470M 3.6G 12% /
tmpfs 1.9G 32K 1.9G 1% /var/run
tmpfs 1.9G 0 1.9G 0% /var/lock
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 32K 1.9G 1% /var/run
tmpfs 1.9G 0 1.9G 0% /var/lock
tmpfs 1.9G 32K 1.9G 1% /var/run
tmpfs 1.9G 0 1.9G 0% /var/lock
tmpfs 1.9G 32K 1.9G 1% /var/run
tmpfs 1.9G 0 1.9G 0% /var/lock
tmpfs 1.9G 32K 1.9G 1% /var/run
tmpfs 1.9G 0 1.9G 0% /var/lock
Could this potentially be a problem?
[Updated on: Thu, 21 August 2008 02:49] Report message to a moderator
|
|
|
|
Re: Ubuntu VE duplicate mounts /var/run /var/lock [message #41310 is a reply to message #32620] |
Wed, 29 December 2010 15:23 |
darruda
Messages: 2 Registered: December 2010 Location: Malta
|
Junior Member |
|
|
I'm this having the same issue.
I would discard the option of an issue with the ubuntu template since I have 2 other VPS in the same server, based on the same template, without this issue.
root@machine:~# uname -a
Linux xxxxxxx.com 2.6.24-24-openvz #1 SMP Wed Apr 15 17:40:08 UTC 2009 x86_64 GNU/Linux
root@machine:~# df -h
Filesystem Size Used Avail Use% Mounted on
simfs 418G 245G 132G 66% /
tmpfs 7.9G 36K 7.9G 1% /var/run
tmpfs 7.9G 0 7.9G 0% /var/lock
simfs 418G 245G 132G 66% /dev/.static/dev
udev 7.9G 0 7.9G 0% /dev
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 7.9G 36K 7.9G 1% /var/run
tmpfs 7.9G 0 7.9G 0% /var/lock
tmpfs 7.9G 36K 7.9G 1% /var/run
tmpfs 7.9G 0 7.9G 0% /var/lock
tmpfs 7.9G 36K 7.9G 1% /var/run
tmpfs 7.9G 0 7.9G 0% /var/lock
root@machine:~# mount
simfs on / type simfs (rw,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,noexec)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,noexec)
simfs on /dev/.static/dev type simfs (rw,relatime)
udev on /dev type tmpfs (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,noexec,relatime)
Any ideas how to sort this out? This is a production environment so I can not be experimenting this with a live server...
Many thanks!
Dário
|
|
|
|
Re: Ubuntu VE duplicate mounts /var/run /var/lock [message #41341 is a reply to message #41340] |
Mon, 03 January 2011 14:30 |
darruda
Messages: 2 Registered: December 2010 Location: Malta
|
Junior Member |
|
|
Hi all.
@TheStig - Thanks for your reply but as I mentioned, the issue is not likely to be related with the template since I have more than 10 VPS created with the same template and only 2 have this problem.
I spend some time trying to find out what was the difference between the VPSs and eventually managed to sort it out:
The only point in common between the 2 VPS showing duplicated mounts was that both had an entry in /etc/fstab with a nfs mount. More, this location was not available anymore as the machine had been removed months ago.
Just removed this entries from the fstab, restarted the VPS and... voilá! No multiple mounts for /var/lock or /var/run.
Hope this helps.
|
|
|
Re: Ubuntu VE duplicate mounts /var/run /var/lock [message #41356 is a reply to message #32620] |
Fri, 07 January 2011 12:34 |
TheStig
Messages: 94 Registered: December 2008
|
Member |
|
|
that's quite funny - i never ever use nfs
i think, at least on my hardware the issue located somewhere here:
on HN
joseph@av-3:~$ ls -al /vz/private/104/etc/mtab
lrwxrwxrwx 1 root root 12 2011-01-04 14:32 /vz/private/104/etc/mtab -> /proc/mounts
joseph@av-3:~$ ls -al /vz/private/103/etc/mtab
lrwxrwxrwx 1 root root 12 2010-01-25 12:51 /vz/private/103/etc/mtab -> /proc/mounts
joseph@av-3:~$ cat /proc/mounts |egrep "lock|run"
tmpfs /var/lib/vz/root/101/var/run tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
tmpfs /var/lib/vz/root/101/var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lib/vz/root/101/var/run tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
tmpfs /var/lib/vz/root/101/var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lib/vz/root/102/var/run tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
tmpfs /var/lib/vz/root/102/var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lib/vz/root/102/var/run tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
tmpfs /var/lib/vz/root/102/var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lib/vz/root/103/var/run tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
tmpfs /var/lib/vz/root/103/var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lib/vz/root/103/var/run tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
tmpfs /var/lib/vz/root/103/var/lock tmpfs rw,nosuid,nodev,noexec 0 0
joseph@av-3:~$ uname -a
Linux av-3.VWX.YZ 2.6.26-2-openvz-amd64 #1 SMP Thu Nov 5 03:06:00 UTC 2009 x86_64 GNU/Linux
101 - 103 are Ubuntu 8.04 templates created via debootstrap, 104 is running a RHEL4-VPS that i created out of a former physical machine - thats why i guess, that at least in my case, it has something to do with ubuntu/debian-specific init.d's or OSTEMPLATE-scripts.
Bus as I believe the issue to be of an entirely cosmetic nature, I never bothered to try and fix it.
[Updated on: Fri, 07 January 2011 12:35] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Thu Oct 17 19:14:47 GMT 2024
Total time taken to generate the page: 0.05277 seconds
|