LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-16-2020, 06:51 PM   #1
tshd
LQ Newbie
 
Registered: Mar 2020
Posts: 6

Rep: Reputation: Disabled
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...

when running lsblk I get the below export.

NAME MAJ:MIN RM SIZE RO FSTYPE MOUNTPOINT
sda 8:0 0 2.7T 0
├─sda1
│ 8:1 0 16G 0 swap [SWAP]
├─sda2
│ 8:2 0 512M 0 ext3 /boot
├─sda3
│ 8:3 0 1T 0 ext4 /
├─sda4
│ 8:4 0 1.7T 0 ext4 /home
└─sda5
8:5 0 1M 0
sdb 8:16 0 2.7T 0
├─sdb1
│ 8:17 0 16G 0 linux_
├─sdb2
│ 8:18 0 512M 0 linux_
├─sdb3
│ 8:19 0 512G 0 linux_
├─sdb4
│ 8:20 0 2.2T 0 linux_
└─sdb5
8:21 0 1M 0


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...
 
Old 03-16-2020, 07:23 PM   #2
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by tshd View Post
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...

when running lsblk I get the below export.

NAME MAJ:MIN RM SIZE RO FSTYPE MOUNTPOINT
sda 8:0 0 2.7T 0
├─sda1
│ 8:1 0 16G 0 swap [SWAP]
├─sda2
│ 8:2 0 512M 0 ext3 /boot
├─sda3
│ 8:3 0 1T 0 ext4 /
├─sda4
│ 8:4 0 1.7T 0 ext4 /home
└─sda5
8:5 0 1M 0
sdb 8:16 0 2.7T 0
├─sdb1
│ 8:17 0 16G 0 linux_
├─sdb2
│ 8:18 0 512M 0 linux_
├─sdb3
│ 8:19 0 512G 0 linux_
├─sdb4
│ 8:20 0 2.2T 0 linux_
└─sdb5
8:21 0 1M 0


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 )
 
Old 03-16-2020, 08:25 PM   #3
tshd
LQ Newbie
 
Registered: Mar 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rnturn View Post
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.)
Potentially, Ubuntu installed by Hetzner, I presume they would have used the standard installimage script? You can read up about it here: https://wiki.hetzner.de/index.php/Installimage/en


Quote:
Originally Posted by rnturn View Post
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?
 
Old 03-16-2020, 08:25 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
"Hetzner Dedi " What exactly is that? Online resource or local server?
 
Old 03-17-2020, 02:37 PM   #5
tshd
LQ Newbie
 
Registered: Mar 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
"Hetzner Dedi " What exactly is that? Online resource or local server?
Hetzner are a provider in Germany. The machine is a dedicated server from them.
 
Old 03-17-2020, 10:32 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding 2 SAS HDD (RAID -0) to existing 4 HDD (2 RAID-0), then swapping 2 pairs kaza Linux - Hardware 2 01-23-2019 03:23 PM
Run customised HDD driver for external HDD while generic HDD driver for bootable purpose sonia49 Linux - Newbie 1 09-28-2016 08:52 PM
[SOLVED] Partiotioing a 6TB hadr drive using parted-getting error when running mklabel mike_andy52 Linux - Newbie 5 07-31-2015 01:49 PM
Need Help - Using DD to image 6TB Server to Multiple External Hard Drives Trish66 Linux - Newbie 1 01-11-2012 11:58 AM
[SOLVED] 6TB RAID on Solaris 10 - shows up as 2TB ADxD_7 Solaris / OpenSolaris 5 08-06-2010 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration