Re: mdadm create problem with existing bitmap file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 20 Aug 2010 11:16:39 -0600
Juan Aristizabal <jaristizabal@xxxxxxxxxxxxxxx> wrote:

> Hello,
> 
> I am using mdadm 2.6.3 on Ubuntu 8.04.3 32 bits. Sometimes I hit this 
> error when I try to create a RAID1:
> 
> mdadm --create --force --assume-clean /dev/md73 --level=1 
> --bitmap=/root/bitmaps/md73bm.tmp --raid-devices=2 /dev/vg1/vol1 
> --write-mostly /dev/sdj
> 
> Continue creating array? mdadm: failed to open bitmap file 
> /root/bitmaps/md73bm.tmp: Text file busy
> 
> The bitmap file exists, but lsof doesn't show that it is in use by any 
> other process.
> 
> If I copy the bitmap file and try the create again everything works fine.
> 
> Any idea what might be happening here?

My best guess is that some other array is already using that bitmap file.  
   cat /proc/mdstat
should show you.
There aren't many circumstances that can create Text file busy - either the
file must be a binary that is being run, or a swap-file for which swapon has
been run, or the file is a bitmap file for an md array (maybe there are some
others, I cannot be bothered to grep just now).

NeilBrown


> 
> 
> Thanks,
> 
>  
> Juan Aristizabal
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux