[opensuse] Linux RAID and Yast
Hi all, I'm having trouble with my swap file. I have my swap set up in a mirrored raid on md1. It is showing in sysinfo as swap not available. So i'm trying to delete md1, and repartition those 2 partitions as separate swap partitions, using yast partitioner. Problem is that I get an error saying... ----------------- Failure occurred during the following action Deleting software RAID /dev/md1 System error code was -6006 mdadm --stop /dev/md1: mdadm: fail to stop array /dev/md1:device or resource busy ----------------- I do have three other Linux RAID partitions on this machine, md0, md2 and md3, and these are functioning properly. I don't remember having this problem before, and I know swap was working at some point, but it isn't now. Any pointers? Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jim Flanagan wrote:
Hi all,
I'm having trouble with my swap file. I have my swap set up in a mirrored raid on md1. It is showing in sysinfo as swap not available.
What does "swapon -s" say?
So i'm trying to delete md1, and repartition those 2 partitions as separate swap partitions, using yast partitioner. Problem is that I get an error saying... ----------------- Failure occurred during the following action Deleting software RAID /dev/md1
System error code was -6006
mdadm --stop /dev/md1: mdadm: fail to stop array /dev/md1:device or resource busy
Try "swapoff /dev/md1", then start yast2 again. /Per Jessen, Zürich -- http://www.spamchek.com/ - your spam is our business. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
Jim Flanagan wrote:
Hi all,
I'm having trouble with my swap file. I have my swap set up in a mirrored raid on md1. It is showing in sysinfo as swap not available.
What does "swapon -s" say?
So i'm trying to delete md1, and repartition those 2 partitions as separate swap partitions, using yast partitioner. Problem is that I get an error saying... ----------------- Failure occurred during the following action Deleting software RAID /dev/md1
System error code was -6006
mdadm --stop /dev/md1: mdadm: fail to stop array /dev/md1:device or resource busy
Try "swapoff /dev/md1", then start yast2 again.
/Per Jessen, Zürich
Thanks for you Per and Herbert's post (see next) my problem is solved. For those intersted... swapon -s gave me the column headers, but not drive info below. swapoff /dev/md1 gave a similar error to that of yast, that the drive was not available Reading Herbert's post did solve the problem, by changing resume=/dev/md1 to noresume now allows me to manage my swap on the raid1 I have set up. All is working now. Many thanks, Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Sonntag, 3. Februar 2008 05:26:18 schrieb Jim Flanagan:
I'm having trouble with my swap file. I have my swap set up in a mirrored raid on md1. It is showing in sysinfo as swap not available. So i'm trying to delete md1, and repartition those 2 partitions as separate swap partitions, using yast partitioner. Problem is that I get an error saying... ----------------- Failure occurred during the following action Deleting software RAID /dev/md1
System error code was -6006
mdadm --stop /dev/md1: mdadm: fail to stop array /dev/md1:device or resource busy -----------------
I do have three other Linux RAID partitions on this machine, md0, md2 and md3, and these are functioning properly.
I don't remember having this problem before, and I know swap was working at some point, but it isn't now.
Any pointers?
Maybe that is, because mirrored swap partitions cannot be used for suspend to disk. You can disable this by replacing resume=/dev/md1 by noresume in your bootloader configuration. Cheers Herbert -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Herbert Graeber wrote:
Am Sonntag, 3. Februar 2008 05:26:18 schrieb Jim Flanagan:
I'm having trouble with my swap file. I have my swap set up in a mirrored raid on md1. It is showing in sysinfo as swap not available. So i'm trying to delete md1, and repartition those 2 partitions as separate swap partitions, using yast partitioner. Problem is that I get an error saying... ----------------- Failure occurred during the following action Deleting software RAID /dev/md1
System error code was -6006
mdadm --stop /dev/md1: mdadm: fail to stop array /dev/md1:device or resource busy -----------------
I do have three other Linux RAID partitions on this machine, md0, md2 and md3, and these are functioning properly.
I don't remember having this problem before, and I know swap was working at some point, but it isn't now.
Any pointers?
Maybe that is, because mirrored swap partitions cannot be used for suspend to disk. You can disable this by replacing resume=/dev/md1 by noresume in your bootloader configuration.
Cheers Herbert
Thanks Herbert, this fixed my problem. I had used "noresume" in the grub boot options, but for some reason that stopped working. By making that permanant in my grub file I can now access and manage my swap on /dev/md1. I have it on raid1. Many thanks for the tip. Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Herbert Graeber
-
Jim Flanagan
-
Per Jessen