Score:0

Do mounted folders get mirrored with RAID1?

bd flag

I have two drives configured for RAID1 on a a centos 7.9 server. I have been running out of space, installed a third drive and relocated the /opt folder to this third drive.

I still seem to be running out of disk space.

With these two drives in a RAID1 configuration, and those drives mount a third drive, are the contents of this third drive included in the RAID1 mirror?

If so this would seem odd to me, as I do not want to have USB data backed up every time I mount it.

Nikita Kipriyanov avatar
za flag
Honestly, this was a bad idea to move something to non-mirrored drive, if it's needed for the system to perform its task, especially USB drive (because USB has high latency — USB mass storage is *very slow*). This defeats the purpose of having RAID1. If you are running out of space, consider investigating **what** consumes all the space and **why** and solve that problem instead.
Score:3
ru flag

RAID1 is no backup. It's mirroring to improve availability. You still need to back up your data on a regular basis.

If you add a third drive, then you logically have two drives: the previous logical drive, backed by RAID1, and the new one. Mounting a volume just creates a reference, so both drives (or rather volumes) still stay separate on the file system level.

If you regularly back up your RAID1 volume, you need to check whether that job automatically includes your new drive. That depends on how the backup is set up and there's no standard rule.

stackQA avatar
bd flag
Thanks @Zac67. I have edited the question title with the correct terminology. I don't have a backup mechanism setup like rsync or borgbackup. That is something else I need to do.
Score:0
za flag

This totally depends on the backup solution you use:

  • Proxmox Backup doesn't span file systems by itself, so if you point it to some directory in a parent system, it won't include contents of mountpoints, so if you need their contents, you must specify them individually.
  • Veeam also requires you to specify all the mounted file systems individually, else it "does not guarantee that OS will boot" (as if people use it specifically to backup OS for bare metal recovery, and not for data backups. It has the worst explanation of all).
  • BareOS includes contents of mounted file systems into backup by default, but you can configure it to not to include by setting OneFS=no in the corresponding FileSet resource.
  • tar has an option --one-file-system which tells it not to descend into directory if it's a mountpoint, but by default it will. As Amanda uses tar to backup directories, it should inherit this behaviour. In other words, it behaves like BareOS.

and so on. I am not able to list them all; there are zillion of different backup solutions. You need to read manuals of your backup software carefully, and do your own tests if this is still not clear.

stackQA avatar
bd flag
Thanks for the answer @Nikita. Some very good info which I appreciate. However I don't have a backup mechanism ... yet. Essentially I took the tools folder and placed in on a newly installed drive. The tools can be reproduced with an installation. The server is in a data centre. Again, thanks for the info. Much appreciated
djdomi avatar
za flag
veeam backup the data that has been configured. not more and not less. if you backup an entire machine then it is possible, if you backup only it's data... you know the way I mean ;)
Nikita Kipriyanov avatar
za flag
@djdcomi I have `/dev/mapper/vg0-lv0` mounted to `/var/lib/mysql` and configured Veeam to backup `/var`, should I expect it to back up my volume with databases too? Does it think I configured this data to be backed up or not? Different solutions have **different answers** to this question and have **documented it**, of all Veeam's documentation has the most vague answer. This is the whole point of the answer.
djdomi avatar
za flag
the best way is just to open a case on veeam, and ask them for the best practice imho
Nikita Kipriyanov avatar
za flag
Why would I worry? Let Veeam users worry. Hopefully, they won't face the reality the hard way. Everybody else was able to clearly document this caveat, except Veeam, I have a plenty of decent backup systems to choose.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.