Jump to content
Paul Rockliffe

Swapping in Larger Discs

16 posts in this topic Last Reply

Recommended Posts

I need more server space, so I'm adding a 4Gb disc.  My server has 5 slots for discs, but there's 5 discs in there already, I want to copy content from one of the 500Gb discs to a local machine, swap the disc, then copy the data back.

 

All of my discs contain an app data folder, that relates to dockers - is this just being backed up across all the discs, or are the dockers tied to particular discs?  Is there anything stopping me from just moving the data off, swapping the discs and moving it back?  What else might I break?

 

Thanks!

Share this post


Link to post
1 hour ago, Paul Rockliffe said:

I need more server space, so I'm adding a 4Gb disc.  My server has 5 slots for discs, but there's 5 discs in there already, I want to copy content from one of the 500Gb discs to a local machine, swap the disc, then copy the data back.

Let's just deal with this for now. You are thinking about this all wrong.

 

Just replace the 500GB disk with the 4GB disk and let it rebuild. No need to copy anything

Share this post


Link to post

Sorry, I know I have this setup wrong, but I'm currently running with no Parity disc or RAID, so the discs aren't backed up anywhere.  I'm going to sort that out in time, but that's something for further down the line.  I should have added that to my question!

Share this post


Link to post
Posted (edited)

If you have a spare PCI slot you also have the option of adding an HBA card such as the LSI SAS 9201-8i which will have two SAS ports. Each of these can be connected to four SATA drives using a SAS to SATA cable giving a total of eight mroe SATA ports.

 

There are reputable resellers on eBay who will sell tested and flashed cards ready to plug in and go.

 

EDIT : This does assume you have spare slots in your unRAID license of course.

Edited by DanielCoffey

Share this post


Link to post
Posted (edited)

For the SAS 9201-8i you need at least a PCIe 2.0 x8 (or x16) slot - this HBA is not compatible with PCI.

Edited by Zonediver

Share this post


Link to post
7 hours ago, Paul Rockliffe said:

All of my discs contain an app data folder, that relates to dockers - is this just being backed up across all the discs, or are the dockers tied to particular discs?  Is there anything stopping me from just moving the data off, swapping the discs and moving it back?  What else might I break?

These are definitely not backups and dockers aren't tied to particular disks unless you specify specific disks in the volume mappings (not recommended). Normally you would configure dockers to only work with user shares, especially if you don't know why you would do it differently.

 

Since you don't have parity it's likely you also don't have cache, which is where appdata, system, and domains shares would ideally reside.

 

If you really want to go down this road instead of adding ports, it is going to be a little more complicated than just swapping disks. You should probably disable dockers (and VMs if you have any) until you get all the data moved. I think you would have to New Config to get it to accept the replacement disk, though I'm not entirely sure how it behaves when you don't have any parity to rebuild from or indeed any parity that needs to be resynced when you change disk assignments.

Share this post


Link to post

Thanks, that's useful.  Do you know what the Docker stuff is then?  I've had a quick look and I can't see any folders that were modified recently and all the folders I drilled into are empty.  I've not checked everything yet though.  I'm wondering if I should unmount one of the discs and see if anything breaks.

Share this post


Link to post

Actually, I looked a bit further and it looks like all the files are on the drive I want to swap out!  Typical!  I don't really want to reset everything up if I can help it as I don't really know what I'm dong and it took me ages to get it all working! 

 

Can I back everything up so that I can restore it all once I've swapped the disc, or is there stuff that just won't work?

Share this post


Link to post

If your dockers are setup to use User Shares, then it doesn't matter which disk anything is on.

 

User Shares are simply the aggregate of all top level folders on cache and array. User Shares are how Unraid allows folders to span disks. You can move appdata to any disk, assuming your dockers are set up to use the appdata user share instead of the corresponding folders on specific disks.

Share this post


Link to post

You could use the 'Unassigned Devices' plugin and put the data drives in a USB housing.  Then you copy the files back from the USB drive which is directly connected to the server.  

 

Plus, I would question your decision to go with a 4TB drive.  Move up to an 8TB drive (minimum) to get yourself a bit of breathing room on storage capacity.  Get two or three of your drives out of the current setup to free up some drive slots and get a parity drive installed.  (Remember the question is, not if a hard drive will fail, but when...)  Either that or get a larger case that will support more drives.    

 

One more quick point.  Do you have at least one more backup of all irreplaceable data?  (There is another poster today who has probably lost some irreplaceable data because he did not have a backup.  And you should have a backup that is off site.  There is a greater possibility of losing data through the total destruction of your residence then from a drive failure in a properly monitored and maintained dual parity setup!)

Share this post


Link to post

Thanks, that all makes sense and I think I understand what is going on.  All the Dockers are using UserShares.

 

I don't have any thing that's irreplaceable on there that isn't backed up.  It's just media, I keep photos and documents on Google Drive then back that up to the server, so it's just the backups I have 'at risk'.  I also backup to a local computer that is in a separate workshop building, so I'm not too worried about losing data. 

 

The server is quite old, so my plan is to keep it ticking over for a little bit longer then buy a new one next time I need more capacity.

Share this post


Link to post

I started copying the appdata folder to another disc first thing this morning.  5 hours later it's found 2.4m files and is up to 20.4Gb!  The disc I'm copying to is the one with the most free space, but only 22Gb, so this looks like it isn't going to work!

Share this post


Link to post
Thanks, I meant to ask if there was a way to get UnRaid to sort this for me!  Currently at 3m files and 25.8Gb!
Are you using plex and have a sizable library? How are you copying?

Doing it over the network is going to seriously balloon the size of the share. My suggestion is to use the appdata backup plugin to back it up and then restore. Should be miles faster and wont take up any extra space

Sent from my NSA monitored device

Share this post


Link to post

Yes Plex, is that the likely culprit then?  I set UnBalance off as soon as it was recommended and it's been checking for issues ever since!  I'll look at doing a backup and restore instead.....

Share this post


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.