Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2672  / 3 Years ago, tue, october 12, 2021, 12:58:00

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.


More From » raid

 Answers
2

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.


[#43094] Tuesday, October 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atchcommo

Total Points: 114
Total Questions: 130
Total Answers: 101

Location: Cook Islands
Member since Sat, Oct 16, 2021
3 Years ago
atchcommo questions
Fri, May 13, 22, 08:22, 2 Years ago
Wed, Mar 9, 22, 20:14, 2 Years ago
;