Any idea why I cant see my unRAID Share after a reboot?


Recommended Posts

Dear Experts',

 

Everything was working fine until I brought the server down for a reboot. Once it came up, I was unable to access the shares in my VM. The VM works fine otherwise which seems strange to me.

 

Here is my XML:

<domain type='kvm' id='3'>
  <name>glftpd</name>
  <uuid>20c4aabf-1971-6b84-2ac8-48a6cda03e15</uuid>
  <description>ubuntu 14.04</description>
  <metadata>
    <snapshots/>
  </metadata>
  <memory unit='KiB'>524288</memory>
  <currentMemory unit='KiB'>524288</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
    <boot dev='hd'/>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='yes'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/mnt/cache/vm/glftpd/glftpd/glftpd.qcow2'/>
      <backingStore/>
      <target dev='hda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/vm/ubuntu-14.04.2-server-amd64.iso'/>
      <backingStore/>
      <target dev='hdc' bus='ide' tray='open'/>
      <readonly/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/unRAID'/>
      <target dir='unraid'/>
      <alias name='fs0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </filesystem>
    <interface type='bridge'>
      <mac address='52:54:00:d9:aa:be'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/1'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/1'>
      <source path='/dev/pts/1'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='vmvga' vram='16384' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>

 

Here is the output of lspci -knn

00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] [8086:1237] (rev 02)
        Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] [8086:7000]
        Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
00:01.1 IDE interface [0101]: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] [8086:7010]
        Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
        Kernel driver in use: ata_piix
00:01.2 USB controller [0c03]: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] [8086:7020] (rev 01)
        Subsystem: Red Hat, Inc QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: uhci_hcd
00:01.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 03)
        Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
        Kernel driver in use: piix4_smbus
00:02.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
        Subsystem: VMware SVGA II Adapter [15ad:0405]
00:03.0 Ethernet controller [0200]: Red Hat, Inc Virtio network device [1af4:1000]
        Subsystem: Red Hat, Inc Device [1af4:0001]
        Kernel driver in use: virtio-pci
00:04.0 SCSI storage controller [0100]: Red Hat, Inc Virtio block device [1af4:1001]
        Subsystem: Red Hat, Inc Device [1af4:0002]
        Kernel driver in use: virtio-pci
00:05.0 Unclassified device [00ff]: Red Hat, Inc Virtio memory balloon [1af4:1002]
        Subsystem: Red Hat, Inc Device [1af4:0005]
        Kernel driver in use: virtio-pci
00:06.0 Unclassified device [0002]: Red Hat, Inc Virtio filesystem [1af4:1009]
        Subsystem: Red Hat, Inc Device [1af4:0009]
        Kernel driver in use: virtio-pci

 

Its a ubuntu server with an ftpd installed which accesses (or used to) the unraid shares and that is the sole function of this box.

 

Thanks for your help!

Link to comment

Dear Experts',

 

Everything was working fine until I brought the server down for a reboot. Once it came up, I was unable to access the shares in my VM. The VM works fine otherwise which seems strange to me.

 

Here is my XML:

<domain type='kvm' id='3'>
  <name>glftpd</name>
  <uuid>20c4aabf-1971-6b84-2ac8-48a6cda03e15</uuid>
  <description>ubuntu 14.04</description>
  <metadata>
    <snapshots/>
  </metadata>
  <memory unit='KiB'>524288</memory>
  <currentMemory unit='KiB'>524288</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
    <boot dev='hd'/>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='yes'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/mnt/cache/vm/glftpd/glftpd/glftpd.qcow2'/>
      <backingStore/>
      <target dev='hda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/vm/ubuntu-14.04.2-server-amd64.iso'/>
      <backingStore/>
      <target dev='hdc' bus='ide' tray='open'/>
      <readonly/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/unRAID'/>
      <target dir='unraid'/>
      <alias name='fs0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </filesystem>
    <interface type='bridge'>
      <mac address='52:54:00:d9:aa:be'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/1'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/1'>
      <source path='/dev/pts/1'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='vmvga' vram='16384' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>

 

Here is the output of lspci -knn

00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] [8086:1237] (rev 02)
        Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] [8086:7000]
        Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
00:01.1 IDE interface [0101]: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] [8086:7010]
        Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
        Kernel driver in use: ata_piix
00:01.2 USB controller [0c03]: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] [8086:7020] (rev 01)
        Subsystem: Red Hat, Inc QEMU Virtual Machine [1af4:1100]
        Kernel driver in use: uhci_hcd
00:01.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 03)
        Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
        Kernel driver in use: piix4_smbus
00:02.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
        Subsystem: VMware SVGA II Adapter [15ad:0405]
00:03.0 Ethernet controller [0200]: Red Hat, Inc Virtio network device [1af4:1000]
        Subsystem: Red Hat, Inc Device [1af4:0001]
        Kernel driver in use: virtio-pci
00:04.0 SCSI storage controller [0100]: Red Hat, Inc Virtio block device [1af4:1001]
        Subsystem: Red Hat, Inc Device [1af4:0002]
        Kernel driver in use: virtio-pci
00:05.0 Unclassified device [00ff]: Red Hat, Inc Virtio memory balloon [1af4:1002]
        Subsystem: Red Hat, Inc Device [1af4:0005]
        Kernel driver in use: virtio-pci
00:06.0 Unclassified device [0002]: Red Hat, Inc Virtio filesystem [1af4:1009]
        Subsystem: Red Hat, Inc Device [1af4:0009]
        Kernel driver in use: virtio-pci

 

Its a ubuntu server with an ftpd installed which accesses (or used to) the unraid shares and that is the sole function of this box.

 

Thanks for your help!

 

Are you talking about going throgh VirtFS for this using a mount?  Can you get to your shares over smb, nfs, or any other protocols.

Link to comment

Are you talking about going throgh VirtFS for this using a mount?  Can you get to your shares over smb, nfs, or any other protocols.

 

Hi and thanks for the reply.

 

Yes, through VirtFS. I AM able to access my share over smb and nfs. Its puzzling because nothing has changed at all and its been working fine for about 4 months. The line to mount the unraid share (from /etc/fstab) in the KVM guest (ubuntu server 14.04)  is here:

 

unraid  /glftpd/site/ 9p  trans=virtio,version=9p2000.L,noauto,nobootwait,rw    0   0

 

If I try to mount it manually I get this error:

 

mount: special device unraid does not exist

 

This error makes me think KVM isnt passing the shares through to the guest but as far as I know the XML is correctly set up to pass them through.

 

I have also attached the dmesg log.

 

dmesg.txt

Link to comment

Are you talking about going throgh VirtFS for this using a mount?  Can you get to your shares over smb, nfs, or any other protocols.

 

Hi and thanks for the reply.

 

Yes, through VirtFS. I AM able to access my share over smb and nfs. Its puzzling because nothing has changed at all and its been working fine for about 4 months. The line to mount the unraid share (from /etc/fstab) in the KVM guest (ubuntu server 14.04)  is here:

 

unraid  /glftpd/site/ 9p  trans=virtio,version=9p2000.L,noauto,nobootwait,rw    0   0

 

If I try to mount it manually I get this error:

 

mount: special device unraid does not exist

 

This error makes me think KVM isnt passing the shares through to the guest but as far as I know the XML is correctly set up to pass them through.

 

I have also attached the dmesg log.

 

I just created a Ubuntu 15.04 Desktop VM and was about to manually mount a VirtFS folder from the unRAID host to inside the VM.

 

From inside your VM, what do you get back from this command?:

sudo cat /sys/bus/virtio/drivers/9pnet_virtio/*/mount_tag

 

FYI, here's what I typed to manually mount inside the VM:

sudo mount unraid /glftpd/site/ -t 9p -o trans=virtio,version=9p2000.L

 

Link to comment

Are you talking about going throgh VirtFS for this using a mount?  Can you get to your shares over smb, nfs, or any other protocols.

 

Hi and thanks for the reply.

 

Yes, through VirtFS. I AM able to access my share over smb and nfs. Its puzzling because nothing has changed at all and its been working fine for about 4 months. The line to mount the unraid share (from /etc/fstab) in the KVM guest (ubuntu server 14.04)  is here:

 

unraid  /glftpd/site/ 9p  trans=virtio,version=9p2000.L,noauto,nobootwait,rw    0   0

 

If I try to mount it manually I get this error:

 

mount: special device unraid does not exist

 

This error makes me think KVM isnt passing the shares through to the guest but as far as I know the XML is correctly set up to pass them through.

 

I have also attached the dmesg log.

 

I'm not sure why it has worked a while back for you because VirtFS needs the guest network stack up and running before it can mount, you should append/prepend the _netdev mount option to your fstab file:

 

unraid  /glftpd/site/ 9p  _netdev,trans=virtio,version=9p2000.L    0   0

Link to comment

Are you talking about going throgh VirtFS for this using a mount?  Can you get to your shares over smb, nfs, or any other protocols.

 

Hi and thanks for the reply.

 

Yes, through VirtFS. I AM able to access my share over smb and nfs. Its puzzling because nothing has changed at all and its been working fine for about 4 months. The line to mount the unraid share (from /etc/fstab) in the KVM guest (ubuntu server 14.04)  is here:

 

unraid  /glftpd/site/ 9p  trans=virtio,version=9p2000.L,noauto,nobootwait,rw    0   0

 

If I try to mount it manually I get this error:

 

mount: special device unraid does not exist

 

This error makes me think KVM isnt passing the shares through to the guest but as far as I know the XML is correctly set up to pass them through.

 

I have also attached the dmesg log.

 

I just created a Ubuntu 15.04 Desktop VM and was about to manually mount a VirtFS folder from the unRAID host to inside the VM.

 

From inside your VM, what do you get back from this command?:

sudo cat /sys/bus/virtio/drivers/9pnet_virtio/*/mount_tag

 

FYI, here's what I typed to manually mount inside the VM:

sudo mount unraid /glftpd/site/ -t 9p -o trans=virtio,version=9p2000.L

 

Hey..  sorry for just getting back to you now, long day.

 

Anyway, the output of sudo cat /sys/bus/virtio/drivers/9pnet_virtio/*/mount_tag:

unraidusername@glftpd:~$

It literally just returned the above. I replaced my username with username.

 

When I ran your mount command, it seemed to mount my unraid share, so thank you for that. I will edit my /etc/fstab entry but I am still puzzled as to what actually broke.

Link to comment

Are you talking about going throgh VirtFS for this using a mount?  Can you get to your shares over smb, nfs, or any other protocols.

 

Hi and thanks for the reply.

 

Yes, through VirtFS. I AM able to access my share over smb and nfs. Its puzzling because nothing has changed at all and its been working fine for about 4 months. The line to mount the unraid share (from /etc/fstab) in the KVM guest (ubuntu server 14.04)  is here:

 

unraid  /glftpd/site/ 9p  trans=virtio,version=9p2000.L,noauto,nobootwait,rw    0   0

 

If I try to mount it manually I get this error:

 

mount: special device unraid does not exist

 

This error makes me think KVM isnt passing the shares through to the guest but as far as I know the XML is correctly set up to pass them through.

 

I have also attached the dmesg log.

 

I'm not sure why it has worked a while back for you because VirtFS needs the guest network stack up and running before it can mount, you should append/prepend the _netdev mount option to your fstab file:

 

unraid  /glftpd/site/ 9p  _netdev,trans=virtio,version=9p2000.L    0   0

 

Thanks. I edited my fstab, put this in and it worked. No idea what happened or how this broke but I really appreciate the help.

 

 

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.