[MASOCH-L] Problema com RAID1 utilizando mdadm
Patrick
patrick_rsl at yahoo.com.br
Thu Aug 7 18:03:41 -03 2008
Quando eu monto o raid manual com o comando: " mdadm -C -v /dev/md0 -l 1
-n 2 /dev/hdc1 /dev/sda1" , ele funciona normalmente. Mas quando eu faço
pelo arquivo de configuração ele não funciona.
Aqui vai o arquivo de configuração:
vim /etc/mdadm/mdadm.conf
DEVICE partitions
DEVICE /dev/sda1,/dev/hdc1
ARRAY /dev/md0 devices=/dev/sda1,/dev/hdc1
#ARRAY /dev/md0 level=1 devices=/dev/sda1,/dev/hdc1
# auto-create devices with Debian standard permissions
#CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
#HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
#MAILADDR root
E o erro que aparece:
zeus:~# mdadm -D /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Wed Aug 6 20:52:55 2008
Raid Level : raid1
Array Size : 32234304 (30.74 GiB 33.01 GB)
Device Size : 32234304 (30.74 GiB 33.01 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Wed Aug 6 20:53:18 2008
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : b2ac42f9:b3f3e6b8:3ffc7fac:4f752ff0
Events : 0.6
Number Major Minor RaidDevice State
0 22 1 0 active sync /dev/hdc1
1 0 0 1 removed
zeus:~# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 hdc1[0]
32234304 blocks [2/1] [U_]
unused devices: <none>
zeus:~# fdisk -l
Disk /dev/sda: 36.7 GB, 36778545152 bytes
255 heads, 63 sectors/track, 4471 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Dispositivo Boot Start End Blocks Id System
/dev/sda1 1 4013 32234391 fd Detecção
automática de RAID Linux
Disk /dev/hdb: 20.4 GB, 20490559488 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Dispositivo Boot Start End Blocks Id System
/dev/hdb1 * 1 2382 19133383+ 83 Linux
/dev/hdb2 2383 2491 875542+ 5 Estendida
/dev/hdb5 2383 2491 875511 82 Linux swap /
Solaris
Disk /dev/hdc: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Dispositivo Boot Start End Blocks Id System
/dev/hdc1 1 4013 32234391 fd Detecção
automática de RAID Linux
Disk /dev/md0: 33.0 GB, 33007927296 bytes
2 heads, 4 sectors/track, 8058576 cylinders
Units = cilindros of 8 * 512 = 4096 bytes
O disco /dev/md0 não contém uma tabela de partições válida
zeus:~#
Alguém aí sabe o que pode ser??
PaTricK
More information about the masoch-l
mailing list