Formatting my 2x3TB HDD to appear as 1x 6TB using Raid 0 while backing up Linux setup
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Formatting my 2x3TB HDD to appear as 1x 6TB using Raid 0 while backing up Linux setup
Hi,
I have a Hetzner Dedi with 2 x 3TB HDD in which I am using as a seedbox as well as for a few project.
I can see the HDD within Settings > Disk and can see they have some sort of Raid 0? Setup.
Ideally I would like to work out where linux as a file system is installed and what is in use on the hard disks (if anything...there shouldn't be) so I can effectively format them and then utilise the full 6TB of space...
Am I right in thinking SDA has the linux file system installed and SDB is ready to be formatted and used?
Ideally I would like to to continue with raid 0 and see the 2 3TB HDD as 1 6TB disk to make it easier for me.
If I was to do this I would like to be able to run a backup command to backup my linux file system so if it was to go down the pan I can reload the linux file system and it will be almost like nothing happened...almost like a snapshot not involving the TBs of Plex data...(I would just have to re-download the TBs of Plex data etc. should I want to get hold of it again....no biggie...)
Basically I want to backup my Linux seedbox apart from the PlexData so should it all break and I need to buy a new Dedi somewhere, I can simply load my linux backup only...
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803
Rep:
Quote:
Originally Posted by tshd
Hi,
I have a Hetzner Dedi with 2 x 3TB HDD in which I am using as a seedbox as well as for a few project.
I can see the HDD within Settings > Disk and can see they have some sort of Raid 0? Setup.
Ideally I would like to work out where linux as a file system is installed and what is in use on the hard disks (if anything...there shouldn't be) so I can effectively format them and then utilise the full 6TB of space...
Am I right in thinking SDA has the linux file system installed and SDB is ready to be formatted and used?
Well... it looks like something's been done to "sdb" but I'm not familiar with a "linux_" filesystem type. I take it that this drive has been re-purposed from some other system.
I wouldn't have partitioned "sda" that way but what's there will work OK. (I prefer my swap partitions in the middle of the disk. YMMV.)
Quote:
Ideally I would like to to continue with raid 0 and see the 2 3TB HDD as 1 6TB disk to make it easier for me.
If I was to do this I would like to be able to run a backup command to backup my linux file system so if it was to go down the pan I can reload the linux file system and it will be almost like nothing happened...almost like a snapshot not involving the TBs of Plex data...(I would just have to re-download the TBs of Plex data etc. should I want to get hold of it again....no biggie...)
Basically I want to backup my Linux seedbox apart from the PlexData so should it all break and I need to buy a new Dedi somewhere, I can simply load my linux backup only...
I trust that you're aware that, with any RAID0 configuration, a failure of either drive means a loss of all the data on that device. Backups are incredibly critical in any RAID0 setup. (RAID0 = striped data, no redundancy---as in: none, zero, nada. Lordy, I wish that RAID0 would get renamed "NotActuallyRAID".)
(I wish I had the bandwidth that made transferring terabytes of data was "no biggie". :^D )
Well... it looks like something's been done to "sdb" but I'm not familiar with a "linux_" filesystem type. I take it that this drive has been re-purposed from some other system.
I wouldn't have partitioned "sda" that way but what's there will work OK. (I prefer my swap partitions in the middle of the disk. YMMV.)
I trust that you're aware that, with any RAID0 configuration, a failure of either drive means a loss of all the data on that device. Backups are incredibly critical in any RAID0 setup. (RAID0 = striped data, no redundancy---as in: none, zero, nada. Lordy, I wish that RAID0 would get renamed "NotActuallyRAID".)
(I wish I had the bandwidth that made transferring terabytes of data was "no biggie". :^D )
Completely aware about the loss of data with RAID0, the Plex library has about 250GB of IMDB Top Rated bits and a few others...the server is on an unmetred 1Gbit line so it isn't the end of the world.
What is the best way to backup my linux setup (without the plex data) so that if it goes wrong I have something?
I would be guessing these days the disks are actually SSD, so placement is probably of no concern. The allocation on /dev/sda (your system disk as you surmised) is probably just the installer taking (fixed) ratios of the full space on the device. A terabyte for the root is (usually) a bit excessive - however in this case the Plex media is probably under /var/lib or similar, so will mess with your backup plans.
You can't simply make both disks into a RAID0 - certainly not while you have data (including operating system) on them. You could/should shrink the root and maybe /home and then use LVM to add the freed up space to the space on /dev/sdb. Best option all round, and can be done in stages without affecting the running system.
First thing would be to format /dev/sdb as a pv and move the plex data over, then you can worry about the backup - look into timeshift for that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.