Unraid Delete Share

Unraid Delete Share

From the Shares tab, you can either create a new share or edit' an existing share. Click the Help icon in the top-right of the Unraid webGui when configuring shares for more information on the settings available. User Shares are implemented by using Linux Fuse file system support. I must be missing something totally obvious. I setup an unRAID server to play around with some old drives I had till my new permanent drives came. I set up an array with 2 parity, 4 data and 1 cache drive. All worked well. My new drives came in today and I'd like to remove the old array and just set up a new one without those drives.

Consider Using Device Encryption

When the share is empty there is a Delete checkbox next to the 'Apply' button on the share's edit page. When you check this box the Apply button label changes to Delete. To empty the share, navigate to it under Windows Network (or OS X Finder) and delete all the files/directories.

We recommend using xfs encryption for array disks and btrfs encryption for the cache pool. It is highly recommended that you encrypt before writing data to your server because if you want to convert to encrypted later, you will have to remove all of your data off, reformat all of your drives and then move all of your data back on. Not fun. Use a strong encryption passphrase and make sure to not forget it. If forgotten, there is no way for anyone to be able to recover your encrypted data! Also, be sure to view your passphrase and check to make sure your phrase decrypts drives before transferring data over to your array initially.

Important Note on Passphrases: Enter a passphrase of up to 512 characters. It is highly advisable to only use the 95 printable characters from the first 128 characters of the ASCII table, as they will always have the same binary representation. Other characters may have different encoding depending on system configuration and your passphrase will not work with a different encoding. If you want a longer passphrase or to include binary data, upload a keyfile instead.

Unraid Delete Share Iphone

Restrict Share Access

After ensuring your root password is strong, it is best to create other Users on your Unraid server and to set the appropriate shares access. If particular users don't need write access, make them read only. Users can be created under the 'Users' tab and Share and SMB security settings can be accessed by clicking on each individual user share under the 'Shares' tab.

Unraid Delete Share Photos

There are many reasons to like unRAID, one of them is it’s ability to easily add drives of mismatched size as and when they become available to you. I had followed this principle over the years and ended up with a hodge-podge of drives. As was my want I’ve decided to remove all 6 (yes 6) drives at once from my array and replace them with 2x 3TBs.

This guide will attempt to make the process of removing drives from unRAID a SIMPLE process, something which much of the information around thus far has failed to do. I’ll include screenshots where required, and will always respond to comments below. With that in mind, let’s get cracking!

Identifying the drive(s) to be removed

So I’ll be focusing on only one drive here, but you can easily repeat these steps for as many drives as you want. But first, a disclaimer.

During this process your array will require parity to recalculated at some point, thus leaving your array unprotected for some time (maybe up to 12 hours). Proceed at your OWN RISK!

Unraid Clear Disk

Before you begin I STRONGLY advise you to take a screenshot of your drive configuration as this will prove a useful reference throughout this guide. The drive I will use during this guide is ‘disk 8’.

Now then, this is where we remove the drives from the array. Using your unRAID web interface go to Utilities > New Config > Check the box and reset your drive config.

What this does is reset the drive list that unRAID uses. If you go back to the main array page now, you’ll see that your drives are ALL unassigned. No data has been lost or deleted at this point, so if you wish you can reassign all drives as they were and restart the array with valid parity.

Ok, next step is to reassign the drives you want to KEEP only. Leave the drives to be removed unassigned, start the array and let the parity resync complete (this can take a while). Optionally, you can do the parity resync at the end – it’s up to you (it’s what I did).

Start the array and it should look something like this now.

Hopefully this make sense, but I’ll recap just incase. We have:

  • reset the drive assignments that unRAID uses and created a new config
  • added the drives we want to KEEP to a ‘new’ array
  • not deleted any data
  • *optionally recreated Parity

Mount the removed drive(s)

I’m presuming that the drives you’ve removed have data on them that you want to be kept safe, if so read on.

Log in to telnet, ssh or console (preferred) on your unRAID box. Then using your old array screenshot as a guide find the ‘dev name’ of your disk, for example disk 8, was (sdl).

Now we want to create a mount point for the old drive under /mnt and mount it!

Your drives most likely have only one partition (that’s the number after sdl refers to below) but if you want to check, run fdisk -l. My output is below purely for reference.

You may repeat this as many times as you like so as to mount each old drive, but you’ll need a separate mount point for each to mount them concurrently.

Copying across the data using MC

MC stands for Midnight Commander and is built-in to unRAID. To check that you’ve mounted the right drive to right place, run

Unraid Delete Share Mac

The output from this command is very useful and gives you an idea of how much data there is to move. See below:

So now we know that there is 594GB of data on my old drive, I want to transfer the whole lot. Fire up midnight commander with a simple command.

Unraid Delete Share

Navigate user the arrows and enter keys to /mnt/olddrive under which will be the directory structure you should recognise from unRAID. I store everything in one folder called /Media so on the left pane highlight the folder you want to move. Then in the right pane navigate to /mnt/user and go back to the left pane.

Then, press F6 (this will move all data, only deleting from old drive upon successful completion), selecting preserve attributes is a personal choice but I like timestamps. Kind of hard to explain like this but hopefully this next screenshot helps…

This process will likely take some time and will vary drastically depending on the amount of data to be transferred. The ‘in progress’ screenshot is below

So to recap this section we have

  • mounted the removed drive (referred to as olddrive) to /mnt/olddrive
  • checked we’ve mounted the right drive to the right spot with ‘df -h’
  • used mc to transfer all the data back to /mnt/user (which is the array).

Finish and tidy up

Unraid Midnight Commander

Once you’ve finished transferring stuff unmount the old drive with umount below. Close mc and cd (change) out of the that directory if it doesn’t work and try again.

Clear

Unraid Delete Share List

That’s it. Repeat as necessary for each drive and you’re good to go.

It’s not as complex as this guide makes it seem and you’ll really get the hang of it within a couple of go’s! Thanks for reading.

Unraid Delete Share App

Please let me know if there’s anything I can change in this guide to make it easier – it’s aimed at the beginner…