[mdk-re] Soft RAID-1

Mikhail Kononenko =?iso-8859-1?q?mikhail_=CE=C1_samovar=2Eru?=
Чт Фев 1 11:51:01 MSK 2001


Слава Богу, хот одна живая душа имеет опыт.

Тогда так: ядро 2.2.18, диски IBM DTLA 307030
raidtools-0.9

Ниже много чего, поэтому предлагаю уйти в мыло, чтоб больше не мусорить...

/cat/etc/fstab
-------------------
/dev/hda2 / ext2 defaults 1 1
/dev/hda1 /boot ext2 defaults 1 2
none /dev/pts devpts mode=0620 0 0
/dev/hda7 /home ext2 exec,dev,suid,rw,usrquota 1 2
/dev/cdrom /mnt/cdrom auto user,noauto,nosuid,exec,nodev,ro 0 0
#/dev/fd0 /mnt/floppy auto sync,user,noauto,nosuid,nodev 0 0
none /proc proc defaults 0 0
/dev/hda8 /backup ext2 defaults 1 2
/dev/hda5 /usr ext2 defaults 1 2
#/dev/md0 /usr ext2 defaults 1 2
/dev/hda3 /var ext2 exec,dev,suid,rw,usrquota 1 2
/dev/hda6 swap swap defaults 0 0

cat /etc/raidtab
--------------------
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 32
persistent-superblock 1

#Для начала только один раздел

device /dev/hda5
raid-disk 0

device /dev/hdc5
raid-disk 1


Disk /dev/hda: 255 heads, 63 sectors, 3737 cylinders
Units = sectors of 1 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *        63     32129     16033+  83  Linux
/dev/hda2         32130    530144    249007+  83  Linux
/dev/hda3        530145   7727264   3598560   83  Linux
/dev/hda4       7727265  60034904  26153820    5  Extended
/dev/hda5       7727328  12868064   2570368+  fd  Linux raid autodetect

Disk /dev/hdc: 255 heads, 63 sectors, 3737 cylinders
Units = sectors of 1 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1            63     32129     16033+  83  Linux
/dev/hdc2         32130    530144    249007+  83  Linux
/dev/hdc3        530145   7727264   3598560   83  Linux
/dev/hdc4       7727265  60034904  26153820    5  Extended
/dev/hdc5       7727328  12868064   2570368+  fd  Linux raid autodetect

В результе имеем:
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev f9
PIIX4: chipset revision 2
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:pio
hda: IBM-DTLA-307030, ATA DISK drive
hdc: IBM-DTLA-307030, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: IBM-DTLA-307030, 29314MB w/1916kB Cache, CHS=3737/255/63, UDMA(100)
hdc: IBM-DTLA-307030, 29314MB w/1916kB Cache, CHS=3737/255/63, UDMA(100)
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
md driver 0.90.0 MAX_MD_DEVS=256, MAX_REAL=12
raid1 personality registered
raid5: measuring checksumming speed
   8regs     :  1196.340 MB/sec
   32regs    :   645.414 MB/sec
using fastest function: 8regs (1196.340 MB/sec)
md.c: sizeof(mdp_super_t) = 4096
Partition check:
 hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 >
 hdc: hdc1 hdc2 hdc3 hdc4 < hdc5 hdc6 hdc7 hdc8 >
autodetecting RAID arrays
(read) hda5's sb offset: 2570304 [events: 0000002f]
(read) hdc5's sb offset: 2570304 [events: 0000002f]
autorun ...
considering hdc5 ...
  adding hdc5 ...
  adding hda5 ...
created md0
bind<hda5,1>
bind<hdc5,2>
running: <hdc5><hda5>
now!
hdc5's event counter: 0000002f
hda5's event counter: 0000002f
md0: max total readahead window set to 128k
md0: 1 data-disks, max readahead per data-disk: 128k
raid1: device hdc5 operational as mirror 1
raid1: device hda5 operational as mirror 0
(checking disk 0)
(really checking disk 0)
(checking disk 1)
(really checking disk 1)
raid1: raid set md0 active with 2 out of 2 mirrors
md: updating md0 RAID superblock on device
hdc5 [events: 00000030](write) hdc5's sb offset: 2570304
hda5 [events: 00000030](write) hda5's sb offset: 2570304
.
... autorun DONE.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 56k freed
Executing init=/sbin/init
Adding Swap: 530104k swap-space (priority -1)
EXT2-fs warning: mounting fs with errors, running e2fsck is recommended
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count for group 0, stored = 22023, counted = 20509
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count for group 2, stored = 8590, counted = 8357
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count for group 4, stored = 28606, counted = 27099
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count for group 8, stored = 27717, counted = 26255
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count for group 10, stored = 28046, counted = 27084
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count for group 12, stored = 27558, counted = 25373
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count for group 14, stored = 28039, counted = 27232
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count for group 16, stored = 28152, counted = 27668
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count for group 17, stored = 27971, counted = 27578
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count for group 18, stored = 27567, counted = 27359
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count for group 19, stored = 18203, counted = 14581
EXT2-fs error (device md(9,0)): ext2_check_blocks_bitmap: Wrong free blocks
count in super block, stored = 474332, counted = 495674
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in group 0, stored = 14408, counted = 14137
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in group 2, stored = 15808, counted = 15575
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in group 4, stored = 14544, counted = 14110
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in group 8, stored = 14602, counted = 13972
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in group 10, stored = 14580, counted = 14125
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in group 12, stored = 14613, counted = 14019
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in group 14, stored = 14488, counted = 14144
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in group 16, stored = 14511, counted = 14144
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in group 17, stored = 14526, counted = 14189
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in group 18, stored = 14238, counted = 14144
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in group 19, stored = 15047, counted = 14228
EXT2-fs error (device md(9,0)): ext2_check_inodes_bitmap: Wrong free inodes
count in super block, stored = 281775, counted = 285970






Подробная информация о списке рассылки community