OpenVZ Forum


Home » General » Support » *SOLVED* Private disk partitions and disk games
*SOLVED* Private disk partitions and disk games [message #4059] Tue, 27 June 2006 17:23 Go to previous message
rollinw is currently offline  rollinw
Messages: 25
Registered: June 2006
Location: Santa Barbara, California
Junior Member
Here's another issue I have come up against.

My hardware node is a CentOS4.x system installed on an IDE disk. I also have a large SATA drive that I would like to put databases on. In particular, I would like to have a partition of the SATA drive dedicated to each VE that will be running mysql.

On CentOS, fdisk treats the partitions as SCSI, with names sda1, sda2, etc. on /dev/sda. Interestingly, SUSE Enterprise 9.3 treats the drive as a hard drive, with names like hdi1, hdi2, etc., on /dev/hdi.

Well, after I created partitions and filesystems on /dev/sda using the hardware node, I tried to mount one of them inside the VPSs. The CentOS VPSs didn't even know about /dev/sda, because there was no such device in /dev. The SUSE VPS knows about the device, but refuses to mount the partitions, saying the device is busy.

I went back to the hardware node to see what I could find. There I discovered that the device-mapper has apparently taken over /dev/sda (device Cool and maps it to /dev/dm-0, /dev/dm-1, etc. (as device 253).

My questions are:

1) Is there a way to mount mapped devices from within a
VPS? If so, what is needed to set it up?
2) If necessary, I can probably get rid of the mapped
device using dmsetup. Will /dev/sda from the hardware
node then become available from within the VPSs for
dedicated partition mounts using /etc/fstab (granted,
I would need to create the /dev entries for the VPSs)?

Thanks to anyone who has answers to this problem.

rollinw

[Updated on: Fri, 30 June 2006 06:53] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Transaction check error?
Next Topic: Plesk Istallation Issues Help
Goto Forum:
  


Current Time: Fri Jul 19 07:19:11 GMT 2024

Total time taken to generate the page: 0.02470 seconds