On Wednesday 30 July 2008 05:33:22 am Rodney Baker wrote:
It looks to me like the array has been created OK but has not been started. Try running mdadm --run /dev/md3, then mkswap /dev/md3. If it successfully creates a swap filesystem on the array after starting it, then you should be able to do swapon /dev/md3.
First of all, cat /proc/mdstat still shows a resync pending (nearly 20 hours have elapsed). md3 : active (auto-read-only) raid1 sda6[1] sdb6[0] 2104468 blocks super 1.0 [2/2] [UU] resync=PENDING bitmap: 9/9 pages [36KB], 128KB chunk Then # mdadm --run /dev/md3 mdadm: failed to run array /dev/md3: Device or resource busy However, now (10 seconds later) cat /proc/mdstat shows md3 : active raid1 sda6[1] sdb6[0] 2104468 blocks super 1.0 [2/2] [UU] bitmap: 0/9 pages [0KB], 128KB chunk No more resync pending. OK.... Try to make a swap # mkswap /dev/md3 mkswap: error: swap area needs to be at least 40kB Usage: mkswap [-c] [-v0|-v1] [-pPAGESZ] [-L label] /dev/name [blocks] Doesn't work because it is not running. # mdadm --detail /dev/md3 [...] State : active, Not Started [...] However I can't 'run' it (same as starting?) # mdadm --run /dev/md3 mdadm: failed to run array /dev/md3: Device or resource busy Stopping has no effect either. # mdadm --stop /dev/md3 mdadm: fail to stop array /dev/md3: Device or resource busy What is it busy doing? lsof shows nothing using /dev/md3 /dev/sda6 /dev/sdb6
There are others on the list who have much more experience than I with software raid, so they may have a better idea but that is what I'd be trying for starters.
Thanks for your help so far. -- Don -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org