Re: mkraid could not lock sda2

From: Michael Webber (sssouthpaw_at_hotmail.com)
Date: 03/24/04

  • Next message: Michael Bellears: "Woody + Compaq ML570G2R Compatable?"
    To: debian-user@lists.debian.org
    Date: Tue, 23 Mar 2004 17:27:20 -0800
    
    

    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

    ________________________________________
    my swap partition is sda1. I have turned swap off and I have /dev/md0
    = the mirrored swap ...... but I cant get the sda2 (all the data and
    stuff) ...
    so you say I just need to restart? I have tried that but ... it just
    gives errors.. do I need to boot a special way?

    _________________________________________________________________
    Get tax tips, tools and access to IRS forms – all in one place at MSN Money!
    http://moneycentral.msn.com/tax/home.asp

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Michael Bellears: "Woody + Compaq ML570G2R Compatable?"

    Relevant Pages

    • Re: mkraid could not lock sda2
      ... Your fstab shows that sda1 is being used, ... going to try to boot from your raid array, mark the partition as bootable. ...
      (Debian-User)
    • Re: Pagefile problem after duplicating Win2000 partition
      ... Boot into safe mode ... set your new swap file appropriatly ... > like the old one was (using Partition Magic 7): ... So that the actual Windows desktop never comes up, ...
      (microsoft.public.win2000.general)
    • How to reassign "hibernate/restore/resume" partition on F9?
      ... Recently I upgraded the boot hard drive on this F9 box from 20GB to ... reversed the swap and root partition numbers. ... The swap partition is correctly detected. ... to look for the origin of the kernel boot message. ...
      (Fedora)
    • 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: Having a hard time copying root file system to new drive... [SOLVED]
      ... From rescue mode you might mount the /boot partition ... booting and edit this on the fly instead of a rescue boot again. ... I KNOW that having a mislabeled swap mislabeled as seen by initrd does not ... for example) and these drives will be mounted RO in ...
      (Fedora)