Nick Holland schreef:
Matt wrote:
Hi all,

Perhaps a bit daft but:
Somehow I have managed to exclude my swap partition from being mounted on my Raid0 array. I have no idea why it isn't in fstab but I can only assume I messed something up along the way while copying.

dunno what you were copying, but in a default config. Swap is assumed
to be the 'b' partition on the boot drive, and is thus not in /etc/fstab
normally.  If that's not the case, such as in your situation, you have
to put it manually.

The swap partition is present as a slice within the virtual raid0 disk.
Can I safely mount this on a live system or is that a bad idea?

not only is it safe, sometimes it critical to add swap on the fly. :)

Nick.

Thanks Nick,

Setting up the softraid I had to copy disklabels and (if I'm not mistaken) fstab. That's what I meant with 'lost while copying'.

Someone off list kindly helped me out with this and I mounted it back without any problems. It is still unclear to me why raid0b did not get mounted automatically (no trace of it in dmesg) but for the archives here's what I did:

man swapctl   :-)

added the following line to /etc/fstab

/dev/raid0b none swap sw 0 0

Then use swapctl to add it:

swapctl -A

Along the way I learned you can actually add extra swap (filebased) in a similar way [1] which might come in handy.

Thanks,
Matt

[1] http://www.openbsd.org/faq/faq14.html#SwapFile

Reply via email to