[lug] Convert swap from raid0 to raid1

dio2002 at indra.com dio2002 at indra.com
Thu Jul 26 00:34:17 MDT 2007


> You can have two completely seperate swap partitions that aren't
> mirrored.  In fstab, ass prio=1 to both of them and presto, you have
> swap partition load balancing without mirroring.  But I digress...
>
> Since it's swap and not data it should be easy to convert.
>
> Turn off swap with swapoff (might want to be in single user mode).
> Nuke the metadevice with mdadm

how do you nuke the metadevice?  i've searched the mdadm manpage and there
is no option for that.  the only thing i can think of is to simply
recreate the new array using the old array.

> Create a new metadevice with mdadm and specify --level=1
> Change around fstab if you have to.
> swapon

thanks




More information about the LUG mailing list