OpenVZ Forum


Home » General » Support » Devnodes question
Re: Devnodes question [message #34536 is a reply to message #34535] Thu, 15 January 2009 23:54 Go to previous messageGo to previous message
n00b_admin is currently offline  n00b_admin
Messages: 77
Registered: July 2006
Location: Romania
Member
After some poking around here's more info regarding the problem i encounter:

On the HN i perform something like this:

losetup /dev/loop0 /root/disk

After creating the block device file i issue:

losetup -a

Which outputs:

/dev/loop/0: [0803]:12271800 (/root/disk)

I configure the first VE like this:

vzctl set 201 --devnodes loop0:rw --save

Do the same to the second VE:

vzctl set 202 --devnodes loop0:rw --save

Start both VE's and mount the /dev/loop0 as /mnt/disk2 inside the VE's.

Everything works perfect at this point.

Then i stop VE 202 and issue "losetup -a" on the HN which has the same output as before.

After i stop the other VE, "losetup -a" does not output anything signaling that the block device file has been detached.

I repeated this operation with the "DEVNODES" option set to read-only but the same behavior is encountered which leads me to believe it is an operation performed automatically by VZCTL, perhaps, but i was not able to identify how to control it.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: "cpus" config option and "--set cpus" issue
Next Topic: [solved] Compile problem for xen enabled ovzkernel-2.6.18-92.1.1.el5.028stab057.2
Goto Forum:
  


Current Time: Mon Oct 07 11:19:22 GMT 2024

Total time taken to generate the page: 0.05255 seconds