Home » General » Support » Accessing the HN thermal modules from the Container
Accessing the HN thermal modules from the Container [message #36503] |
Thu, 25 June 2009 19:24 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
vidhya
Messages: 6 Registered: June 2009 Location: United States
|
Junior Member |
|
|
I am new to OpenVZ and so far I have liked it a lot. The Quick installation guide is extremely useful. I am trying to run a thermal emulation model inside a container. I have installed all the necessary packages, However, When I run the thermal emulation software which basically collects the power consumed by the components(cpu,network,disk) of the machine, I get a segmentation fault. When I run the same in the host node, I don't get any error and the software runs smoothly.
For the thermal emulation model I need to set the /dev/sda properly. However when I tried to run /dev from the container I could not get sda or hda but rather found "pts". what does that mean?
From inside the container :
[root@rajeshr-linux bin]# ./monitord -p 8367 -s localhost -d -v
Just defined sockaddr->sin_addr.in_addr=(100007f)
Segmentation fault
Is it because the container is not given access to the power modules in the host node? I have mounted three of the folders from the host node to the container using the command
mount --bind /root/Desktop/Mercury /vz/root/101/Mercury
I tried to see if the container has access and here is what I found.
Container:
[root@rajeshr-linux bin]# mount
/dev/simfs on / type simfs (rw)
/proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/root on /home type ext3 (rw,data=ordered)
/dev/root on /mercury type ext3 (rw,data=ordered)
/dev/root on /periva type ext3 (rw,data=ordered)
/dev/root on /root type ext3 (rw,data=ordered)
What does data=ordered mean here?
Host node:
[root@rajeshr-linux ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/root/Desktop on /vz/root/100/home type none (rw,bind)
/root/Desktop/mercury_org/bin on /vz/root/100/home type none (rw,bind)
/root/Desktop/mercury on /vz/root/100/home type none (rw,bind)
/root/Desktop/mercury on /vz/root/100/home type none (rw,bind)
/root/Desktop/mercury_org on /vz/root/100/home type none (rw,bind)
/root/Desktop on /vz/root/100/Desktop type none (rw,bind)
/root/Desktop/mercury_org on /vz/root/101/home type none (rw,bind)
/root/Desktop/mercury on /vz/root/101/mercury type none (rw,bind)
/root/Desktop/periva/mercury_org on /vz/root/101/periva type none (rw,bind)
/root on /vz/root/101/root type none (rw,bind)
[root@rajeshr-linux ~]# cat /proc/mounts
/dev/root / ext3 rw,data=ordered 0 0
/dev /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sda1 /boot ext3 rw,data=ordered 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
/etc/auto.misc /misc autofs rw,fd=6,pgrp=6846,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,fd=11,pgrp=6846,timeout=300,minproto=5,maxproto=5,indirec t 0 0
/vz/private/100 /vz/root/100 simfs rw 0 0
/vz/private/111 /vz/root/111 simfs rw 0 0
/proc /vz/root/100/proc proc rw 0 0
/sys /vz/root/100/sys sysfs rw 0 0
none /vz/root/100/dev/pts devpts rw 0 0
/vz/private/166 /vz/root/166 simfs rw 0 0
/proc /vz/root/111/proc proc rw 0 0
/sys /vz/root/111/sys sysfs rw 0 0
none /vz/root/100/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/proc /vz/root/166/proc proc rw 0 0
/sys /vz/root/166/sys sysfs rw 0 0
none /vz/root/166/dev/pts devpts rw 0 0
none /vz/root/111/dev/pts devpts rw 0 0
/vz/private/167 /vz/root/167 simfs rw 0 0
/proc /vz/root/167/proc proc rw 0 0
/sys /vz/root/167/sys sysfs rw 0 0
/vz/private/168 /vz/root/168 simfs rw 0 0
none /vz/root/167/dev/pts devpts rw 0 0
none /vz/root/166/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/proc /vz/root/168/proc proc rw 0 0
/sys /vz/root/168/sys sysfs rw 0 0
none /vz/root/168/dev/pts devpts rw 0 0
none /vz/root/167/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
none /vz/root/111/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
none /vz/root/168/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/100/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/100/Desktop ext3 rw,data=ordered 0 0
/vz/private/101 /vz/root/101 simfs rw 0 0
/proc /vz/root/101/proc proc rw 0 0
/sys /vz/root/101/sys sysfs rw 0 0
none /vz/root/101/dev/pts devpts rw 0 0
none /vz/root/101/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/root /vz/root/101/home ext3 rw,data=ordered 0 0
/dev/root /vz/root/101/mercury ext3 rw,data=ordered 0 0
/dev/root /vz/root/101/periva ext3 rw,data=ordered 0 0
/dev/root /vz/root/101/root ext3 rw,data=ordered 0 0
[root@rajeshr-linux ~]# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
[root@rajeshr-linux ~]# vzctl exec 101 cat /etc/mtab
/dev/simfs / simfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/root /home ext3 rw,data=ordered 0 0
/dev/root /mercury ext3 rw,data=ordered 0 0
/dev/root /periva ext3 rw,data=ordered 0 0
/dev/root /root ext3 rw,data=ordered 0 0
[root@rajeshr-linux ~]# vzctl exec 101 mount
/dev/simfs on / type simfs (rw)
/proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/root on /home type ext3 (rw,data=ordered)
/dev/root on /mercury type ext3 (rw,data=ordered)
/dev/root on /periva type ext3 (rw,data=ordered)
/dev/root on /root type ext3 (rw,data=ordered)
[root@rajeshr-linux ~]# uname -a
Linux rajeshr-linux 2.6.18-128.1.1.el5.028stab062.3 #1 SMP Tue May 5 17:31:34 MSD 2009 i686 i686 i386 GNU/Linux
PLS help me!
|
|
|
Re: Accessing the HN thermal modules from the Container [message #36527 is a reply to message #36503] |
Mon, 29 June 2009 07:52 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
maratrus
Messages: 1495 Registered: August 2007 Location: Moscow
|
Senior Member |
|
|
Hello,
Quote: |
For the thermal emulation model I need to set the /dev/sda properly. However when I tried to run /dev from the container I could not get sda or hda but rather found "pts". what does that mean?
|
Have a look at "--devnodes" option of vzctl utility.
Quote: |
What does data=ordered mean here?
|
# man mount
Quote: |
Is it because the container is not given access to the power modules in the host node?
|
Could you please say what kernel modules have to be loaded. Please load them on the HN before using inside VE.
Quote: |
[root@rajeshr-linux bin]# ./monitord -p 8367 -s localhost -d -v
Just defined sockaddr->sin_addr.in_addr=(100007f)
Segmentation fault
|
Please examine /proc/user_beancounters output. Are there any fail counters?
We may also use the "strace" utility. It's not clear for now what it the reason of a segmentation fault.
|
|
|
Goto Forum:
Current Time: Sun Sep 01 00:21:03 GMT 2024
Total time taken to generate the page: 0.06768 seconds
|