I have an Oracle VM set up with 1 virtual disk. I am trying to add 2 new disks to it. I was able to successfully add 1 (it appears when I run "format" in the VM) but when I add the second and third disks they do not appear in my VM.
Here are the commands I ran:
ldm add-vdsdev /dev/dsk/c0t5000CCA015354CB4d0s0 vol5@primary-vds0
ldm add-vdisk vdisk5 vol5@primary-vds0 ldg1
At this point I booted my VM and saw the new disk:
[root@vm-sol: /]# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0 <SUN-DiskSlice-279GB cyl 46874 alt 2 hd 20 sec 625>
/virtual-devices@100/channel-devices@200/disk@0
1. c0d1 <SUN-DiskSlice-279GB cyl 46874 alt 2 hd 20 sec 625>
/virtual-devices@100/channel-devices@200/disk@1
Specify disk (enter its number): ^C
At this point I shutdown the VM and tried to add two new disks, but neither of them show up in my VM:
ldm add-vdsdev /dev/dsk/c0t5000CCA0153542A4d0s0 vol6@primary-vds0
ldm add-vdisk vdisk6 vol6@primary-vds0 ldg1
...
ldm add-vdsdev /dev/dsk/c0t5000CCA0153596A4d0s0 vol7@primary-vds0
ldm add-vdisk vdisk7 vol7@primary-vds0 ldg1
My VM is still showing the same disk selection as before:
AVAILABLE DISK SELECTIONS:
0. c0d0 <SUN-DiskSlice-279GB cyl 46874 alt 2 hd 20 sec 625>
/virtual-devices@100/channel-devices@200/disk@0
1. c0d1 <SUN-DiskSlice-279GB cyl 46874 alt 2 hd 20 sec 625>
/virtual-devices@100/channel-devices@200/disk@1
Here are my partition tables for the 3 disks I attempted to add:
c0t5000CCA015354CB4d0 (added successfully)
partition> print
Current partition table (original):
Total disk cylinders available: 46873 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 46872 279.38GB (46873/0/0) 585912500
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 46872 279.38GB (46873/0/0) 585912500
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
c0t5000CCA0153542A4d0 (unsuccessful)
partition> print
Current partition table (original):
Total disk cylinders available: 46873 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 46872 279.38GB (46873/0/0) 585912500
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 46872 279.38GB (46873/0/0) 585912500
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
c0t5000CCA0153596A4d0 (unsuccessful)
partition> print
Current partition table (original):
Total disk sectors available: 585921082 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 usr wm 256 279.39GB 585921082
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
8 reserved wm 585921083 8.00MB 585937466
That third disk has a different looking partition table, I'm not sure why. But it looks like the full disk space is on slice 0 so I attempted to add that after my second disk addition failed.
My VM has a ZFS root filesystem, and I was attempting to add these 2 new disks and create a new zpool. Any ideas?