All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Help needed mounting 2nd drive.
Im sure this is elementary for most here but I could use some assistance. If what Im asking is to much then please PM a price to help me solve this.
Context:
I have a server with 2x3TB hard drives via hetzner. I installed the OS(debian) via there imageinstall script and successfully set raid to 0. However, I can only use one drive for space. disk -l says they are both mounted.
sda is currently partitioned and the drive I'm using. sdb is currently not being used. (see below)
let@let:~$ sudo fdisk -l
- Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: gpt
Disk identifier: FAA18204-F15E-4056-BD4F-8CFFDB4BD0D5
Device Start End Sectors Size Type
- /dev/sda1 4096 16781311 16777216 8G Linux swap
- /dev/sda2 16781312 17829887 1048576 512M Linux filesystem
- /dev/sda3 17829888 2165313535 2147483648 1T Linux filesystem
- /dev/sda4 2165313536 5860533134 3695219599 1.7T Linux filesystem
- /dev/sda5 2048 4095 2048 1M BIOS boot
Partition table entries are not in disk order.
-- My question is how do I add the HD space from "sdb" to "/dev/sda4"?
-- Lastly, If I can only use 2.7 TB out of 3TB... Why is only 1.7TB +/- accounted for in sda?**
BTW, I have webmin installed but its of no use that I could research with mounting the 2nd drive.
Comments
You don't magically add space unless you setup a RAID and make them parts of the same pool. You can format it and mount it beneath wherever you have /dev/sda4 mounted, if that's what you're looking for.
If I'm not mistaken I set up Raid 0 and my assumption was data would be evenly distributed across both drives. Either I messed up the raid setup and I was wrong.
Concerning you latter statement how would I format the other drive and mount it under /dev/sda4?
It wouldn't be under /dev/sd anywhere it'd usually be under a /dev/md setup. It doesn't look like you setup the software RAID, and hence, you're going to need to reinstall.
If you have a Hardware RAID (HWR) on Hetzner, you should have other options in your preinstall config file to setup.
I just reinstalled and set raid to 0... Here is my disk.....
root@test ~ # fdisk -l
Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xce68af73
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 4294967294 4294965247 2T 83 Linux
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: F2D3A596-3FBE-4C7A-A682-310B04A3AB99
Device Start End Sectors Size Type
/dev/sda1 4096 16781311 16777216 8G Linux swap
/dev/sda2 16781312 17829887 1048576 512M Linux filesystem
/dev/sda3 17829888 2165313535 2147483648 1T Linux filesystem
/dev/sda4 2165313536 2176757759 11444224 5.5G Linux filesystem
/dev/sda5 2048 4095 2048 1M BIOS boot
Those show your drives as themselves. Do a 'df' and see what your devices are.. You should have like /dev/md*
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 1056763060 698124 1002361464 1% /
udev 10240 0 10240 0% /dev
tmpfs 3276028 8588 3267440 1% /run
tmpfs 8190064 0 8190064 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 8190064 0 8190064 0% /sys/fs/cgroup
/dev/sda4 5501216 11192 5187536 1% /home
/dev/sda2 499656 35144 438300 8% /boot
tmpfs 1638016 0 1638016 0% /run/user/0
Just because you set RAID0 in the config doesn't mean that you actually did. You need to setup the partitions, too. Read the whole config, or just pay someone a few bucks to set it up for you.
Who wants this gig? PM me a price.
Regards.
I haven't done a Hetzner config in ages, but you do need to setup how you want the RAID setup in software, and I just don't remember how.
Concerning the partitions /home is set to all. Ive suer raid to 0 but left the patrons untouched. Unsure how to mount sdb under sda....
You need to set SWRAID 1
My brother, beers on me! Pm coming.
Now this, THIS is how you ask for help on LET, kids. Useful information, provides answers to indrectly asked questions, and gets help.