My Oracle Support Banner

Adding VDisks to the VM Does Not Reflect New Disks Inside VM (Doc ID 2198231.1)

Last updated on JANUARY 15, 2023

Applies to:

Oracle Database Appliance Software - Version 12.1.2.7 and later
Information in this document applies to any platform.

Symptoms

Trying to add two virtual disks to an existing Oracle Database Appliance Virtual Machine (VM).
The VM already has 4 VDisks attached (including the System.img).
The VDisk creation is OK.
The attachment of VDisks using OAKCLI is OK.
The vm.cfg is updated with the VDisk (oakvdk_emcc_vdisk1,xvde, oakvdk_emcc_vdisk2,xvdf) information as well:

vm.cfg

vif = ['mac=00:16:3e:7a:7c:6e, bridge=net1', 'mac=00:16:3e:17:fb:cb,
bridge=mgtVLAN']
name = 'emcc'
extra = 'NODENAME=emcc'
builder = 'hvm'  <<<<<< pvhvm is not used.
cpus = '2,3,4,5,6,7,8,9,10,11,12,13'
vcpus = 12
memory = 24576
cpu_cap = 0
vnc = 1
serial = 'pty'
disk = [u'file:/OVS/Repositories/emcc_repo/.ACFS/snaps/emcc/VirtualMachines/emcc/e3604509ffce4382a959aa9e12db1afd.img,xvda,w', u'file:/OVS/Repositories/emcc_repo/.ACFS/snaps/oakvdk_emcc/VirtualDisks/oakvdk_emcc,xvdb,w', u'file:/OVS/Repositories/emcc_repo/.ACFS/snaps/oakvdk_sw/VirtualDisks/oakvdk_sw,xvdc,w', u'file:/OVS/Repositories/emcc_repo/.ACFS/snaps/oakvdk_fast_recovery/VirtualDisks/oakvdk_fast_recovery,xvdd,w', u'file:/OVS/Repositories/emcc_repo/.ACFS/snaps/oakvdk_emcc_vdisk1/VirtualDisks/oakvdk_emcc_vdisk1,xvde,w', u'file:/OVS/Repositories/emcc_repo/.ACFS/snaps/oakvdk_emcc_vdisk2/VirtualDisks/oakvdk_emcc_vdisk2,xvdf,w']


The existing VDisks show up as SCSI block devices at the OS level even though vm.cfg has XVD definition:


# ll /dev/sd*
brw-rw----. 1 root disk 8, 0 Oct 7 13:12 /dev/sda
brw-rw----. 1 root disk 8, 1 Oct 7 13:12 /dev/sda1
brw-rw----. 1 root disk 8, 2 Oct 7 13:12 /dev/sda2
brw-rw----. 1 root disk 8, 3 Oct 7 13:12 /dev/sda3
brw-rw----. 1 root disk 8, 16 Oct 7 13:12 /dev/sdb
brw-rw----. 1 root disk 8, 17 Oct 7 13:12 /dev/sdb1
brw-rw----. 1 root disk 8, 32 Oct 7 13:12 /dev/sdc
brw-rw----. 1 root disk 8, 33 Oct 7 13:12 /dev/sdc1
brw-rw----. 1 root disk 8, 48 Oct 7 13:12 /dev/sdd
brw-rw----. 1 root disk 8, 49 Oct 7 13:12 /dev/sdd1


We can see missing xvde and xvdf virtual disks.

 

From DOM0 qemu log:

qemu-dm-emcc.log
======================
domid: 28
config qemu network with xen bridge for tap28.0 net1
config qemu network with xen bridge for tap28.1 mgtVLAN
Using xvda for guest's hda
Using file
/OVS/Repositories/emcc_repo/.ACFS/snaps/emcc/VirtualMachines/emcc/e3604509ffce
4382a959aa9e12db1afd.img in read-write mode
Using xvdb for guest's hdb
Using file
/OVS/Repositories/emcc_repo/.ACFS/snaps/oakvdk_emcc/VirtualDisks/oakvdk_emcc
in read-write mode
Using xvdc for guest's hdc
Using file
/OVS/Repositories/emcc_repo/.ACFS/snaps/oakvdk_sw/VirtualDisks/oakvdk_sw in
read-write mode
Using xvdd for guest's hdd
Using file
/OVS/Repositories/emcc_repo/.ACFS/snaps/oakvdk_fast_recovery/VirtualDisks/oakv
dk_fast_recovery in read-write mode
Using xvde for guest's hde <<<<<<<<<<<<<<<<<<<<<<<
qemu: drive 'xvde' out of range <<<<<<<<<<<<<<<<<<<<<<<
Using xvdf for guest's hdf <<<<<<<<<<<<<<<<<<<<<<<
qemu: drive 'xvdf' out of range <<<<<<<<<<<<<<<<<<<<<<<
Watching /local/domain/0/device-model/28/logdirty/cmd
Watching /local/domain/0/device-model/28/command
Watching /local/domain/28/cpu
char device redirected to /dev/pts/8
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 52af79db-3657-5ba9-226b-adc9a8b07b77
Time offset set 2
char device redirected to /dev/pts/9
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.

qemu-dm-oakDom1.log
[3 devices presented in dom1]
==============================
domid: 1
Using xvda for guest's hda
Using file /OVS/Repositories/odabaseRepo/VirtualMachines/oakDom1/System.img
in read-write mode
Using xvdb for guest's hdb
Using file /OVS/Repositories/odabaseRepo/VirtualMachines/oakDom1/u01.img in
read-write mode
Using xvdc for guest's hdc
Using file /OVS/Repositories/odabaseRepo/VirtualMachines/oakDom1/swap.img in
read-write mode
Watching /local/domain/0/device-model/1/logdirty/cmd
Watching /local/domain/0/device-model/1/command
Watching /local/domain/1/cpu
char device redirected to /dev/pts/0
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 14b14cf9-ef9b-4d35-a692-4c158980acb9
Time offset set 0
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.