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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
10-31-2016, 04:42 PM
|
#1
|
LQ Newbie
Registered: Oct 2016
Posts: 5
Rep:
|
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
|
|
|
|
10-31-2016, 05:35 PM
|
#2
|
Moderator
Registered: Mar 2008
Posts: 22,242
|
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/
|
|
|
10-31-2016, 05:57 PM
|
#3
|
Moderator
Registered: Aug 2002
Posts: 26,465
|
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.
|
|
|
10-31-2016, 07:21 PM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,315
|
Also "lsblk -f"
|
|
|
11-02-2016, 12:10 AM
|
#5
|
LQ Newbie
Registered: Oct 2016
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
11-02-2016, 12:48 AM
|
#6
|
Moderator
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,021
|
Your personalities says you're running RAID1, not RAID0
Last edited by Timothy Miller; 11-02-2016 at 12:52 AM.
|
|
|
11-02-2016, 01:02 AM
|
#7
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,315
|
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.
|
|
|
11-02-2016, 10:09 AM
|
#8
|
LQ Newbie
Registered: Oct 2016
Posts: 5
Original Poster
Rep:
|
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
|
|
|
11-02-2016, 04:26 PM
|
#9
|
Moderator
Registered: Mar 2008
Posts: 22,242
|
" 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.
|
|
|
11-02-2016, 05:42 PM
|
#10
|
LQ Newbie
Registered: Oct 2016
Posts: 5
Original Poster
Rep:
|
I don't know how to use "advanced file system raids and LVM" since i'm posting in the newbie section
|
|
|
11-02-2016, 09:42 PM
|
#11
|
Moderator
Registered: Mar 2008
Posts: 22,242
|
Ohhhh. We are all newbies.
What choice would you like us to help you with?
Software raid,
LVM,
ZFS
Or another option?
|
|
|
11-03-2016, 01:32 AM
|
#12
|
LQ Newbie
Registered: Oct 2016
Posts: 5
Original Poster
Rep:
|
Which is easier and better
|
|
|
11-03-2016, 06:59 PM
|
#13
|
Moderator
Registered: Mar 2008
Posts: 22,242
|
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.
|
|
|
11-04-2016, 12:02 AM
|
#14
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
|
|
|
All times are GMT -5. The time now is 06:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|