LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-11-2018, 02:34 PM   #1
Ghostv12
LQ Newbie
 
Registered: May 2018
Posts: 5

Rep: Reputation: Disabled
Debian server access to storage question


Good day everyone ,

I recently rented a server with Debian 9.4 Stretch minimal installed and i'm having some issues using the full disk space which is 8tb (or 2x 4tb). Some applications like x2go only detect 2tb available for the root user or other users. I would like to have access to the full storage for all 3 users.

Here is the disk structure with different commands :

root@Debian-94-stretch-64-minimal ~ # df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 73M 3.1G 3% /run
/dev/md2 2.0T 3.1G 1.9T 1% /
tmpfs 16G 20K 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md1 488M 39M 424M 9% /boot
/dev/md3 1.7T 48G 1.5T 4% /home
tmpfs 3.2G 4.0K 3.2G 1% /run/user/0
tmpfs 3.2G 4.0K 3.2G 1% /run/user/1000
tmpfs 3.2G 4.0K 3.2G 1% /run/user/1001


root@Debian-94-stretch-64-minimal ~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.7T 0 disk
??sda1 8:1 0 16G 0 part
? ??md0 9:0 0 16G 0 raid1 [SWAP]
??sda2 8:2 0 512M 0 part
? ??md1 9:1 0 511.4M 0 raid1 /boot
??sda3 8:3 0 2T 0 part
? ??md2 9:2 0 2T 0 raid1 /
??sda4 8:4 0 1.7T 0 part
? ??md3 9:3 0 1.7T 0 raid1 /home
??sda5 8:5 0 1M 0 part
sdb 8:16 0 3.7T 0 disk
??sdb1 8:17 0 16G 0 part
? ??md0 9:0 0 16G 0 raid1 [SWAP]
??sdb2 8:18 0 512M 0 part
? ??md1 9:1 0 511.4M 0 raid1 /boot
??sdb3 8:19 0 2T 0 part
? ??md2 9:2 0 2T 0 raid1 /
??sdb4 8:20 0 1.7T 0 part
? ??md3 9:3 0 1.7T 0 raid1 /home
??sdb5 8:21 0 1M 0 part


Can someone please tell me if there is a solution for this ?

Thanks

Last edited by Ghostv12; 05-11-2018 at 02:36 PM.
 
Old 05-11-2018, 02:50 PM   #2
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
I think you got (software)RAID1, so the total capacity is 4Tb, furthermore its split in two big parts:
2Tb for /
1.7Tb for /home
 
1 members found this post helpful.
Old 05-11-2018, 03:11 PM   #3
Ghostv12
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hello grange ,

Thank you for pointing that out. I didn't know what raid 1 was.
Is there a way to change the setup to 8tb ?
Maybe i should contact the company ( Hetzner) to change the raid setup or order a different server with raid 0 to
have the 8tb i wanted ?
 
Old 05-11-2018, 03:18 PM   #4
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
well, other than backing up *everything* and repartitioning, I don't know.

i think you could use tar+some archiver to backup everything except some special dirs, keeping the file attributes, then repartition the disks, choose filesystem. and restore backup and install grub (don't forget to edit /etc/fstab).

better option, use something like clonezilla, its more user-friendly, but I'm not sure if it can handle software raid properly.

anyway, you should do it from livecd or singleuser mode.



wait for someone more experienced to reply..
 
1 members found this post helpful.
Old 05-11-2018, 03:35 PM   #5
Ghostv12
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
That looks to be alot of work for a newbie.
I already contacted Hetzner to ask what would be the best solution.
I guess the easiest thing would be to start from scratch with a provided raid 0 setup by Hetzner , since there was not alot installed anyway.

Thank you for the quick reply.
 
Old 05-11-2018, 04:37 PM   #6
jhoneyperker
LQ Newbie
 
Registered: May 2018
Posts: 1

Rep: Reputation: Disabled
thank you
 
Old 05-11-2018, 05:19 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Why do you need raid? I don't think raid 0 will make much difference on virtual disks. And if you wreck it you've got hamburger.
 
1 members found this post helpful.
Old 05-11-2018, 05:41 PM   #8
Ghostv12
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hello machine ,

I do like hamburgers but apart from that you are probably right.
As long as i can use 8tb , everything is ok.


Hetzner just replied to my ticket. Seems they have a server rescue option with installimage.
I will be able to choose raid and partitions that way.


Thanks to everyone for making me a bit wiser.
 
Old 05-11-2018, 07:36 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
If you formatted the drives as DOS / MBR, then you can only access 2TB of the disk. You need to use GPT partitioning for drives > 2TB. Plus enclosures and other things that support > 2TB as well.
 
1 members found this post helpful.
Old 05-12-2018, 07:42 PM   #10
Ghostv12
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi Shadow7 ,

Thanks for your input , i'm reading the installimage guide first before doing anything else.

This was included :

GRUB2 is the preferred boot loader and is used when it is supported by the operating system tools (like YAST), otherwise GRUB (GRUB legacy) is used. The usage of LILO is no longer supported.

So that should be allright.
 
  


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
LXer: High-Availability Storage with GlusterFS on Debian 8 - Mirror across two storage servers LXer Syndicated Linux News 0 03-23-2016 01:36 PM
LXer: Creating An NFS-Like Standalone Storage Server With GlusterFS 3.0.x On Debian Squeeze LXer Syndicated Linux News 0 05-16-2012 01:20 PM
LXer: Distributed Storage Across Four Storage Nodes With GlusterFS On Debian Lenny LXer Syndicated Linux News 0 06-25-2009 02:40 PM
LXer: Creating An NFS-Like Standalone Storage Server With GlusterFS On Debian Lenny LXer Syndicated Linux News 0 06-04-2009 06:20 PM
How to add more storage to my server? (The question isn't as dumb as it sounds...) Mountain Linux - Server 5 03-01-2009 02:27 PM

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

All times are GMT -5. The time now is 01:50 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