Solved

Linux device disks

Posted on 2015-02-06
6
190 Views
Last Modified: 2015-03-18
We were just checking a linux server  that currently has a 4 physical disk drives and one of them  failed. The following are outputs for the system.  We dont' know Linux. Could someone explain the outputs. Like for instance: what is md1 and are sdb3 and sda3  the physical disks or partitions of a physical disk.
-----------------------------------------------------------
[root@r101s0u1bak ~]# cat /proc/mdstat
Personalities : [raid1] [raid0]
md5 : active raid0 md3[0] md4[1]
      3802994752 blocks 64k chunks

md1 : active raid1 sdb3[1] sda3[0]
      8008320 blocks [2/2] [UU]

md3 : active raid1 sdb5[1] sda5[0]
      1899493312 blocks [2/2] [UU]

md2 : active raid1 sdc1[1]
      50010176 blocks [2/1] [_U]

md4 : active raid1 sdc2[1]
      1903501568 blocks [2/1] [_U]

md0 : active raid1 sdb2[1] sda2[0]
      45761088 blocks [2/2] [UU]
----------------------------------------------------

[root@r101s0u1bak ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/md0               43G  4.0G   37G  10% /
/dev/md2               47G  625M   44G   2% /usr/bp
/dev/sdb1             236M   18M  206M   8% /mnt/boot_sync
/dev/sda1             236M   18M  206M   8% /boot
tmpfs                 3.9G     0  3.9G   0% /dev/shm
/dev/md5              3.6T  1.6T  2.0T  44% /backups
[root@r101s0u1bak ~]#
0
Comment
Question by:Shen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 84

Assisted Solution

by:ozo
ozo earned 500 total points
ID: 40593602
md5 : active raid0 md3[0] md4[1]
      3802994752 blocks 64k chunks
/dev/md5 is an active, raid0 array  with component devices  /dev/md3 [device 0] and /dev/md4 [device 1]

md1 : active raid1 sdb3[1] sda3[0]
      8008320 blocks [2/2] [UU]
/dev/md1 is an active, raid1 array with component devices /dev/sdb3 [device 1] and  /dev/sda3  [device 0]
out of 2 devices, 2 are in use, and both are Up

md3 : active raid1 sdb5[1] sda5[0]
      1899493312 blocks [2/2] [UU]
/dev/md3 is an active, raid1 array with component devices /dev/sdb5 [device 1] and  /dev/sda5  [device 0]
out of 2 devices, 2 are in use, and both are Up

md2 : active raid1 sdc1[1]
      50010176 blocks [2/1] [_U]
/dev/md2 is an active, raid1 array with component device /dev/sdc1 [device 1]
out of 2 devices, 1 is in in use, device 0 is down and device 1 is up

md4 : active raid1 sdc2[1]
      1903501568 blocks [2/1] [_U]
/dev/md4 is an active, raid1 array with component device /dev/sdc2 [device 1]
out of 2 devices, 1 is in in use, device 0 is down and device 1 is up

md0 : active raid1 sdb2[1] sda2[0]
      45761088 blocks [2/2] [UU]
/dev/md0 is an active, raid1 array with component devices /dev/sdb1 [device 1] and  /dev/sda2  [device 0]
out of 2 devices, 2 are in use, and both are Up

sdx# is partition # on scsi device x
0
 

Author Comment

by:Shen
ID: 40594462
So if I undertand it:
   the raids  names are the dev/md0..4  
  and  dev/sdbx[] , dev/sdax[], dev/sdcx[], dev/mdx[] are partitions of sdb, sda,  sdc, md  physical devices since the machines has 4 physical drives?
0
 

Author Comment

by:Shen
ID: 40594504
Please forget my previous response:

After reading your explanation more:

all the sdbx,sdax,sdcx, mdx are partitions in 2  devices [0] or [1]. Each devices (0,1) is raid 1, so this makes 4 physical drives.
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 40594584
I would guess that md2 and md4 would normally have a mirror on /dev/sdd#, and that this is the drive that failed.
0
 

Author Closing Comment

by:Shen
ID: 40598144
thanks.  Do you suggest any tools to fix the drive
0
 

Expert Comment

by:Saravanan Palanisamy
ID: 40675066
Use mdadm command utility to replace the failed drive.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question