Sziasztok!
Azt szeretném tőletek kérdezni, hogy RAID-1 tömb esetén a cserehelyet hogy illik létrehozni? A swap részére is készítsek tömböt, vagy a swap partíció kerüljön hagyományos módon valamelyik diszkre?
Kérdésem szemléletformáló jellegű, de akár flémig is elmehet a dolog.
Köszönöm szépen!
- 3674 megtekintés
Hozzászólások
Swapnak is csinálj egy raid1 eszközt, hiszen ha kihullik a swap fájlt tartalmazó egyedüli lemez, akkor lefagy a gép.
- A hozzászóláshoz be kell jelentkezni
Ha RAID1 és azt akarod ne álljon meg a rendszered, ha kiesik az egyik lemez akkor rakd bele.
Én a SWAP-et ha kevés a memória a HDD elejére rakom.
Amúgy meg mit csinálsz azzal a swapnyi hellyel, ami megmarad a másik hddn?
- A hozzászóláshoz be kell jelentkezni
Itt már volt róla szó.
http://hup.hu/node/32531
Keress rá esetleg még a swap pri=1 szavakra.
2.3 Swapping on RAID
There's no reason to use RAID for swap performance reasons. The kernel itself can stripe swapping on several devices, if you just give them the same priority in the /etc/fstab file.
A nice /etc/fstab looks like:
/dev/sda2 swap swap defaults,pri=1 0 0
/dev/sdb2 swap swap defaults,pri=1 0 0
/dev/sdc2 swap swap defaults,pri=1 0 0
/dev/sdd2 swap swap defaults,pri=1 0 0
/dev/sde2 swap swap defaults,pri=1 0 0
/dev/sdf2 swap swap defaults,pri=1 0 0
/dev/sdg2 swap swap defaults,pri=1 0 0
This setup lets the machine swap in parallel on seven SCSI devices. No need for RAID, since this has been a kernel feature for a long time.
Another reason to use RAID for swap is high availability. If you set up a system to boot on eg. a RAID-1 device, the system should be able to survive a disk crash. But if the system has been swapping on the now faulty device, you will for sure be going down. Swapping on a RAID-1 device would solve this problem.
There has been a lot of discussion about whether swap was stable on RAID devices. This is a continuing debate, because it depends highly on other aspects of the kernel as well. As of this writing, it seems that swapping on RAID should be perfectly stable, you should however stress-test the system yourself until you are satisfied with the stability.
You can set up RAID in a swap file on a filesystem on your RAID device, or you can set up a RAID device as a swap partition, as you see fit. As usual, the RAID device is just a block device.
- A hozzászóláshoz be kell jelentkezni