[opensuse] swap partition with raid not active
I have setup RAID 1 with IDE drives. They are not on the same IDE cable. When I look at Linux Raid with webmin it tells me *Device file* /dev/md1 *RAID level* Mirrored (RAID1) *Filesystem status* For mounting on swap *Usable size* 787172 blocks (768.72 MB) *Persistent superblock?* Yes *Chunk size* Default *RAID status* active, Not Started The other partitions seem to be fine. This is the first Linux Raid I have setup. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aaron Bridge wrote:
I have setup RAID 1 with IDE drives. They are not on the same IDE cable. When I look at Linux Raid with webmin it tells me
*Device file* /dev/md1 *RAID level* Mirrored (RAID1) *Filesystem status* For mounting on swap *Usable size* 787172 blocks (768.72 MB) *Persistent superblock?* Yes *Chunk size* Default *RAID status* active, Not Started
The other partitions seem to be fine. This is the first Linux Raid I have setup. I had the same problem with linux raid and swap. See the below post which resolved my problem.
Jim F ---------- 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 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jim Flanagan wrote:
Aaron Bridge wrote:
I have setup RAID 1 with IDE drives. They are not on the same IDE cable. When I look at Linux Raid with webmin it tells me
*Device file* /dev/md1 *RAID level* Mirrored (RAID1) *Filesystem status* For mounting on swap *Usable size* 787172 blocks (768.72 MB) *Persistent superblock?* Yes *Chunk size* Default *RAID status* active, Not Started
The other partitions seem to be fine. This is the first Linux Raid I have setup. I had the same problem with linux raid and swap. See the below post which resolved my problem.
Jim F
----------
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
Yes, it looks like that worked. Swap now shows active and I see it as virtual memory in Webmin now. Device file /dev/md1 RAID level Mirrored (RAID1) Filesystem status Mounted on swap Usable size 787172 blocks (768.72 MB) Persistent superblock? Yes Chunk size Default RAID status active Partitions in RAID SCSI device A partition 2 SCSI device B partition 2 For what ever reason the Linux Raid main page in webmin shows it as not active. Device name Active? RAID level Member disk devices /dev/md1 No Mirrored (RAID1) /dev/sda2 | /dev/sdb2 This may just be webmin issue and I will post there. Thanks for the help. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aaron Bridge wrote:
I have setup RAID 1 with IDE drives. They are not on the same IDE cable. When I look at Linux Raid with webmin it tells me
*Device file* /dev/md1 *RAID level* Mirrored (RAID1) *Filesystem status* For mounting on swap *Usable size* 787172 blocks (768.72 MB) *Persistent superblock?* Yes *Chunk size* Default *RAID status* active, Not Started
The other partitions seem to be fine. This is the first Linux Raid I have setup.
tangential question here: Why are you mirroring swap? All that does is slow things down, and when your system is swapping, the last thing you want is the extra slowness of mirroring. By definition, there's nothing of lasting value on swap, and any problems with the disk(s) will show up as soft (i.e. correctable) errors in an amount of time (several days at least) before the disks actually fail -- or if it's bearing failure, the sound will be an unmistakable high-pitched whine which gets louder and louder over the course of weeks to months. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Aaron Bridge
-
Aaron Kulkis
-
Jim Flanagan