Discussion:
[webmin-l] Linux RAID confusion
Aaron Bridge
2008-02-15 02:56:46 UTC
Permalink
The main page of Linux shows

*Device name* *Active?* *RAID level* *Member disk devices*
/dev/md0 <https://suse-server:10000/raid/view_raid.cgi?idx=0> Yes
Mirrored (RAID1) /dev/sda1 | /dev/sdb1
/dev/md1 <https://suse-server:10000/raid/view_raid.cgi?idx=1> No
Mirrored (RAID1) /dev/sda2 | /dev/sdb2
/dev/md2 <https://suse-server:10000/raid/view_raid.cgi?idx=2> Yes
Mirrored (RAID1) /dev/sda3 | /dev/sdb3
/dev/md3 <https://suse-server:10000/raid/view_raid.cgi?idx=3> Yes
Mirrored (RAID1) /dev/sda4 | /dev/sdb4


But when I click on /dev/md1 (this is the swap) it shows as being active.

*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


cat /proc/mdstat shows

Personalities : [raid1] [raid0] [raid6] [raid5] [raid4]
md3 : active raid1 sda4[0] sdb4[1]
29792468 blocks super 1.0 [2/2] [UU]
bitmap: 0/228 pages [0KB], 64KB chunk

md0 : active raid1 sda1[0] sdb1[1]
104376 blocks super 1.0 [2/2] [UU]
bitmap: 0/7 pages [0KB], 8KB chunk

md1 : active(auto-read-only) raid1 sda2[0] sdb2[1]
787172 blocks super 1.0 [2/2] [UU]
bitmap: 0/7 pages [0KB], 64KB chunk

md2 : active raid1 sda3[0] sdb3[1]
8393888 blocks super 1.0 [2/2] [UU]
bitmap: 4/129 pages [16KB], 32KB chunk

It seems like the swap raid is active and working. Any idea why the
main Linux RAID page shows it as not active?


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
John Drescher
2008-02-15 03:25:21 UTC
Permalink
Post by Aaron Bridge
The main page of Linux shows
*Device name* *Active?* *RAID level* *Member disk devices*
/dev/md0 <https://suse-server:10000/raid/view_raid.cgi?idx=0> Yes
Mirrored (RAID1) /dev/sda1 | /dev/sdb1
/dev/md1 <https://suse-server:10000/raid/view_raid.cgi?idx=1> No
Mirrored (RAID1) /dev/sda2 | /dev/sdb2
/dev/md2 <https://suse-server:10000/raid/view_raid.cgi?idx=2> Yes
Mirrored (RAID1) /dev/sda3 | /dev/sdb3
/dev/md3 <https://suse-server:10000/raid/view_raid.cgi?idx=3> Yes
Mirrored (RAID1) /dev/sda4 | /dev/sdb4
But when I click on /dev/md1 (this is the swap) it shows as being active.
*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
cat /proc/mdstat shows
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4]
md3 : active raid1 sda4[0] sdb4[1]
29792468 blocks super 1.0 [2/2] [UU]
bitmap: 0/228 pages [0KB], 64KB chunk
md0 : active raid1 sda1[0] sdb1[1]
104376 blocks super 1.0 [2/2] [UU]
bitmap: 0/7 pages [0KB], 8KB chunk
md1 : active(auto-read-only) raid1 sda2[0] sdb2[1]
787172 blocks super 1.0 [2/2] [UU]
bitmap: 0/7 pages [0KB], 64KB chunk
md2 : active raid1 sda3[0] sdb3[1]
8393888 blocks super 1.0 [2/2] [UU]
bitmap: 4/129 pages [16KB], 32KB chunk
It seems like the swap raid is active and working. Any idea why the
main Linux RAID page shows it as not active?
If /proc/mdstat says it is active then it is active.

Also, Its better to have two swap files than raiding the swap.

John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
John Drescher
2008-02-15 03:36:49 UTC
Permalink
Post by Aaron Bridge
It seems like the swap raid is active and working. Any idea why the
main Linux RAID page shows it as not active?
Sorry, I did not notice this was the webmin list until after I posted
(I subscribe to 10 to 20 lists). Anyways I bet "(auto-read-only)" is
causing the problem. I am not familiar with the code so I will leave
that to the devs.

John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
Jamie Cameron
2008-02-15 05:53:22 UTC
Permalink
On 14/Feb/2008 18:56 Aaron Bridge wrote ..
Post by Aaron Bridge
The main page of Linux shows
*Device name* *Active?* *RAID level* *Member disk devices*
/dev/md0 <https://suse-server:10000/raid/view_raid.cgi?idx=0> Yes
Mirrored (RAID1) /dev/sda1 | /dev/sdb1
/dev/md1 <https://suse-server:10000/raid/view_raid.cgi?idx=1> No
Mirrored (RAID1) /dev/sda2 | /dev/sdb2
/dev/md2 <https://suse-server:10000/raid/view_raid.cgi?idx=2> Yes
Mirrored (RAID1) /dev/sda3 | /dev/sdb3
/dev/md3 <https://suse-server:10000/raid/view_raid.cgi?idx=3> Yes
Mirrored (RAID1) /dev/sda4 | /dev/sdb4
But when I click on /dev/md1 (this is the swap) it shows as being active.
*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
cat /proc/mdstat shows
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4]
md3 : active raid1 sda4[0] sdb4[1]
29792468 blocks super 1.0 [2/2] [UU]
bitmap: 0/228 pages [0KB], 64KB chunk
md0 : active raid1 sda1[0] sdb1[1]
104376 blocks super 1.0 [2/2] [UU]
bitmap: 0/7 pages [0KB], 8KB chunk
md1 : active(auto-read-only) raid1 sda2[0] sdb2[1]
787172 blocks super 1.0 [2/2] [UU]
bitmap: 0/7 pages [0KB], 64KB chunk
md2 : active raid1 sda3[0] sdb3[1]
8393888 blocks super 1.0 [2/2] [UU]
bitmap: 4/129 pages [16KB], 32KB chunk
It seems like the swap raid is active and working. Any idea why the
main Linux RAID page shows it as not active?
Sounds like a bug to me.. Is your system using MDADM or Raidtools for
RAID? If it is the latter, what does the /etc/raidtab file contain?

- Jamie

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
Aaron Bridge
2008-02-15 11:00:11 UTC
Permalink
Post by Jamie Cameron
On 14/Feb/2008 18:56 Aaron Bridge wrote ..
Post by Aaron Bridge
The main page of Linux shows
*Device name* *Active?* *RAID level* *Member disk devices*
/dev/md0 <https://suse-server:10000/raid/view_raid.cgi?idx=0> Yes
Mirrored (RAID1) /dev/sda1 | /dev/sdb1
/dev/md1 <https://suse-server:10000/raid/view_raid.cgi?idx=1> No
Mirrored (RAID1) /dev/sda2 | /dev/sdb2
/dev/md2 <https://suse-server:10000/raid/view_raid.cgi?idx=2> Yes
Mirrored (RAID1) /dev/sda3 | /dev/sdb3
/dev/md3 <https://suse-server:10000/raid/view_raid.cgi?idx=3> Yes
Mirrored (RAID1) /dev/sda4 | /dev/sdb4
But when I click on /dev/md1 (this is the swap) it shows as being active.
*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
cat /proc/mdstat shows
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4]
md3 : active raid1 sda4[0] sdb4[1]
29792468 blocks super 1.0 [2/2] [UU]
bitmap: 0/228 pages [0KB], 64KB chunk
md0 : active raid1 sda1[0] sdb1[1]
104376 blocks super 1.0 [2/2] [UU]
bitmap: 0/7 pages [0KB], 8KB chunk
md1 : active(auto-read-only) raid1 sda2[0] sdb2[1]
787172 blocks super 1.0 [2/2] [UU]
bitmap: 0/7 pages [0KB], 64KB chunk
md2 : active raid1 sda3[0] sdb3[1]
8393888 blocks super 1.0 [2/2] [UU]
bitmap: 4/129 pages [16KB], 32KB chunk
It seems like the swap raid is active and working. Any idea why the
main Linux RAID page shows it as not active?
Sounds like a bug to me.. Is your system using MDADM or Raidtools for
RAID? If it is the latter, what does the /etc/raidtab file contain?
- Jamie
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
I am using MDADM. As John said, I may need to use two swaps instead of
using RAID for the swap. Is that easy enough to do within webmin?

Aaron

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
Jamie Cameron
2008-02-15 18:23:32 UTC
Permalink
On 15/Feb/2008 03:00 Aaron Bridge wrote ..
Post by Aaron Bridge
Post by Jamie Cameron
On 14/Feb/2008 18:56 Aaron Bridge wrote ..
Post by Aaron Bridge
The main page of Linux shows
*Device name* *Active?* *RAID level* *Member disk devices*
/dev/md0 <https://suse-server:10000/raid/view_raid.cgi?idx=0> Yes
Mirrored (RAID1) /dev/sda1 | /dev/sdb1
/dev/md1 <https://suse-server:10000/raid/view_raid.cgi?idx=1> No
Mirrored (RAID1) /dev/sda2 | /dev/sdb2
/dev/md2 <https://suse-server:10000/raid/view_raid.cgi?idx=2> Yes
Mirrored (RAID1) /dev/sda3 | /dev/sdb3
/dev/md3 <https://suse-server:10000/raid/view_raid.cgi?idx=3> Yes
Mirrored (RAID1) /dev/sda4 | /dev/sdb4
But when I click on /dev/md1 (this is the swap) it shows as being active.
*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
cat /proc/mdstat shows
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4]
md3 : active raid1 sda4[0] sdb4[1]
29792468 blocks super 1.0 [2/2] [UU]
bitmap: 0/228 pages [0KB], 64KB chunk
md0 : active raid1 sda1[0] sdb1[1]
104376 blocks super 1.0 [2/2] [UU]
bitmap: 0/7 pages [0KB], 8KB chunk
md1 : active(auto-read-only) raid1 sda2[0] sdb2[1]
787172 blocks super 1.0 [2/2] [UU]
bitmap: 0/7 pages [0KB], 64KB chunk
md2 : active raid1 sda3[0] sdb3[1]
8393888 blocks super 1.0 [2/2] [UU]
bitmap: 4/129 pages [16KB], 32KB chunk
It seems like the swap raid is active and working. Any idea why the
main Linux RAID page shows it as not active?
Sounds like a bug to me.. Is your system using MDADM or Raidtools for
RAID? If it is the latter, what does the /etc/raidtab file contain?
- Jamie
I am using MDADM. As John said, I may need to use two swaps instead of
using RAID for the swap. Is that easy enough to do within webmin
Ok, I see the problem now - Webmin is looking for 'active' for the status,
but in your /proc/mdstat file is says 'active(auto-read-only)'. I'll fix this
in the next release.

Till then, you can either ignore this, or use two swaps. That is easily done
using Webmin's Partitions on Local Disks and Disk and Network Filesystems modules.

- Jamie

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list

Continue reading on narkive:
Loading...