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.
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
"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/
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.
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.
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
" 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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.