LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-31-2016, 04:42 PM   #1
AwsomeNick
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Rep: Reputation: Disabled
Debian 8 Partitions


Hi there guys. Nice to meet all of you. I'm having a bit of a problem.
I have a server with Debian 8 with 2 disks on it, total size of ~1.2TB SAS disks.
Problem is that i can only see half of the amount or only 1 disk. I would really like and would really help me if i could get quided on how to do to show the 2 disks as 1 disk of ~1.2TB and use the entire space available.
I really have no idea on how to do this.

Quote:
Disk /dev/sda: 558.9 GiB, 600093712384 bytes, 1172058032 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x5f5da757

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 614399 612352 299M fd Linux raid autodetect
/dev/sda2 614400 1662975 1048576 512M 82 Linux swap / Solaris
/dev/sda3 1662976 43606015 41943040 20G fd Linux raid autodetect
/dev/sda4 43606016 1172056063 1128450048 538.1G fd Linux raid autodetect

Disk /dev/sdb: 558.9 GiB, 600093712384 bytes, 1172058032 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x117c1049

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 614399 612352 299M fd Linux raid autodetect
/dev/sdb2 614400 1662975 1048576 512M 82 Linux swap / Solaris
/dev/sdb3 1662976 43606015 41943040 20G fd Linux raid autodetect
/dev/sdb4 43606016 1172056063 1128450048 538.1G fd Linux raid autodetect
 
Old 10-31-2016, 05:35 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,372

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Hello and welcome to LQ.


"get quided on how to do to show the 2 disks as 1 disk of ~1.2TB"

The only way I know to do that would be to use raid or lvm or other advanced tools to combine space like zfs. (I may not understand your question however)


The command du or df is a common tool but I think you need to dig deeper for how these drives are installed so you might try tools like fdisk or gparted or other partition tool for more infor. http://www.binarytides.com/linux-com...sk-partitions/
 
Old 10-31-2016, 05:57 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,928

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
In addition, my guess is this is a software RAID 1 array which disk 2 mirrors disk 1 so the total size of the array is the size of the smallest disk. If you want to combine the disks as one then as suggested use RAID0, LVM etc.

Post the output of the command:
cat /proc/mdstat

Last edited by michaelk; 11-02-2016 at 05:45 AM.
 
Old 10-31-2016, 07:21 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Also "lsblk -f"
 
Old 11-02-2016, 12:10 AM   #5
AwsomeNick
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
The disks were in RAID0 config but it stil showed only ~512GB space instead of ~1.2TB


Personalities : [raid1]
md2 : active raid1 sda4[0] sdb4[1]
564093952 blocks super 1.2 [2/2] [UU]
bitmap: 0/5 pages [0KB], 65536KB chunk

md1 : active raid1 sda3[0] sdb3[1]
20955136 blocks super 1.2 [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
305856 blocks super 1.2 [2/2] [UU]


NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 linux_ra
4df9bd24-b756-eb10-00e2-b9fcd3d0b834
│ └─md0 ext4 b064001a-c32d-4c27-9a44-742b5c0c3c1b /boot
├─sda2 swap ffa30a56-6dd8-43f8-abd4-4588c3c223e6 [SWAP]
├─sda3 linux_ra
aad03985-5820-4dd3-5acb-960eb03eb3fb
│ └─md1 ext4 bf4850a6-120a-4f10-ba30-9efaf6fe79a9 /
└─sda4 linux_ra
61781ce8-07a7-18de-5ebf-a0b3b1fd3437
└─md2 ext4 06eaaa76-e205-4fd9-8ea1-7e7eb90ee732 /data
sdb
├─sdb1 linux_ra
4df9bd24-b756-eb10-00e2-b9fcd3d0b834
│ └─md0 ext4 b064001a-c32d-4c27-9a44-742b5c0c3c1b /boot
├─sdb2 swap 380cbd5a-2f96-4c8a-80bc-b08f6ce669eb [SWAP]
├─sdb3 linux_ra
aad03985-5820-4dd3-5acb-960eb03eb3fb
│ └─md1 ext4 bf4850a6-120a-4f10-ba30-9efaf6fe79a9 /
└─sdb4 linux_ra
61781ce8-07a7-18de-5ebf-a0b3b1fd3437
└─md2 ext4 06eaaa76-e205-4fd9-8ea1-7e7eb90ee732 /data



I can set to different RAID configs from the server control panel.
1. RAID0
2. RAID1
3. No RAID

Last edited by AwsomeNick; 11-02-2016 at 12:12 AM.
 
Old 11-02-2016, 12:48 AM   #6
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian & Fedora mostly
Posts: 2,022

Rep: Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539
Your personalities says you're running RAID1, not RAID0

Last edited by Timothy Miller; 11-02-2016 at 12:52 AM.
 
Old 11-02-2016, 01:02 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
When posting output use [code] tags to maintain readability - including the initial post, edit the [quote] to [code] in that instance.

You are showing RAID1, so as explained, no surprise you can only see "half" the nominal space. What do you want to do - and be aware that almost any solution will erase at least one (and maybe both) disk(s). If you need/want data on those disks, back it all up - now.
You have two separate RAID1 arrays for /boot and the root.

Having access to all the space on the disks is very different to "show the 2 disks as 1 disk of ~1.2TB and use the entire space available."
Why do you insist on it showing as "1 disk" ?. Hopefully this is just a case of bad terminology.
 
Old 11-02-2016, 10:09 AM   #8
AwsomeNick
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Strange, i set in control panel to use No Raid config.
Just read that i should use RAID0 to use both disk space but if one disk fails is bye-bye Kansas. Well what would be the odds for that since i don't really use the server at 100% load everytime. it just for backup and other stuff.
The problem is that on other servers i dont have any option in control panel for RAID configurations and should use some programs that i don't have any experience with.
This is my problem.
This server with 2 disks was just a test to see how i can combine the disks to use the entire space, but on a server with 4 disks of 1TB each i dont have RAID config options and i use only 1TB of 4 total
 
Old 11-02-2016, 04:26 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,372

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
" a server with 4 disks of 1TB each i dont have RAID config options and i use only 1TB of 4 total"

You do have options. I don't care much for raid cards as much as I used to. I never did like fake raid cards and have used many many hardware raid. However you can use disks in quite a number of ways from software raid to advanced file system raids and LVM.
 
Old 11-02-2016, 05:42 PM   #10
AwsomeNick
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
I don't know how to use "advanced file system raids and LVM" since i'm posting in the newbie section
 
Old 11-02-2016, 09:42 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,372

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Ohhhh. We are all newbies.

What choice would you like us to help you with?

Software raid,
LVM,
ZFS
Or another option?
 
Old 11-03-2016, 01:32 AM   #12
AwsomeNick
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Which is easier and better
 
Old 11-03-2016, 06:59 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,372

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Wish I could answer.

LVM and software raid has been popular for a very long time. My guess is software raid is older but only a guess. ZFS is rather new.

I tend to use what is common in the distro I use. RH based systems tend to default on LVM. The tools for it are well known and supported. Almost every major distro allows you to access LVM but may require some downloads. Some live media may not contain LVM support. I'd think that many people here could use LVM in their sleep to manage media.

Software raid is not exactly the same as LVM. LVM is a resource management tool. Software raid basically follows the pattern of hardware raid with ability to use mismatched drives and such.

ZFS might be the lesser choice for a new user much like BTRFS would be. ZFS is much like LVM with possibly greater limits. (nearly unlimited limits) ZFS as a file system slash media manager has a full host of abilities.
 
Old 11-04-2016, 12:02 AM   #14
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,367
Blog Entries: 6

Rep: Reputation: Disabled
Educate yourself and that way you may not run into any surprises during your initial set up of Raid or LVM. Knowing the difference between the functionality of the 2 should help you to make your decision. LVM worked well for me when I was running Fedora and CentOS.

Good Luck-

https://rog.asus.com/articles/maximu...d-setup-guide/
http://www.tecmint.com/create-raid1-in-linux/
https://raid.wiki.kernel.org/index.php/RAID_setup

https://www.howtoforge.com/linux_lvm
https://linuxconfig.org/linux-lvm-lo...volume-manager
http://www.howtogeek.com/howto/40702...ent-in-ubuntu/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] debian 6 can't see partitions on SATA openmind Linux - Newbie 2 05-04-2013 04:24 PM
resize debian partitions cccc Debian 1 11-01-2008 12:11 PM
debian can not see partitions walterbyrd Debian 3 11-05-2006 05:10 PM
partitions between XP and Debian jughead Linux - Newbie 5 07-20-2005 01:16 PM
Debian Extended Partitions FlyingMoose Linux - Distributions 2 03-22-2003 04:05 PM


All times are GMT -5. The time now is 04:00 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration