Database Reference
In-Depth Information
Listing 11-3. Sizing of Dom0 File Systems
[root@ovs-host1 ~]# df -hP
Filesystem Size Used Avail Use% Mounted on
/dev/md1 19G 2.1G 16G 12% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/md3 429G 205G 202G 51% /OVS
/dev/md0 99M 53M 41M 57% /boot
none 2.0G 144K 2.0G 1% /var/lib/xenstored
You'll borrow some of the available space from Dom0 to create a temporary, 100G virtual disk image for your
needs. If you can use NFS to access the installation media, you don't need the whole 140G. The commands given in
Listings 11-4 to 11-6 need to be performed on the Dom0 and the ODA Base on one of the ODA's physical servers to
add a /u02 mount point on ODA Base. In the following examples, I'm adding the space to the ODA Base on the first
node of the ODA.
Listing 11-4 explains how to create an empty virtual disk image file on Dom0 using the dd command. Please note
the total size of the file in bytes is the multiplication of bs and seek parameters, and you need to adjust the parameters
for your needs.
Listing 11-4. Creating an Empty 100G Disk Image File u02.img on Dom0
[root@ovs-host1 oakDom1]# pwd
/OVS/Repositories/odabaseRepo/VirtualMachines/oakDom1
[root@ovs-host1 oakDom1]# dd if=/dev/zero of=u02.img bs=1k seek=102400k count=0
0+0 records in
0+0 records out
0 bytes (0 B) copied, 2.2717e-05 seconds, 0.0 kB/s
[root@ovs-host1 oakDom1]# ls -lptr u02.img
-rw-r--r-- 1 root root 107374182400 Aug 25 07:57 u02.img
The ODA virtualization platform is based on Oracle VM. Although it's a specially adjusted configuration of
Oracle VM that runs on ODA, it still contains the Oracle VM server management command-line tool xm . Listing 11-5
explains how to use xm on Dom0 to attach the empty virtual disk image to the ODA Base VM as device /dev/xvdd .
Listing 11-5. Attach the u01.img As a Block Device /dev/xvdd on ODA Base
[root@ovs-host1 oakDom1]# xm block-attach oakDom1 file:/OVS/Repositories/odabaseRepo/
VirtualMachines/oakDom1/u02.img /dev/xvdd w
Attaching the disk image to the VM is an online operation. Please note the vm.cfg file for ODA Base is not
changed, and if the VM is bounced, the new device will not be automatically attached. Listing 11-6 shows how to
partition the new device, how to create the file system, and how to mount it on ODA Base.
Listing 11-6. Partition the Block Device, Create the File System, and Mount It on ODA Base As /u02
[root@s1 ~]# fdisk /dev/xvdd
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Search WWH ::




Custom Search