Jump to content
Калькуляторы

Подскажите по raid Debian

есть рабочий сервер с такими дисками:

 

fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b3ad5

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         365     2931831   82  Linux swap / Solaris
/dev/sda2             366       30401   241264170   fd  Linux raid autodetect

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000cc8ed

  Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         365     2931831   82  Linux swap / Solaris
/dev/sdb2             366       30401   241264170   fd  Linux raid autodetect

Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000dc313

  Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         365     2931831   82  Linux swap / Solaris
/dev/sdc2             366       30401   241264170   fd  Linux raid autodetect

Disk /dev/sdd: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000f223b

  Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1         365     2931831   82  Linux swap / Solaris
/dev/sdd2             366       30401   241264170   fd  Linux raid autodetect

Disk /dev/md0: 247.0 GB, 247054401536 bytes
2 heads, 4 sectors/track, 60316016 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table

 

но mdadm выдает такое:

 

mdadm -D /dev/md0

/dev/md0:
       Version : 0.90
 Creation Time : Sun Dec 19 18:32:25 2010
    Raid Level : raid1
    Array Size : 241264064 (230.09 GiB 247.05 GB)
 Used Dev Size : 241264064 (230.09 GiB 247.05 GB)
  Raid Devices : 2
 Total Devices : 1
Preferred Minor : 0
   Persistence : Superblock is persistent

   Update Time : Sun Feb  3 15:39:16 2013
         State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
 Spare Devices : 0

          UUID : 5ecd5946:1bd74e72:e1cbcd4c:602336b4
        Events : 0.20826386

   Number   Major   Minor   RaidDevice State
      0       8        2        0      active sync   /dev/sda2
      1       0        0        1      removed

 

cat /proc/mdstat

 

Personalities : [raid1]
md0 : active raid1 sda2[0]
     241264064 blocks [2/1] [u_]

unused devices: <none>

 

Помогите разобраться, что к чему?

Share this post


Link to post
Share on other sites

Personalities : [raid1]
md0 : active raid1 sda2[0]
     241264064 blocks [2/1] [u_]

 

Помогите разобраться, что к чему?

2/1 U_ - это пропажа второго диска массива.

 

Работающий на всех дисках массив выглядит так

 

md0 : active raid6 sdc1[0] sdf1[3] sde1[4] sdd1[1]
     292784128 blocks super 1.2 level 6, 512k chunk, algorithm 2 [4/4] [uUUU]

 

Т.е. все UUUU на месте 4/4.

 

Вопрос "Почему нет второго диска в raid1?" или "Что случилось с диском и как его туда вернуть?".

 

На вопросы "Что с диском и почему нет" ответить сложно. Тут желательно иметь диск в руках и сервер в доступе. Судя по всему у вас система стоит на этом зеркале, а второе зеркало является зеркалом первого, если судить по наличию одинаковых swap. В противном случае наличие swap никак объяснить нельзя.

 

А на вопрос "Как вернуть" ответ можно найти тут http://xgu.ru/wiki/raid или в аналогичных руководствах по mdadm.

Edited by replicant

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.