Go Back   TechArena Community > Hardware > Hardware Peripherals
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



RAID10 SWAP partition and boot

Hardware Peripherals


Reply
 
Thread Tools Search this Thread
  #1  
Old 15-09-2010
Member
 
Join Date: Mar 2010
Posts: 71
RAID10 SWAP partition and boot
  

I want to do an installation on a ClearOS RAID10, but I have a question. I understand that it was not good to create swap partition on a RAID. Until now I never create more than a RAID1 and then create the swap partition on two discs, but with a RAID10 I do not see how.

Namely:

RAID1 with two 500GB hard disk and 2 1TB and 500GB RAID0 with RAID1 and RAID1 1TB.

Reply With Quote
  #2  
Old 15-09-2010
Member
 
Join Date: May 2008
Posts: 1,275
Re: RAID10 SWAP partition and boot

The difference between Raid 0 +1 and Raid 1 +0 is instructive.

So you do rather well to the RAID10 (= raid 1 +0).

Why include the raid swap?
For convenience in case of recovery! If disk 0 fails, then the system will have a boot disk and /etc/fstab will show an existing partition as swap.

I have long varied on software raid. But now I think take the right approach:
With 2 discs, so for the raid1, I created:
- On a disk, a partition in ext3 100 MB /boot partition then the rest kind of raid
- Disk 2, same except mount /boot2
- I assemble the 2 partitions type raid /dev/md0 (raid1) I then configure lvm,
- I initialize it creating the lvm volume group,
- Then I created logical volumes beginning with a swap and root (/)
- Finally I install grub on 2 discs (without forgetting to copy from time to time /boot to /boot2)!

In case of difficulty, it seems easy to repair. What can be done with 1.5 T and a ClearOS?
Reply With Quote
  #3  
Old 15-09-2010
Member
 
Join Date: Mar 2010
Posts: 71
Re: RAID10 SWAP partition and boot

So for you it does not pose a problem to create the swap partition on the RAID, it seems more logical to me that what I read, so why exclude it? And you do not include mounting /boot in it? It is true that you do not specify RAID, but I understand that with a RAID1 we could do. And I also thought we could do with the RAID10?
Reply With Quote
  #4  
Old 15-09-2010
Member
 
Join Date: May 2008
Posts: 1,275
Re: RAID10 SWAP partition and boot

For the swap, you lose a swap if mirrored. But the damage is in these times when the memory is no longer a big problem? Especially since the swap should not even be used! Please note I only declared swap over 1G!

The problem is that grub does not know boot disk mirroring! So it is imperative to start on a primary partition "classic". The perfect score is always /boot. Where /boot and /boot2 copy. Then the rest is being cut by then lvm raid.

Note: If you are trying to mirror two disks, do not forget, if you change your mind later, remove superblocks (mdadm --zero-superblock) because they are not erased by "dd if=/dev/zero of=/dev/sdb".

I realize this type of cutting to create a host of virtualization in Proxmox. Indeed, one can install on a Debian Proxmox, where the first install of Debian with this division then Proxmox. Review: a great space, and the ability to create VMs or type KVM (from a .iso) or type OpenVZ (from template available).

The temptation is great to virtualize the firewall temptation to be resisted!
Reply With Quote
  #5  
Old 15-09-2010
Member
 
Join Date: Mar 2010
Posts: 71
Re: RAID10 SWAP partition and boot

Here is what I did to install my ClearOS in RAID1:

I took my SWAP, this is on two discs, while '/boot' and '/' what is on the RAID and it works correctly now.

As you pointed out to me, there is no real reason not to put the SWAP RAID so I'll do.

Here is my partitioning:

Disk 500 GB:
A party in RAID1 for the SWAP and the '/boot', then the rest in RAID1

Disk 1TB:
While RAID1

And finally I took both my RAID1 to RAID0, when you think?
Reply With Quote
Reply

  TechArena Community > Hardware > Hardware Peripherals
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "RAID10 SWAP partition and boot"
Thread Thread Starter Forum Replies Last Post
How to boot Windows 7 on a RAID10 of 4x2TB HDD Samsung with GPT partition. RaviNath Hardware Peripherals 6 06-12-2011 05:03 AM
Where to put swap partition in Linux foraman Operating Systems 4 02-01-2011 07:47 AM
Create SWAP partition in CentOS Amy Adams Operating Systems 4 21-04-2010 05:56 PM
Why do i need a SWAP partition for linux? Windows7er Operating Systems 3 17-11-2009 11:45 AM
Removing Linux Swap partition from iMac MaCiNToSHeR Operating Systems 3 24-10-2009 01:25 PM


All times are GMT +5.5. The time now is 01:19 PM.