Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Can anyone point in the right direction on how to remove SWAP out of a RAID1 configuration? According to the Ubuntu Advanced installation guide, here, it said to add swap to the raid but I am having some serious performance issues. I would like to remove it from the array and recreate it, with the same size, on the two separate drives. Zero data loss on the data array is a must.

Its a remote computer so I would prefer to do it via command-line if possible.

Here is the output from cat /proc/mdstat

md0 : active raid1 sdb1[1] sda1[0]
19530688 blocks [2/2] [UU]

md1 : active raid1 sdb2[1] sda2[0]
957230016 blocks [2/2] [UU]

The swap device is md0.

share|improve this question
    
You may want to ask a new question about your performance problems--swap on RAID 1 should perform fine, unless your drives' interface is slow and they are on the same controller. (Related: Should swap and RAID-1 mix?) –  Eliah Kagan Jan 22 '13 at 5:41

1 Answer 1

up vote 1 down vote accepted

This is no different than managing any other swap partition:

Use swapoff mdX to remove it from consideration for swap usage.

Then use mdadm to take that array out of service and then delete it. man mdadm,

and the Software RAID HOWTO is very clear on these administrative tasks.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.