Am 19.10.2013 21:39, schrieb Adam W. Dace: > This is really more of a Linux virtualization question, but I'd rather ask > you people than bother the hosting > company if possible. > > First off, I was completely wrong about raw disk being available. My > apologies, I should've checked. That part is > simple...they have a nice web GUI for that. > > Virtualization Software: Xen > Host OS: CentOS 6.4 > > What I'm stuck on is how do I access a raw disk volume from Linux? > > If it helps, my /etc/fstab looks like this: > > /dev/xvda / ext3 noatime,errors=remount-ro 0 1 > /dev/xvdb none swap sw 0 0 > /proc /proc proc defaults 0 0 > tmpfs /dev/shm tmpfs nodev,nosuid,noexec 0 0 > devpts /dev/pts devpts gid=5,mode=620 0 0 > sysfs /sys sysfs defaults 0 0
you do not need it to acess from linux nor doe sit appear in fstab or df output that is why it is called RAW disk, it is unformatted and under application control in the case below (from production) the whole /dev/sdc disk is assigend to ATS and the udev-rule is needed to allow the ATS user write access nobody and nothig but ATS will ever access this drive _____________________________________ [root@proxy:~]$ df Dateisystem Typ Größe Benutzt Verf. Verw% Eingehängt auf /dev/sdb1 ext4 5,8G 668M 5,2G 12% / /dev/sda1 ext4 493M 34M 456M 7% /boot _____________________________________ [root@proxy:~]$ cat /etc/trafficserver/storage.config # Storage Configuration file # /etc/udev/rules.d/50-ats.rules # Apache Traffic Server owns disk for RAW access # KERNEL=="sdc", OWNER="ats" /dev/sdc _____________________________________ [root@proxy:~]$ ls /dev/ | grep sd brw-rw---- 1 root disk 8, 0 2013-10-11 19:36 sda brw-rw---- 1 root disk 8, 1 2013-10-11 19:36 sda1 brw-rw---- 1 root disk 8, 16 2013-10-11 19:36 sdb brw-rw---- 1 root disk 8, 17 2013-10-11 19:36 sdb1 brw------- 1 ats root 8, 32 2013-10-19 22:05 sdc
signature.asc
Description: OpenPGP digital signature
