Howdy, Stranger!

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

Advertise on LowEndTalk.com
Unmounted drive
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

Unmounted drive

ClarkSandamClarkSandam Member
edited May 13 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:


[[email protected] ~]# 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 /

[[email protected] ~]# 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

[[email protected] ~]# 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

[[email protected] ~]# 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 Member
    edited May 13

    What is

    cat /proc/mdstat 
    
  • BharatBBharatB Member, 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

    Readydedis, LLC - Managed Dedicated Servers

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

  • WebProjectWebProject Member, Provider
    edited May 13

    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

    VPS Price Match Guarantee on: All our range of DDOS protected XEN-HVM VPS Plans
    Are you looking for best price for self-managed VPS? See WebProVPS website for more details.
  • seriesnseriesn Member, Top Provider

    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 Member

    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.