OpenVZ Forum


Home » General » Support » Giving access to linux device in a VE
Giving access to linux device in a VE [message #34615] Wed, 21 January 2009 04:42 Go to next message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior Member
I was trying to give access to /dev/sda1 to VE 567.

When I type:

vzctl set 567 --devices b:8:0:rw --devices b:8:1:rw --save

and access into the VE it states both /dev/sda1 & /dev/sda do not exist.

I have tried restarting the VE and have made sure the partition is Linux (82) in fdisk.

Any ideas?


http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President

[Updated on: Wed, 21 January 2009 04:50]

Report message to a moderator

Re: Giving access to linux device in a VE [message #34621 is a reply to message #34615] Wed, 21 January 2009 18:40 Go to previous message
n00b_admin is currently offline  n00b_admin
Messages: 77
Registered: July 2006
Location: Romania
Member
Hello,

Please use the --devnodes option.

As per the manual of the vzctl tool, the devices option will not automatically create the required block devices.

Try something like:

vzctl set 567 --devnodes /dev/sda:rw --save

Then mount the required partition inside the VE.

If the partition /dev/sda1 is required to be automatically mounted at startup, use the local service for the mount command.

In the past i had problems using the fstab file.
Previous Topic: [Solved] High WAIT - IO loads, why?
Next Topic: arpsend Problem
Goto Forum:
  


Current Time: Wed Aug 06 01:11:59 GMT 2025

Total time taken to generate the page: 1.03851 seconds