Toon posts:

[Debian] Linux Software RAID 1

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb sinds kort een software RAID 1 draaien op min bak.
Dit draait ook allemaal perfect...

Maar als ik het volgende doe...

mount /dev/hda3 /mnt/bla (/var dir op eeste schijf)

en daar ververvolgens bijvoorbeeld rm -rf /info doe dan word deze map niet meer terug gezet. Ook niet het opnieuw opstarten.. Hetzelfde geld als ik die partitie ga formatteren... Het systeem draait dus wel gewoon door op de andere schijf, maar die andere word niet meer terug gesynced...

Hoe kan dit ??

Moet je dit handmatig syncen met rsync ofzo ?

Mijn /etc/raidtab

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# example /etc/raidtab
# md0 is the root array
raiddev                 /dev/md0
raid-level              1
nr-raid-disks           2
chunk-size              32
# Spare disks for hot reconstruction
nr-spare-disks          0
persistent-superblock   1
device                  /dev/hdc2
raid-disk               0
# this is our old disk, mark as failed for now
device                  /dev/hda6

# md1 is the /boot array
raiddev                 /dev/md1
raid-level              1
nr-raid-disks           2
chunk-size              32
# Spare disks for hot reconstruction
nr-spare-disks          0
persistent-superblock   1
device                  /dev/hdc1
raid-disk               0
# boot is marked failed as well
device                  /dev/hda1

# md2 is the /usr array
raiddev                 /dev/md2
raid-level              1
nr-raid-disks           2
chunk-size              32
# Spare disks for hot reconstruction
nr-spare-disks          0
persistent-superblock   1
device                  /dev/hdc5
raid-disk               0
# boot is marked failed as well
device                  /dev/hda3

# md4 is the /var array
raiddev                 /dev/md3
raid-level              1
nr-raid-disks           2
chunk-size              32
# Spare disks for hot reconstruction
nr-spare-disks          0
persistent-superblock   1
device                  /dev/hdc3
raid-disk               0
# boot is marked failed as well
device                  /dev/hda2


code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
rugtest11:~# cat /proc/mdstat
Personalities : [linear] [raid1] [multipath]
read_ahead 1024 sectors
md1 : active raid1 hdc1[0] hda1[1]
      6912 blocks [2/2] [UU]

md0 : active raid1 hdc2[0] hda6[1]
      835008 blocks [2/2] [UU]

md3 : active raid1 hdc3[0] hda2[1]
      974656 blocks [2/2] [UU]

md2 : active raid1 hdc5[0] hda3[1]
      582976 blocks [2/2] [UU]

unused devices: <none>

[ Voor 70% gewijzigd door Verwijderd op 03-02-2003 10:11 ]


  • Heidistein
  • Registratie: Februari 2002
  • Laatst online: 08-04 20:21

Heidistein

Blah

Software-RAID HOWTO: Error Recovery
eerste google hit op 'Software raid 1 sync' :)

Maybee we are alone... After all.