make Unraid compatible with SCSI virtual disks (ESXi)


Recommended Posts

Tom...

 

Feature request:

 

Can you make Unraid compatible with SCSI virtual disks (ESXi)? That would be useful for cache virtual disk.

 

Unraid only work with IDE virtual disks which is slow.

 

8)

How do I do that?

 

I thought the driver was already compiled into the kernel.

root@unRAID2:~# lsmod
Module                  Size  Used by
md_mod                 48054  3 
ata_piix               18623  0 
sg                     14084  0 
e1000                  83369  0 
vmw_pvscsi             12161  4 
i2c_piix4               7133  0 
piix                    3624  0 
i2c_core               13410  1 i2c_piix4

root@unRAID2:~# grep scsi /var/log/syslog
Oct 22 08:22:14 unRAID2 kernel: scsi0 : usb-storage 1-1:1.0
Oct 22 08:22:14 unRAID2 kernel: scsi 0:0:0:0: Direct-Access     Generic- USB3.0 CRW    -0 1.00 PQ: 0 ANSI: 4
Oct 22 08:22:14 unRAID2 kernel: vmw_pvscsi: using 64bit dma
Oct 22 08:22:14 unRAID2 kernel: vmw_pvscsi 0000:03:00.0: vmw_pvscsi: host->max_id: 16
Oct 22 08:22:14 unRAID2 kernel: vmw_pvscsi 0000:03:00.0: irq 72 for MSI/MSI-X
Oct 22 08:22:14 unRAID2 kernel: vmw_pvscsi: using MSI-X
Oct 22 08:22:14 unRAID2 kernel: scsi1 : VMware PVSCSI storage adapter rev 2, req/cmp/msg rings: 8/8/1 pages, cmd_per_lun=64
Oct 22 08:22:14 unRAID2 kernel: vmw_pvscsi 0000:03:00.0: VMware PVSCSI rev 2 host #1
Oct 22 08:22:14 unRAID2 kernel: scsi 1:0:0:0: Direct-Access     VMware   Virtual disk     1.0  PQ: 0 ANSI: 2
Oct 22 08:22:14 unRAID2 kernel: scsi 1:0:1:0: Direct-Access     ATA      ST4000DM000-1F21 CC52 PQ: 0 ANSI: 5
Oct 22 08:22:14 unRAID2 kernel: scsi 1:0:2:0: Direct-Access     ATA      ST4000DM000-1F21 CC52 PQ: 0 ANSI: 5
Oct 22 08:22:14 unRAID2 kernel: scsi 1:0:3:0: Direct-Access     ATA      ST4000DM000-1F21 CC52 PQ: 0 ANSI: 5
Oct 22 08:22:14 unRAID2 kernel: scsi 1:0:4:0: Direct-Access     ATA      ST4000DM000-1F21 CC52 PQ: 0 ANSI: 5
Oct 22 08:22:14 unRAID2 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
Oct 22 08:22:14 unRAID2 kernel: sd 1:0:0:0: Attached scsi generic sg1 type 0
Oct 22 08:22:14 unRAID2 kernel: sd 1:0:1:0: Attached scsi generic sg2 type 0
Oct 22 08:22:14 unRAID2 kernel: sd 1:0:2:0: Attached scsi generic sg3 type 0
Oct 22 08:22:14 unRAID2 kernel: sd 1:0:3:0: Attached scsi generic sg4 type 0
Oct 22 08:22:14 unRAID2 kernel: sd 1:0:4:0: Attached scsi generic sg5 type 0

Link to comment

Tom...

 

Feature request:

 

Can you make Unraid compatible with SCSI virtual disks (ESXi)? That would be useful for cache virtual disk.

 

Unraid only work with IDE virtual disks which is slow.

 

8)

How do I do that?

 

vmw_pvscsi driver is already installed on unraid but unraid GUI does not work with SCSI virtual disks.

 

In the VM setting, you add SCSI Virtual Disk.

 

1. Click on Add

2. Click on Hard Disk on the list and click Next

3. Select "Create a virtual disk" and click on Next

4. Choose a disk size and select any Disk Provisioning

5. Make sure SCSI is selected on the Virtual Device Node

6. Click on Next and Finish

 

On Unraid GUI, it show "unassigned" disk and when I select a SCSI disk from the dropdown then it goes back to "unassigned".

 

If you change to IDE on the Virtual Device Node then it will work but it will be very slow.

 

Screenshot:

 

imagep.png

 

image.png

 

Link to comment

Tom...

 

Feature request:

 

Can you make Unraid compatible with SCSI virtual disks (ESXi)? That would be useful for cache virtual disk.

 

Unraid only work with IDE virtual disks which is slow.

 

8)

You can make it work with scsi disks (i know because I've done it ::) Beta quasi found out how (with some very small tweaking in ESXi)

I don't remember the thread but believe it was something related with pvm drivers.

Look for that, if you don't find it drop me a line and I'll try to guide you

 

Sent from my GT-P7500 using Tapatalk 2

 

Link to comment

Tom...

 

Feature request:

 

Can you make Unraid compatible with SCSI virtual disks (ESXi)? That would be useful for cache virtual disk.

 

Unraid only work with IDE virtual disks which is slow.

 

8)

You can make it work with scsi disks (i know because I've done it ::) Beta quasi found out how (with some very small tweaking in ESXi)

I don't remember the thread but believe it was something related with pvm drivers.

Look for that, if you don't find it drop me a line and I'll try to guide you

 

Sent from my GT-P7500 using Tapatalk 2

 

Yep I have seen that before, but it would be better to work properly without hack/tweak. 

Link to comment

vmw_pvscsi driver is already installed on unraid but unraid GUI does not work with SCSI virtual disks.

 

Please post a system log that results after having tried to assign one of the disks.

 

This is old log back in March:

 

Mar 12 17:14:02 Tower emhttp: shcmd (100): rmmod md-mod |& logger
Mar 12 17:14:02 Tower emhttp: shcmd (101): modprobe md-mod super=/boot/config/super.dat slots=6 |& logger
Mar 12 17:14:02 Tower kernel: md: unRAID driver removed
Mar 12 17:14:02 Tower kernel: md: unRAID driver 2.1.5 installed
Mar 12 17:14:02 Tower kernel: read_file: error 2 opening /boot/config/super.dat
Mar 12 17:14:02 Tower kernel: md: could not read superblock from /boot/config/super.dat
Mar 12 17:14:02 Tower kernel: md: initializing superblock
Mar 12 17:14:02 Tower emhttp: shcmd (102): udevadm settle
Mar 12 17:14:03 Tower emhttp: Device inventory:
Mar 12 17:14:03 Tower emhttp:  (sda) 8388608
Mar 12 17:14:03 Tower emhttp:  (sdb) 1073741823
Mar 12 17:14:03 Tower emhttp:  (sdc) 1073741823
Mar 12 17:14:03 Tower emhttp:  (sdd) 1932735283
Mar 12 17:14:03 Tower kernel: mdcmd (1): import 0 0,0
Mar 12 17:14:03 Tower kernel: mdcmd (2): import 1 0,0
Mar 12 17:14:03 Tower kernel: mdcmd (3): import 2 0,0
Mar 12 17:14:03 Tower kernel: mdcmd (4): import 3 0,0
Mar 12 17:14:03 Tower kernel: mdcmd (5): import 4 0,0
Mar 12 17:14:03 Tower kernel: mdcmd (6): import 5 0,0
Mar 12 17:14:03 Tower emhttp: shcmd (103): /usr/local/sbin/emhttp_event driver_loaded
Mar 12 17:14:03 Tower emhttp_event: driver_loaded

Link to comment

Tom...

 

Feature request:

 

Can you make Unraid compatible with SCSI virtual disks (ESXi)? That would be useful for cache virtual disk.

 

Unraid only work with IDE virtual disks which is slow.

 

8)

You can make it work with scsi disks (i know because I've done it ::) Beta quasi found out how (with some very small tweaking in ESXi)

I don't remember the thread but believe it was something related with pvm drivers.

Look for that, if you don't find it drop me a line and I'll try to guide you

 

Sent from my GT-P7500 using Tapatalk 2

 

Yep I have seen that before, but it would be better to work properly without hack/tweak.

It's not really a hack, is it? It's the way ESXi works and not really unraid's.

 

Sent from my GT-P7500 using Tapatalk 2

 

 

Link to comment

SAN, thats Hot!

 

I always wondered why it wouldnt let you assign the drive.

 

Syslog attached, its a RC16c dev vm, I just brought it up and assigned one disk (as expressed above it went back to unassigned) and captured the syslog from that point for you.

As stated above, this works:

http://lime-technology.com/forum/index.php?topic=20392.msg234649.msg#234649

 

Sent from my GT-P7500 using Tapatalk 2

 

 

Link to comment

I understand, and appreciate the link, but IF Tom can do something on his end instead, I am all for it.

If he cannot (because its out of his hands) then the hack it will be.

 

There's nothing Tom could do; or ESXI exports disk serial number, so udev rules can create the appropriate symlinks, or not. For Tom to address this from the unRAID side, it would involve using other attributes, maybe partition UUID, but this would be a hack. Just set your VM to enable disk UUID. This is not a hack, just a configuration ESXI don't expose in the GUI.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.