md support.

Krzysztof Drewicz hunter w kittie.raszyn.pl
Pią, 27 Lip 2001, 19:46:41 CEST


Hi

there's been little chat about md support in instaled
what do you think of ?
II've translated few lines from today's #PLD:
<malekith> hunter__: na najprostszym poziomie bez zadnej automatyki:
		     on the simplest level whitout any automagic	
           dest_part1_device=/dev/md0:raid0,/dev/sda1,/dev/sdb1 ?
<malekith> hunter__: czesto sie robi jeden raid na drugim?
		     how often is raid over raid being used ?
<hunter__> malekith: jeszcze bym dodal ilosc miejsca.... i jak raid1 jest z 3
		   I would add amount of freeapace and if we have raid 1
w/ 3 hdd's then one of them should be spare (installer) should konw about
it and if someof (3rd,4th,5th...) is spare in raid05, but ok
           hdd to jeden bedzie spare (to mosi instalator wiedziec) i jak
           raid4/5 czy ktorys (4,5,6...) bedzie spare ale ok
<malekith> hunter__: spoko, /dev/sda1 bedzie opisane osobno
		ok, /dev/hda1 will have separate entry
<malekith> hunter__: tam bedzie napisane ile ma miec mb, etc
			there will be amount of space etc...
<hunter__> malekith: przy 6 takich samych hdd scsi jak chcesz miec predkosc i
           lustrzake i stac cie na 6x2GB scsi za 6GB miejsca to zawsze powinno
           (raid-5 jest duzo wolniejszy przy zapisie... niz raid1over0)
	(about raid over raid, when to use it)
<hunter__> malekith: ok, to fajnie part_id==fd tez ?
			 partision_id also ?
now I'm discovering meanging of desc_part[12]_fd etc...
<hunter__> a dest_part1_fs ?

<malekith> hunter__: dest_part2_device=/dev/sda1, dest_part2_fs=md
<malekith> hunter__: bo trzeba gdzies napisac, jaka ma miec wielkosc, etc
<malekith> hunter__: a fs jest taki raczej dummy, zeby ustawic odpowiednie
           part-id
<malekith> hunter__: part2 to jest fizyczna partycja, i na niej zaden normalny
           fs raczej nie ma sensu
<malekith> hunter__: tylko sprobuj wymyslic, jak opisac jeden raid na
           drugim...
			just try to figure out how describe raid over raid
<hunter__> part2=md0:md1:raid1 ?
<hunter__> part2=md0:md1:md2:raid1 l-) jak ktos bogaty
					/if someone is rich...
<hunter__> part2=md0:md1:md2:md3:raid5 to max...
					it's max
<klakierQ> jezusiku
<klakierQ> czy robienie raid na raid jest rzeczywiście potrzebne?
		is't raid over raid realy needed ?
* malekith/#pld nie rozumie
<hunter__> klakierQ: moze na / nie ale przy obciazonej db....
<hunter__> malekith: ten part[12] to opis jednego czegos do zamontowania czy
           kazdy znich to osobno cos do mountowania ?
<klakierQ> hunter__: ale jak często się to robi?
<malekith> hunter__: dobra, juz rozumiem, nastepny raid jest po prostu na
           kilku /dev/md...
<klakierQ> hunter__: ale jak często się to robi?
<malekith> hunter__: dobra, juz rozumiem, nastepny raid jest po prostu na
           kilku /dev/md...
	malekith caught how to do raid over raid: just one /dev/md2 over
another ones md1,md0
<hunter__> malekith: widzisz to takie proste...
			see it easy...
<malekith> hunter__: ten part1 bedzie montowany (to raid), a part2 to tylko
           fizyczna partycja
	part1 will mounted, part2 is just "raw" partition. 
the kloczek is
coming:
 <kloczek> coś się dziej ? <hunter__> kloczek:hi <kloczek> coś się
dzieje ? <kloczek> to jeszcze powinniście obejrzeć nowe narzedzi do raid
<malekith> s/ hunter__ / kloczek <kloczek> wicie jakie ? <mihallo_> hmm
czemu dobrze <hunter__> kloczek: mowisz o lvm czy md ? <kloczek>
http://www.cse.unsw.edu.au/~neilb/source/mdctl/
		he points out new md tools
i'm showing what i'm doing:
<hunter___> [root w pldmachine /tmp]# mkraid --really-force /dev/md1
<hunter___> DESTROYING the contents of /dev/md1 in 5 seconds, Ctrl-C if
            unsure!
<hunter___> handling MD device /dev/md1
<hunter___> analyzing super-block
<hunter___> disk 0: /dev/sde1, 8883913kB, raid superblock at 8883840kB
<hunter___> disk 1: /dev/sdf1, 8883913kB, raid superblock at 8883840kB
<hunter___> [root w pldmachine /tmp]#
<hunter___> [root w pldmachine /tmp]# cat /proc/mdstat
<hunter___> Personalities : [raid1] [raid5]
<hunter___> read_ahead 1024 sectors
<hunter___> md1 : active raid1 sdf1[1] sde1[0] 8883840 blocks [2/2] [UU]
            resync=52% finish=2.9min
<hunter___> md0 : active raid5 sdd3[3] sdc3[2] sdb3[1] sda3[0] 6000000 blocks
            level 5, 32k chunk, algorithm 2 [4/4] [UUUU]
<hunter___> unused devices: <none>


best regards,
hunter




Więcej informacji o liście dyskusyjnej pld-installer