I have a Solaris VM. Following instructions at https://pve.proxmox.com/wiki/Physical_disk_to_kvm
As you can see, I have added 3x 3TB drives, one each to IDE, SATA, and SCSI. However, when I go into Solaris, the sata drive appears fine. The ide drive is corrupted. The SCSI drive doesn't even show up.
I need to add 8 (preexisting) drives here so that I can migrate the data off it. How do I do it?
Questions
Code:
Showing only relevant information
# lshw -class disk -class storage
*-disk:2
description: ATA Disk
product: HGST HUS724030AL
physical id: 3.0.0
bus info: scsi@9:3.0.0
logical name: /dev/sdm
version: AA70
serial: PN2234P8KM1TZY
size: 2794GiB (3TB)
capabilities: removable
configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512
*-medium
physical id: 0
logical name: /dev/sdm
size: 2794GiB (3TB)
capabilities: gpt-1.00 partitioned partitioned:gpt
configuration: guid=e948f694-14f2-6b43-b5ff-90f0bd4b2938
*-disk:4
description: ATA Disk
product: Hitachi HDS72303
vendor: Hitachi
physical id: 0
bus info: scsi@6:0.0.0
logical name: /dev/sdg
version: A5C0
serial: MK0311YHGKL0ZA
size: 2794GiB (3TB)
capabilities: removable
configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512
*-medium
physical id: 0
logical name: /dev/sdg
size: 2794GiB (3TB)
capabilities: gpt-1.00 partitioned partitioned:gpt
configuration: guid=988cc433-b5a6-c742-b311-8c16cfa4ce1e
*-disk:5
description: ATA Disk
product: Hitachi HDS72303
vendor: Hitachi
physical id: 1
bus info: scsi@7:0.0.0
logical name: /dev/sdh
version: A5C0
serial: MK0311YHGKMXZA
size: 2794GiB (3TB)
capabilities: removable
configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512
*-medium
physical id: 0
logical name: /dev/sdh
size: 2794GiB (3TB)
capabilities: gpt-1.00 partitioned partitioned:gpt
configuration: guid=0a107883-a70f-6a40-b001-eafe9e1ebab2
# qm set 100 -sata1 /dev/disk/by-id/ata-HGST_HUS724030ALA640_PN2234P8KM1TZY
update VM 100: -sata1 /dev/disk/by-id/ata-HGST_HUS724030ALA640_PN2234P8KM1TZY
# qm set 100 -ide0 /dev/disk/by-id/ata-Hitachi_HDS723030ALA640_MK0311YHGKL0ZA
update VM 100: -ide0 /dev/disk/by-id/ata-Hitachi_HDS723030ALA640_MK0311YHGKL0ZA
# qm set 100 -scsi0 /dev/disk/by-id/ata-Hitachi_HDS723030ALA640_MK0311YHGKMXZA
update VM 100: -scsi0 /dev/disk/by-id/ata-Hitachi_HDS723030ALA640_MK0311YHGKMXZA
# cat /etc/pve/qemu-server/100.conf
bios: ovmf
bootdisk: sata0
cores: 2
cpu: host
efidisk0: local-lvm:vm-100-disk-1,size=4M
hostpci0: 05:04.0
ide0: /dev/disk/by-id/ata-Hitachi_HDS723030ALA640_MK0311YHGKL0ZA,size=2930266584K
ide2: none,media=cdrom
memory: 8192
name: solaris11.4
net0: e1000=E6:01:9E:26:24:81,bridge=vmbr0,firewall=1
numa: 0
ostype: solaris
sata0: local-lvm:vm-100-disk-0,size=32G
sata1: /dev/disk/by-id/ata-HGST_HUS724030ALA640_PN2234P8KM1TZY,size=2930266584K
scsi0: /dev/disk/by-id/ata-Hitachi_HDS723030ALA640_MK0311YHGKMXZA,size=2930266584K
smbios1: uuid=a28db5c0-ebd6-4cbe-a3c7-e2a5a6de59d8
sockets: 1
vmgenid: 68fd6469-b627-42fd-ac25-8055ce75f6dd
As you can see, I have added 3x 3TB drives, one each to IDE, SATA, and SCSI. However, when I go into Solaris, the sata drive appears fine. The ide drive is corrupted. The SCSI drive doesn't even show up.
I need to add 8 (preexisting) drives here so that I can migrate the data off it. How do I do it?
Code:
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c2t0d0 <QEMU-HARDDISK-2.5+-32.00GB>
/pci@0,0/pci1af4,1100@7/disk@0,0
1. c2t1d0 <QEMU-HARDDISK-2.5+-2.73TB>
/pci@0,0/pci1af4,1100@7/disk@1,0
2. c3d0 <QEMU HAR-QM0000-0001-746.51GB>
/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
Questions
- Why is the IDE drive showing up at 746.51GB?
- Where is the SCSI drive?
- What is the right driver to use for SCSI on solaris?
- If you noticed "hostpci0: 05:04.0" in /etc/pve/qemu-server/100.conf above, that's the Silicon Image 3124 SATA adapter via PCIe passthrough. However the device isn't appearing, neither is the 300GB hard drive attached to it.
- I have 8 drives I need to attach to this VM. What is the best way to attach it?
- Is it possible to add a second SATA controller so that I can qm set XX add -sata6, -sata7, -sata8?