Re: mkraid could not lock sda2

From: Justin Guerin (jguerin_at_cso.atmel.com)
Date: 03/23/04

  • Next message: Captain Jack Sparrow: "nvidia bzflag"
    Date: Tue, 23 Mar 2004 13:33:26 -0700
    To: debian-user@lists.debian.org
    
    

    On Tuesday 23 March 2004 12:12, Michael Webber wrote:
    > UPDATE on bottom
    >
    [snip]
    > _______________________________________________________
    > sda1 is a swap partition and im 100% sure that isnt being used (I have
    > 2 gigs of ram hehe) sda2 is being used thats what I boot from ... but
    > .. what else can I do ? the error is on sda1 .. /etc/fstab =
    > below ..
    > # /etc/fstab: static file system information.
    > #
    > # <file system> <mount point>   <type>  <options>               <dump> 
    > <pass> /dev/sda2       /               ext3    errors=remount-ro      
    > 0       1 /dev/sda1       none            swap    sw  &
    > amp;
    > nbsp;                   0       0
    > proc            /proc           proc    defaults                0       0
    > /dev/fd0        /floppy         auto    user,noauto             0       0
    > /dev/cdrom      /cdrom          iso9660 ro,user,noauto          0       0
    >  
    >
    Your fstab shows that sda1 is being used, as swap. Remove that line from
    your fstab when you boot, and also use a program such as fdisk to change
    the partition type from Linux swap to Linux Raid Autodetect. If you're
    going to try to boot from your raid array, mark the partition as bootable.
    > ___________________________
    > _______________
    > mdstat
    >  
    > Personalities : [raid1]
    > unused devices: <none>
    >  
    > ______________________________
    > I booted from sda and thats where i running mkraid from. Do I need
    > to run it on a floppy or something? on boot I got this ..
    >  
    It doesn't matter what physical disk you boot from, but you have to be sure
    that you aren't using the partitions you want to use in your raid set for
    anything else when you boot.

    > md: Autodetecting RAID arrays.
    > md: autorun ...
    > md: ... autorun DONE.
    > kjournald starting.  Commit interval 5 seconds
    > EXT3-fs: mounted filesystem with ordered data mode.
    > VFS: Mounted root (ext3 filesystem) readonly.
    > Freeing unused kernel memory: 232k freed
    > Adding 979924k swap on /dev/sda1.  Priority:-1 extents:1
    > EXT3 FS on sda2, internal journal
    > drivers/usb/core/usb.c: registered new driver usbfs
    > drivers/usb/core/usb.c: registered new driver hub
    > drivers/usb/core/usb.c: registered new driver usbkbd
    > drivers/usb/input/usbkbd.c: :USB HID Boot Protocol keyboard driver
    > md: raidstart(pid 87) u
    > sed deprecated START_ARRAY ioctl. This will not be support$md: could not
    > import sda1! md: autostart unknown-block(0,2049) failed!
    > md: raidstart(pid 87) used deprecated START_ARRAY ioctl. This will not be
    > support$ md: invalid raid superblock magic on sdb1
    > md: sdb1 has invalid sb, not importing!
    > md: could not import sdb1!
    > md: autostart unknown-block(0,2065) failed!
    > md: raidstart(pid 103) used deprecated START_ARRAY ioctl. This will not
    > be suppor$ md: could not lock sda2.
    > md: could not import sda2!
    > md: autostart unknown-block(0,2050) failed!
    > md: invalid raid superblock magic on sdb2
    > md: sdb2 has invalid sb, not importing!
    > md: could not import sdb2!
    > md: autostart unknown-block(0,2066) failed!
    >  
    > Thanks.
    >  
    > UPDATE : ok I did swapoff -a (turns the swap off and it let me
    > mirror the swap partition)
    >
    > :0)
    >
    > but now i try to do the
    > main partition sba2 and it says device is busy ..
    > I went into ini1 (I think thats one user mode) and it still did
    > it... heeelllpppppp
    >
    I thought your swap partition was sda1. I'm assuming you mean sda2 instead
    of sba2 above, right? If so, that device is still busy, because it's your
    root partition (at least, according to your fstab).

    Concentrate on /dev/md0 for now. Make sure you aren't using /dev/sda1
    and /dev/sdb1 for anything when you boot. Don't mount them, or anything.
    Then, you should be able to make them into a raid device.

    Post your results, and we'll go from there.

    Justin Guerin


  • Next message: Captain Jack Sparrow: "nvidia bzflag"

    Relevant Pages

    • slackware 9.1 software raid problem
      ... Setting up a RAID system with Slackware 8 is not extremely difficult once ... mirroring the root partition and booting from that mirror was not possible. ... Each disk is attached to a different IDE chain on the motherboard. ... The ability to boot from the Slackware 8 install CD. ...
      (alt.os.linux)
    • Re: unable to access sda2 on boot - SOLVED
      ... which FC I want to boot 2.6.20 or 2.6.19. ... Should I start with the fstab changes you suggested? ... That's drives, not ports, it doesn't count unused ports. ... > The resume message means the system couldn't find the drive partition to ...
      (Fedora)
    • Re: Which partition for recording changes?
      ... that's what RAID 1 is for! ... > The only reason we're even talking about using a boot manager ... > Without partition hiding, this caused the behavior you saw. ... > BootIt NG as I've described in my other posts will work too. ...
      (comp.sys.ibm.pc.hardware.storage)
    • Re: Operating System Not Found - on boot! Help!
      ... Cris Hanna [SBS - MVP] ... I am running a hardware based raid solution and the RAID is healthy. ... The BIOS can detect the RAID Disk and is set to boot from ... active or not and it doesn't give me an option to make a partition active. ...
      (microsoft.public.windows.server.sbs)
    • Re: Replacing boot drive: how to make a copy of it?
      ... If, before you make the copy you set up the new drive as a single element of a raid 1 raid array, then replace the failing disk and add the replacement in as the second element to this array, you will then have a permanent hot standby system. ... That is something I have just done, although I have a separate boot partition, and you have to independently store the boot block on to both drives. ...
      (Debian-User)