ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] HowTo: loop-device + cryptoapi + software raid
@ 2001-10-16 17:42 Peter V. Saveliev
  2001-10-16 19:12 ` [mdk-re] Re: HowTo Peter V. Saveliev
  2001-10-17  8:00 ` [mdk-re] HowTo: loop-device + cryptoapi + software raid Alexey Voinov
  0 siblings, 2 replies; 8+ messages in thread
From: Peter V. Saveliev @ 2001-10-16 17:42 UTC (permalink / raw)
  To: mandrake-russian

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3074 bytes --]

(ÍÏÊ ÐÅÒ×ÙÊ ÏÐÙÔ - ÐÉÎÇ×iÎÑÔËÏ ÅÝÅ)
ëÁËóÄÅ: ÉÓÐÏÌØÚÏ×ÁÎÉÅ loopback × ÏÒÇÁÎÉÚÁÃÉÉ ÏÔËÁÚÏÕÓÔÏÊÞÉ×ÙÈ ÓÉÓÔÅÍ.

ðÏ ÛÁÇÁÍ:
Á) äÌÑ ÎÁÞÁÌÁ ÎÅÏÂÈÏÄÉÍÏ ÉÍÅÔØ ÑÄÒÏ, ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÎÎÏÅ ÄÌÑ ÒÁÂÏÔÙ Ó
loopback ÌÉÂÏ ×ÓÔÒÏÅÎÎÏ, ÌÉÂÏ ÍÏÄÕÌÑÍÉ. ðÏ ÓÞÁÓÔØÀ, ÉÚ×ÅÓÔÎÙÅ ÍÎÅ ÑÄÒÁ
ALT ÐÏÄÄÅÒÖÉ×ÁÀÔ loopback ÉÚ ËÏÒÏÂËÉ.
   ÷ ÓÌÕÞÁÅ ×ÓÔÒÏÅÎÎÏÊ ÐÏÄÄÅÒÖËÉ ×ÓÅ ÐÒÏÓÔÏ. åÓÌÉ ÖÅ ÎÕÖÎÏ ÚÁÄÅÊÓÔ×Ï×ÁÔØ
ÍÏÄÕÌØ (ÐÏ ÕÍÏÌÞÁÎÉÀ ÎÅ ÇÒÕÚÉÔÓÑ), ÔÏ ÎÁÄÏ ÐÒÏ×ÅÒÉÔØ lsmod - Á ×ÄÒÕÇ
ÚÁÇÒÕÖÅÎ; ÅÓÌÉ ÎÅÔ - ÔÏ ÉÚ /lib/modules/<ÉÍÑ ÑÄÒÁ>/block ÎÕÖÎÏ ÐÏÄÇÒÕÚÉÔØ
loop_xx.o (ÇÄÅ ÈÈ - ÆÉÞÁ) Ó ÐÏÍÏÝØÀ modprobe.

Â) îÕÖÎÙ ÆÁÊÌÙ, ËÏÔÏÒÙÅ ÂÕÄÕÔ ÓÏÏÔ×ÅÔÓÔ×Ï×ÁÔØ ÐÓÅ×ÄÏÕÓÔÒÏÊÓÔ×ÁÍ. óÏÚÄÁÀÔÓÑ
ÏÎÉ ÏÞÅÎØ ÐÒÏÓÔÏ Ó ÐÏÍÏÝØÀ dd if=/dev/zero of=<ÆÁÊÌ> bs=1k count=<ÎÕÖÎÁÑ
ÃÉÆÒÁ>.

×) ðÏÌÕÞÅÎÎÙÅ ÆÁÊÌÙ ÎÕÖÎÏ ÐÒÉÁÔÔÁÞÉÔØ Ë loop-ÄÅ×ÁÊÓÁÍ, ÄÌÑ ÜÔÏÇÏ ÎÕÖÎÏ
losetup -e <ÍÅÔÏÄ ÛÉÆÒÏ×ÁÎÉÑ> /dev/loopX /<ÐÕÔØ>/<ÆÁÊÌ> , ÇÄÅ ÍÅÔÏÄ
ÛÉÆÒÏ×ÁÎÉÑ ÌÉÂÏ none (ÂÅÚ ÎÅÇÏ), ÌÉÂÏ blowfish, ÌÉÂÏ ÌÀÂÏÊ ÄÒÕÇÏÊ ÉÚ
man losetup; loopX - loop-ÄÅ×ÁÊÓ; ÆÁÊÌ - ÔÏÔ ÔÏÌÓÔÙÊ ÆÁÊÌ ÉÚ Â). ëÓÔÁÔÉ,
ÜÔÏÔ É ÐÒÅÄÙÄÕÝÉÊ ÐÕÎËÔ - ÉÚ man losetup.

Ç) ÷ ÓÌÕÞÁÅ ÛÉÆÒÏ×ÁÎÉÑ losetup ÓÐÒÏÓÉÔ ÐÁÒÏÌØ. üÔÏ - ËÌÀÞ, ÐÏ ËÏÔÏÒÏÍÕ
ÂÕÄÅÔ ÛÉÆÒÏ×ÁÔØÓÑ ÆÁÊÌ. úÁÄÁÅÔÓÑ ÐÒÉ ÐÅÒ×ÏÍ ÉÓÐÏÌØÚÏ×ÁÎÉÉ É ÐÏÔÏÍ ÎÕÖÎÏ
ÕËÁÚÙ×ÁÔØ ÔÁËÖÅ ÅÇÏ, ÉÎÁÞÅ, ËÁË ÐÏÎÑÔÎÏ, ÆÁÊÌ ÂÕÄÅÔ ÐÏÎÑÔ ÎÅ×ÅÒÎÏ. ðÒÏ
ÏÛÉÂËÕ ÔÏÖÅ ÎÉËÔÏ ÎÅ ÓÏÏÂÝÉÔ, ËÒÏÍÅ mount ;)

äÁÌØÛÅ ÉÓÔÏÒÉÑ ÉÄÅÔ ÎÅÓËÏÌØËÉÍÉ ÐÕÔÑÍÉ. åÓÌÉ ÏÇÒÁÎÉÞÉÔØÓÑ ÔÅÍ, ÞÔÏ ÕÖÅ
ÎÁÐÉÓÁÎÏ, ÔÏ ÍÏÖÎÏ ÄÅÌÁÔØ mkreiserfs /dev/loopX; mount /dev/loopX /mnt.
åÓÌÉ ÖÅ ÐÒÏÄÏÌÖÁÅÔÓÑ ÔÏÍÌÅÎÉÅ ÄÕÈÁ, ÔÏ:

Ä) óÏÚÄÁÅÔÓÑ /etc/raidtab ÐÏ man raidtab, ÌÉÂÏ ÐÏ ÏÂÒÁÚÃÕ:
---------/etc/raidtab------------
raiddev /dev/md0          # ËÁË ÎÁÚÏ×ÅÍ?
raid-level 1              # ÄÌÑ ÐÒÏÓÔÏÇÏ ÚÅÒËÁÌÉÒÏ×ÁÎÉÑ, raid 1
persistent-superblock 1   # raid'Ï×ÁÑ ÐÒÉÂÌÕÄÁ, ÓÍ. man
chunk-size 8              # ÂÕÆÅÒ
nr-raid-disks 2           # ËÏÌÉÞÅÓÔ×Ï ÕÓÔÒÏÊÓÔ× × ÍÁÓÓÉ×Å
nr-spare-disks 0          # ËÏÌÉÞÅÓÔ×Ï ÚÁÐÁÓÎÙÈ ÄÉÓËÏ×
device /dev/loop0
raid-disk 0
device /dev/loop1
raid-disk 1               # ËÏÇÏ ËÕÄÁ ÐÏÄÃÅÐÉÔØ
----------/etc/raidtab-----------
üÔÏ ÄÌÑ ÐÒÏÓÔÏÇÏ raid, Á ×ÏÔ ÄÌÑ ÈÉÔÒÏÇÏ:
----------/etc/raidtab-----------
raiddev /dev/md0
raid-level 5
nr-raid-disks 3
nr-spare-disks 0
persistent-superblock 1
parity-algorithm left-symmetric
chunk-size 64

device /dev/loop0
raid-disk 0
device /dev/loop1
raid-disk 1
device /dev/loop2
raid-disk 2
-----------/etc/raidtab-----------

éÎÆÏÒÍÁÃÉÑ ×ÚÑÔÁ Ó http://linuxnews.ru/docs/showdoc.php?id=9231&thread=9231
ÚÁ Á×ÔÏÒÓÔ×ÏÍ ÷ÑÞÅÓÌÁ×Á ëÁÌÏÛÉÎÁ.

âÕË×Õ ÚÁÂÙÌ, Á × mail'e ÎÅ ÐÒÏÍÏÔÁÔØ ÎÁÚÁÄ, ÔÁË ÞÔÏ ÐÒÏÄÏÌÖÕ × ÌÁÔÉÎÉÃÅ:

a) ôÅÐÅÒØ ÍÏÖÎÏ ÐÒÉÓÔÕÐÉÔØ Ë ÓÏÚÄÁÎÉÀ raid. õÂÅÄÉ×ÛÉÓØ × ÎÁÌÉÞÉÉ raidtools
(rpm -qa | grep raid), ÎÕÖÎÏ ÓËÁÚÁÔØ mkraid /dev/md0. åÓÌÉ ÎÅÔ ÏÛÉÂÏË, ÔÏ
ÈÏÒÏÛÏ, ÅÓÌÉ ÇÒÏÚÉÔ ÐÏÔÅÒÅÊ ÉÎÆÏÒÍÁÃÉÉ - ÔÏ ÄÌÑ loopback ÎÅ ÓÔÒÁÛÎÏ. ÷ÓÅ
ÒÁ×ÎÏ ÎÉÞÅÇÏ ÎÅ ÉÓÐÏÒÔÉÔÅ ;) ÔÁË ÞÔÏ ÍÏÖÎÏ ÕÐÒÏÓÉÔØ ÓÄÅÌÁÔØ-ÔÁËÉ raid.

b) äÁÌØÛÅ - ÐÏ ÎÁËÁÔÁÎÎÏÍÕ: mkreiserfs /dev/md0.

c) îÁËÏÎÅÃ, mount /dev/md0 /mnt/resource  - É ÎÁÓÌÁÖÄÁÊÔÅÓØ!

Setup ÜÔÏÇÏ ÈÏÚÑÊÓÔ×Á ÐÒÉ ÓÔÁÒÔÅ, ÄÕÍÁÀ, ÓÄÅÌÁÔØ ÎÅ ÓÌÏÖÎÏ, ÒÁÚ×Å ÞÔÏ ÂÏÌØÛÅ
ÐÁÒÏÌÅÊ ××ÏÄÉÔØ, ÅÓÌÉ ÅÓÔØ ÛÉÆÒÏ×ÁÎÉÅ ÄÉÓËÏ×.

ðÅÔÒ.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-10-18 14:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-16 17:42 [mdk-re] HowTo: loop-device + cryptoapi + software raid Peter V. Saveliev
2001-10-16 19:12 ` [mdk-re] Re: HowTo Peter V. Saveliev
2001-10-16 19:24   ` Dmitry V. Levin
2001-10-17 11:51     ` [mdk-re] HowTo... + Service Pack 1 ;)) Peter V. Saveliev
2001-10-18 12:59     ` [mdk-re] HowTo... + Service Pack 2 :-| Peter V. Saveliev
2001-10-18 14:14       ` Dmitry V. Levin
2001-10-17  8:00 ` [mdk-re] HowTo: loop-device + cryptoapi + software raid Alexey Voinov
2001-10-18 12:39   ` [mdk-re] " Mikhail Zabaluev

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git