Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
CloudLinux
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Unmounted drive

ClarkSandamClarkSandam Member
edited May 2020 in Help

Hello, I have a dedicated server on Hetzner, I had to install centos6 from image since they don't support this OS, but when I installed I found out that I have only one drive mounted, but in fact I have 2 drives in my server as you can see:


[root@CentOS-69-64-minimal ~]# lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sdb       8:16   0 447.1G  0 disk
├─sdb1    8:17   0     4G  0 part
│ └─md0   9:0    0     4G  0 raid1 [SWAP]
├─sdb2    8:18   0   512M  0 part
│ └─md1   9:1    0   512M  0 raid1 /boot
└─sdb3    8:19   0 442.6G  0 part
  └─md2   9:2    0 442.6G  0 raid1 /
sda       8:0    0 447.1G  0 disk
├─sda1    8:1    0     4G  0 part
│ └─md0   9:0    0     4G  0 raid1 [SWAP]
├─sda2    8:2    0   512M  0 part
│ └─md1   9:1    0   512M  0 raid1 /boot
└─sda3    8:3    0 442.6G  0 part
  └─md2   9:2    0 442.6G  0 raid1 /

[root@CentOS-69-64-minimal ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/md2        435G   29G  385G   7% /
tmpfs           127G  472K  127G   1% /dev/shm
/dev/md1        496M   59M  412M  13% /boot

[root@CentOS-69-64-minimal ~]# blkid -o list
device             fs_type   label      mount point            UUID

/dev/sda1          linux_raid_member rescue:0 (in use)         b7c90fe5-96cb-184d-3907-d6d1a0d67565
/dev/sda2          linux_raid_member    (in use)               7910700e-96e5-b2b5-776c-2c25004bd7b2
/dev/sda3          ext4                 (in use)               0fcb54b4-2a95-4c2a-a691-6049632523c9
/dev/sdb1          linux_raid_member rescue:0 (in use)         b7c90fe5-96cb-184d-3907-d6d1a0d67565
/dev/sdb2          linux_raid_member    (in use)               7910700e-96e5-b2b5-776c-2c25004bd7b2
/dev/sdb3          linux_raid_member rescue:2 (in use)         bc9c6055-6469-0731-5a92-607c88438a4a
/dev/md0           swap                 <swap>                 6b31b83d-daed-4d61-a2cc-991c1065131a
/dev/md1           ext3                 /boot                  50fbf70e-9fd7-40e9-8ddd-f082062566df
/dev/md2           ext4                 /                      0fcb54b4-2a95-4c2a-a691-6049632523c9

[root@CentOS-69-64-minimal ~]# lsblk  --noheadings --raw | awk '$1~/s.*[[:digit:]]/ && $7==""'
sdb1 8:17 0 4G 0 part
sdb2 8:18 0 512M 0 part
sdb3 8:19 0 442.6G 0 part
sda1 8:1 0 4G 0 part
sda2 8:2 0 512M 0 part
sda3 8:3 0 442.6G 0 part

my question is how can I mount the second drive without losing my files/data on my whole server.

thank you.

Comments

  • SaahibSaahib Host Rep, Veteran
    edited May 2020

    What is

    cat /proc/mdstat 
    
  • BharatBBharatB Member, Patron Provider

    You can see only 1 Disk because it's in RAID just check your raid status. I think it's RAID-1

    Thanked by 1Hetzner_OL
  • Yes - Its raid 1.
    You can see by your lsblk output in your first screen.

  • WebProjectWebProject Veteran
    edited May 2020

    Personally I can see two hard drives sda and sdb, in RAID-1. I can see only one issue it’s just luck of server administration

  • seriesnseriesn Member

    ClarkSandam said: sdb 8:16 0 447.1G 0 disk

    ├─sdb1 8:17 0 4G 0 part
    │ └─md0 9:0 0 4G 0 raid1 [SWAP]
    ├─sdb2 8:18 0 512M 0 part
    │ └─md1 9:1 0 512M 0 raid1 /boot
    └─sdb3 8:19 0 442.6G 0 part
    └─md2 9:2 0 442.6G 0 raid1 /
    sda 8:0 0 447.1G 0 disk
    ├─sda1 8:1 0 4G 0 part
    │ └─md0 9:0 0 4G 0 raid1 [SWAP]
    ├─sda2 8:2 0 512M 0 part
    │ └─md1 9:1 0 512M 0 raid1 /boot
    └─sda3 8:3 0 442.6G 0 part
    └─md2 9:2 0 442.6G 0 raid1 /

    I see two disk. What are we missing?

  • @seriesn said:

    ClarkSandam said: sdb 8:16 0 447.1G 0 disk

    ├─sdb1 8:17 0 4G 0 part
    │ └─md0 9:0 0 4G 0 raid1 [SWAP]
    ├─sdb2 8:18 0 512M 0 part
    │ └─md1 9:1 0 512M 0 raid1 /boot
    └─sdb3 8:19 0 442.6G 0 part
    └─md2 9:2 0 442.6G 0 raid1 /
    sda 8:0 0 447.1G 0 disk
    ├─sda1 8:1 0 4G 0 part
    │ └─md0 9:0 0 4G 0 raid1 [SWAP]
    ├─sda2 8:2 0 512M 0 part
    │ └─md1 9:1 0 512M 0 raid1 /boot
    └─sda3 8:3 0 442.6G 0 part
    └─md2 9:2 0 442.6G 0 raid1 /

    I see two disk. What are we missing?

    I just think ClarkSandam is a bit confused. He is seeing 2 disks but not understanding that they are in Raid 1.

    He's going to have to re-install in raid 0 or just install on 1 disk and then mount the 2nd disk. Not advised, but if he wants his full disk size available.....

    That being said - he needs to remove the raid and partitions before he re installs :smile:

  • SaahibSaahib Host Rep, Veteran

    That's why asked him to give /proc/mdstat output, at first I thought he is asking that one of the disc is not mounted / attached to raid.

Sign In or Register to comment.