Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
my client had this server for Oracle database, the server had 2 RAID array (RAID 1 and RAID 5). the Linux sys admin configure the box with 2 SWAP file: the first one is 2ghz running on RAId 1 and the second one 2ghz running on RAID5.
1. why did you configure 2 SWAP file??? Pros and conc????
2. if he configure the SWAP file on RAID 5, will there be performance issue since it had to do the mirroring????
At times usually if you find two swap partitions or files, the second one was added at a later time cause it was needed maybe under heavy load, etc. Having a swap file not doing nothing is harmless though. If its not being used and hasn't been used, get rid of it or just leave it be.
Sorry about that, totally missed it in my reply.. but there shouldn't be a performance issue. But if I'm understanding your correctly, you shouldn't need to mirror a swap partition in a raid setup but again, shouldn't be using that much swap in the first place.
Sorry to bug you again. more question since I would like to understand this process. So you are saying I shouldn't mirror a SWAP partition in the RAId set setup, how????
1. If you have let's say the total of 6 physical disk: two of them on RAID 1 and the other four on RAID 5 so where is the space left so you can put the SWAP file except for the partition on RAID 1
2. assume if possible to SWAP file on the no RAID array, what if the disk are gone and you lost the SWAP file, what will happen????
so if some of my question are silly b/c I am trying to learn and understand Linux
Sorry to bug you again. more question since I would like to understand this process. So you are saying I shouldn't mirror a SWAP partition in the RAId set setup, how????
1. If you have let's say the total of 6 physical disk: two of them on RAID 1 and the other four on RAID 5 so where is the space left so you can put the SWAP file except for the partition on RAID 1
2. assume if possible to SWAP file on the no RAID array, what if the disk are gone and you lost the SWAP file, what will happen????
so if some of my question are silly b/c I am trying to learn and understand Linux
1. I'd put it on the first disks using RAID 1 most likely, create its own partition but again, it won't hurt to mirror it either. I just don't find it necessary to mirror raw data that would almost be pointless to keep if one disk failed.. swap is like memory, you reboot and that data is gone anyways..
2. Losing swap will usually never bring your system down. In most cases, you want to avoid trying to use swap. Depending on what the server is doing, if you find that your always using swap, your probably better off upgrading and adding more RAM to the machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.