Red Hat ENTERPRISE LINUX 5 - VIRTUALIZATION GUIDE Manual page 175

Hide thumbs Also See for ENTERPRISE LINUX 5 - VIRTUALIZATION GUIDE:
Table of Contents

Advertisement

Installation and Configuration of Para-virtualized Drivers on Red Hat Enterprise Linux 3
# change/add xvda to xvdb, xvbd, etc. for 2nd, 3rd, etc., disk added in
# in xen config file, respectively.
mknod -/dev/xvdb b $major 16
mknod -/dev/xvdb1 b $major 17
mknod -/dev/xvdb2 b $major 18
chgrp disk -/dev/xvd*
chmod 0660 -/dev/xvd*
For each additional virtual disk, increment the minor number by 16. In the example below an additional
device, minor number 16, is created.
# mknod -/dev/xvdc b $major 16
# mknod -/dev/xvdc1 b $major 17
This would make the next device 32 which can be created by:
# mknod -/dev/xvdd b $major 32
# mknod -/dev/xvdd1 b $major 33
Now you should verify the partitions which you have created are available.
[root@rhel3]# cat -/proc/partitions
major
minor
#blocks
3
0
10485760
3
1
104391
3
2
10377990
202
16
202
17
202
18
253
0
8257536
253
1
2031616
In the above output, you can observe that the partitioned device "xvdb" is available to the system.
The procedure below adds the new device to the guest and makes it persistent after rebooting. All
these commands are executed on the guest.
1.
Create directories to mount the block device image in.
[root@rhel3]# mkdir -/mnt/pvdisk_p1
[root@rhel3]# mkdir -/mnt/pvdisk_p2
2.
Mount the devices to the new folders.
[root@rhel3]# mount -/dev/xvdb1 -/mnt/pvdisk_p1
[root@rhel3]# mount -/dev/xvdb2 -/mnt/pvdisk_p2
3.
Verify the devices are mounted correctly.
[root@rhel3]# df -/mnt/pvdisk_p1
Filesystem
/dev/xvdb1
4.
Update the /etc/fstab file inside the guest to mount the devices during the boot sequence.
Add the following lines:
name
hda
hda1
hda2
64000
xvdb
32000
xvdb1
32000
xvdb2
dm-0
dm-1
1K-blocks
Used
32000
Available Use%
15
31985
1%
Mounted on
-/mnt/pvdisk_p1
161

Advertisement

Table of Contents
loading

Table of Contents