Can I use command line to manage my files?


Lancer

10 posts in this topic Last Reply

Recommended Posts

I have done couple changes to my Unraid service last week:

1. Since I set the "appdate" share as cache only, so I delete the empty folder "/appdate" in /mnt/disk1 by "rm -rf"

2. I mounted a new disk for the downloads, after checked in forum, I think mover cannot apply on files that already in disks, so I moved older downloads in disk1 to disk2 by "mv -f"

 

After I done those changes, my unraid service crashed 1~2 times a day, first I thought this may caused by my docker or VM, but the service keep crashing after I stoped the docker and VM.

And one of my disks was disabled by system during the checking yesterday. But verified in my desktop, this disk is working fine but the service still disable this disk.

 

So I will re-install the Unraid OS tonight, and I may need some help for future use:

1. Can I use command line like "rm" or "mv" to manage my files in Unraid. (Will this cause error in the parity? As the parity won't know if I deleted some file in disk)

2. What's the best way to manage files in disks like delete the file in disk1 or move something in disk1 to disk2?

 

Thanks in advance😀

Link to post

Yes, you can manage files manually.

 

if Unraid disables a disk then this means that a write to it failed for some reason, so you probably need to pin down the cause.   It might just be a cabling issue, but it could be something else.

Link to post
4 hours ago, Lancer said:

I have done couple changes to my Unraid service last week:

1. Since I set the "appdate" share as cache only, so I delete the empty folder "/appdate" in /mnt/disk1 by "rm -rf"

2. I mounted a new disk for the downloads, after checked in forum, I think mover cannot apply on files that already in disks, so I moved older downloads in disk1 to disk2 by "mv -f"

 

After I done those changes, my unraid service crashed 1~2 times a day, first I thought this may caused by my docker or VM, but the service keep crashing after I stoped the docker and VM.

And one of my disks was disabled by system during the checking yesterday. But verified in my desktop, this disk is working fine but the service still disable this disk.

 

So I will re-install the Unraid OS tonight, and I may need some help for future use:

1. Can I use command line like "rm" or "mv" to manage my files in Unraid. (Will this cause error in the parity? As the parity won't know if I deleted some file in disk)

2. What's the best way to manage files in disks like delete the file in disk1 or move something in disk1 to disk2?

 

Thanks in advance😀

Your crashing and disabled drive has nothing to with those commands.

 

What do you mean "unraid service"? What exactly crashed?

 

With regards to the disk, it would be a good idea to attach Diagnostics (Tools -> Diagnostics -> attach zip file to your next post) so someone can have a look at your disk SMART.

A disk can drop offline with no actual damage to the disk itself (e.g. cable problem) but it doesn't mean the write intended to the disk is complete. Hence a write error hence disk is disabled.

Link to post
12 hours ago, testdasi said:

Your crashing and disabled drive has nothing to with those commands.

 

What do you mean "unraid service"? What exactly crashed?

 

With regards to the disk, it would be a good idea to attach Diagnostics (Tools -> Diagnostics -> attach zip file to your next post) so someone can have a look at your disk SMART.

A disk can drop offline with no actual damage to the disk itself (e.g. cable problem) but it doesn't mean the write intended to the disk is complete. Hence a write error hence disk is disabled.

My bad, I will download the diagnostics before seeking help next time.

 

Thank you for the help, now I'm comfortable to use command lines to manage.

Link to post
  • 3 weeks later...

Hi,

 

Just migrate from OMV to Unraid
I have 3 data disks, one parity and 2 SSD cache disks.

Now I wonder how parity works when moving data between disks, using CLI (mv /mnt/disk1/stuff/* /mnt/disk2/stuff/).

Do I need to launch a job to re-compute the parity (as snapraid), or it's done automatically ?(even if I don't mv/copy through /mnt/user(0) folders)
 

Link to post

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.