You are not logged in.

#1 2022-10-27 09:48:17

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

Check disk space usuage & Partition mirroring

Hello all,

I have an headless server running few services (i.e. Plex, Jellyfin, pyLoad, etc) and have couple of questions.

I just added a  third hard drive to it, the first one being a SSD for the system and home - the second one is for media, and now the third one is to back up the second one that contains all my photos, videos, music collection etc.

Now I have been reading about setting up RAID but I am concerned with the setup and the clear warning message on the wiki that the setup can lead to data loss.

And on top of that the server does not run all the time but only when someone is consuming media.

So my question is what is the best options to achieve that back up? Also, to add to that not all  folder needs to be mirrored and files must be deleted on the back up when they are deleted on the original drive.

Also, I realised that my root drive was full last night - so I cleaned pacman cache folder and free up some space but it is still used above the level I would assume it needs.

Is there a tool that I can use to drill down and find those larger files? I used dh and du but it's not very useful to drill down.

Any help would be appreciated.

thank you for reading

Offline

#2 2022-10-27 10:43:36

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: Check disk space usuage & Partition mirroring

sweetthdevil wrote:

Now I have been reading about setting up RAID but I am concerned with the setup and the clear warning message on the wiki that the setup can lead to data loss.

RAIDn != backup. Eg.: what if your machine caught on fire? In this scenario RAID is pretty useless.
If you'll have a look at the WIKI, you'll find out a lot of infos about Backups and a lot of ways of doing it: https://wiki.archlinux.org/title/Synchr … p_programs.
I am not a backup expert, so let's wait for someone more knowledgeable on the subject to jump in here. wink


sweetthdevil wrote:

Also, I realised that my root drive was full last night - so I cleaned pacman cache folder and free up some space but it is still used above the level I would assume it needs.

# du -h -s -x --exclude=/dev --exclude=/run --exclude=/mnt --exclude=/proc --exclude=/sys /*

<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2022-10-27 10:50:05

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Check disk space usuage & Partition mirroring

sweetthdevil wrote:

Is there a tool that I can use to drill down and find those larger files? I used dh and du but it's not very useful to drill down.

Try ncdu.

Offline

#4 2022-10-27 11:06:54

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Check disk space usuage & Partition mirroring

sweetthdevil wrote:

So my question is what is the best options to achieve that back up?

Put the drive in another machine that's in a different physical location and only connect it when you run a backup.
Otherwise it's not a backup, it's only a method of increasing your uptime when you have a single drive failure. A PSU failure, motherboard error, physical disaster etc could otherwise still take out all of your data.

Is there a tool that I can use to drill down and find those larger files?

ncdu

Moving to NC.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2022-10-28 07:51:33

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

Re: Check disk space usuage & Partition mirroring

Sorry for the late reply - was quite busy the last couple of days.

Thank you for the replies - ncdu is perfect and was very useful to find the culprit.

I understand the point of have the two disk in the same unit and the risk involve, but for that I already have other back up. I will have a read of the wiki and go from there thank you.

Offline

Board footer

Powered by FluxBB