Can't start Unraid - Mounting disks...


Recommended Posts

Hi All

 

I was playing with a script (Yes I know don't use script's if you don't understand them 100%)

Anyway this was a backup to a UAD drive r-sync incremental but I did some path wrong and I got this

 

image.thumb.png.2e5ca0f797c1590e120498e052c7bfb1.png

 

And just before this it stopped my VM and wrote:

image.png.8ac11bac84532adde0eed71ca78b5af1.png

 

The positive is that I do have access to MC:

image.png.bae4daa5ab1fb7c55add5df46382b646.png

So what can or should I remove before trying another reboot?

 

Br

Casperse

 

 

 

 

I have checked the Flash/Cache/and CPU and memory load and everything seems ok

But after reboot I am stuck at:

image.png.c868e74bbf5fedfc17358bb2862171f4.png

 

 

 

 

 

 

 

Link to comment
1 hour ago, casperse said:

Ok found that the passthrough drive was "sdk" before

But after a reboot its now "sdn" how can the naming ID of the drives on the Unraid change? Very scary

The sdX designations are always subject to change as they are assigned dynamically by Linux.    Unraid does not rely on the device name to identify drives, but instead the disk serial number.

Link to comment
3 hours ago, itimpi said:

The sdX designations are always subject to change as they are assigned dynamically by Linux.    Unraid does not rely on the device name to identify drives, but instead the disk serial number.

But I was told using passthrough from a drive to a VM I should use the sdX?

Is there another way to secure that it doesn't break after af reboot?

 

Link to comment
3 minutes ago, itimpi said:

If you look under /dev/disk at the Linux level you will see several folders giving ways that drives are identified in an invariant manner.

 

So how would I go about defining that in a VM so I don't have to update this all the time?

image.thumb.png.f0b77ad569f3e5568da7f425c05d48f1.png

    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source dev='/dev/sdn'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='1' bus='0' target='0' unit='3'/>
    </disk>

I guess people that passthrough HD's and GPU have some fix to do this

 

Link to comment
23 minutes ago, casperse said:

So like this:

image.png.720aaacd12bcf2dc83a37b3e4eb71905.png

 


source dev=/dev/disk/by-id/ST10000NE0004-1ZF101_ZA21DG4A

 :D - Sorry for being Thick...

yes - as long as that is the correct serial number for the disk you want to pass through.

 

FYI:  the /dev/sdX number do not change often as normally they are allocated in the order Linux sees them (which is timing dependent so normally consistent (but not guaranteed).    However if you accidentally pass through the wrong disk because the sdX value changed it can be catastrophic making the contents of that disk corrupt - not something one wants to take even a small chance of happening.

  • Thanks 1
Link to comment

Ok so I started changing my drives:

    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source dev='/dev/disk/by-id/ST10000NE0004-1ZF101_ZA21DG4A'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='1' bus='0' target='0' unit='3'/>
    </disk>

Serial from the dashboard ID:

image.png.0038d4487a32952ca812591627427cec.png

 

And trying to start I get:

image.png.c479719a7470b20b4d0ded9bf48e253e.png

Update tried the serial number I could save the VM but it couldnt start

 

Sorry @itimpi this doesn't seem to work?

 

Edited by casperse
Link to comment

I think I found the solution you have to add "ata-" then it works

    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source dev='/dev/disk/by-id/ata-ST10000NE0004-1ZF101_ZA21DG4A'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='1' bus='0' target='0' unit='3'/>
    </disk>

 

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.