usb raid1 pendrive boot

2010-05-07 Thread Jozsi Vadkan
Did anyone managed to boot from RAID1?

Lenny gives this error message:

mdadm: no devices found for /dev/md0

I just want to install Debian Lenny on two pendrives [in sRAID1], so
that the HDD's in the pc can be used only as data containers, but it
gives this error message.

Please help me.

Thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1273231268.5627.27.ca...@localhost



usb raid1 pendrive boot

2010-05-07 Thread Nagy Gabor
Did anyone managed to boot from RAID1?

Lenny gives this error message:

mdadm: no devices found for /dev/md0

I just want to install Debian Lenny on two pendrives [in sRAID1], so
that the HDD's in the pc can be used only as data containers, but it
gives this error message.

Please help me.

Thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1273231027.5627.21.ca...@localhost



usb raid1 pendrive boot

2010-05-07 Thread Nagy Gabor

Did anyone managed to boot from RAID1?

Lenny gives this error message:

mdadm: no devices found for /dev/md0

I just want to install Debian Lenny on two pendrives [in sRAID1], so
that the HDD's in the pc can be used only as data containers, but it
gives this error message.

Please help me.

Thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1273231179.5627.25.ca...@localhost



Re: usb raid1 pendrive boot

2010-05-07 Thread deloptes
Jozsi Vadkan wrote:

 Did anyone managed to boot from RAID1?
 
 Lenny gives this error message:
 
 mdadm: no devices found for /dev/md0
 
 I just want to install Debian Lenny on two pendrives [in sRAID1], so
 that the HDD's in the pc can be used only as data containers, but it
 gives this error message.
 
 Please help me.
 
 Thank you!

If you don't know why this is happening, then you shouldn't be doing this!

This is because you don't have the md driver _in_ the kernel

You'll need a small i.e. 20-30MB partition out of raid to boot from with
i.e. initrd which loads the md driver and your raid device becomes visible.

It doesn't matter if it's a pendrive or something else.

regards



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/hs10l8$t0...@dough.gmane.org



Re: usb raid1 pendrive boot

2010-05-07 Thread Jozsi Vadkan
But i thought that, I can boot from RAID1 under Lenny. So i can't?

So the solution is that I need a separate /boot partition?

But the RAID will be useless then... 






2010. 05. 7, péntek keltezéssel 14.22-kor deloptes ezt írta:
 Jozsi Vadkan wrote:
 
  Did anyone managed to boot from RAID1?
  
  Lenny gives this error message:
  
  mdadm: no devices found for /dev/md0
  
  I just want to install Debian Lenny on two pendrives [in sRAID1], so
  that the HDD's in the pc can be used only as data containers, but it
  gives this error message.
  
  Please help me.
  
  Thank you!
 
 If you don't know why this is happening, then you shouldn't be doing this!
 
 This is because you don't have the md driver _in_ the kernel
 
 You'll need a small i.e. 20-30MB partition out of raid to boot from with
 i.e. initrd which loads the md driver and your raid device becomes visible.
 
 It doesn't matter if it's a pendrive or something else.
 
 regards
 
 
 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1273236024.5627.32.ca...@localhost



Re: usb raid1 pendrive boot

2010-05-07 Thread deloptes
Jozsi Vadkan wrote:

 But i thought that, I can boot from RAID1 under Lenny. So i can't?

As matter of fact there is not enough information to say exactly what's your
issue, but this is an option I would check.

 
 So the solution is that I need a separate /boot partition?

In your case if the md driver is not compiled into the kernel

 
 But the RAID will be useless then...
 
No because you can have those 30MBs backuped and restored easily - the raid
is holding the data.

You can also try debugging the initrd you are using to see what is going on
or give us more information on your setup - partitioning, grub/lilo setup
etc. 

there are many ways to get the job done!

regards



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/hs12pp$9s...@dough.gmane.org



Re: usb raid1 pendrive boot

2010-05-07 Thread martin f krafft
also sprach Jozsi Vadkan jozsi.avad...@gmail.com [2010.05.07.1440 +0200]:
 But i thought that, I can boot from RAID1 under Lenny. So i can't?

You should be able to, using grub-pc. Try passing rootdelay=15 to
the kernel boot command line.

If this doesn't work, you'll need to provide a lot more information
about what you are trying to do, what you did, what you are
expecting, and what exactly you are seeing.

-- 
 .''`.   martin f. krafft madd...@d.o  Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
during the voyage of life, remember to keep an eye out for a fair
wind; batten down during a storm; hail all passing ships; and fly your
colours proudly!


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: usb raid1 pendrive boot

2010-05-07 Thread Jozsi Vadkan
rootdelay=15 worked!!!

THANK YOU!!!


2010. 05. 7, péntek keltezéssel 14.54-kor martin f krafft ezt írta:
 also sprach Jozsi Vadkan jozsi.avad...@gmail.com [2010.05.07.1440 +0200]:
  But i thought that, I can boot from RAID1 under Lenny. So i can't?
 
 You should be able to, using grub-pc. Try passing rootdelay=15 to
 the kernel boot command line.
 
 If this doesn't work, you'll need to provide a lot more information
 about what you are trying to do, what you did, what you are
 expecting, and what exactly you are seeing.
 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1273239520.5627.34.ca...@localhost



Re: usb raid1 pendrive boot

2010-05-07 Thread martin f krafft
also sprach Jozsi Vadkan jozsi.avad...@gmail.com [2010.05.07.1538 +0200]:
 rootdelay=15 worked!!!

http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=blob;f=debian/FAQ;hb=HEAD#l560

-- 
 .''`.   martin f. krafft madd...@d.o  Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
everyone has a little secret he keeps,
 i like the fires when the city sleeps.
  -- mc 900 ft jesus


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: usb raid1 pendrive boot

2010-05-07 Thread Andrew Reid
On Friday 07 May 2010 08:22:00 deloptes wrote:
 Jozsi Vadkan wrote:
  Did anyone managed to boot from RAID1?
 
  Lenny gives this error message:
 
  mdadm: no devices found for /dev/md0
 

 You'll need a small i.e. 20-30MB partition out of raid to boot from with
 i.e. initrd which loads the md driver and your raid device becomes visible.

  Just for the record, it actually *is* possible to boot off a partition
that's in RAID1, but you might have to use grub.  The reason it works
is because grub can read past the md-raid1 metadata without getting
confused -- since the raid is not running when grub is looking at the
disks, it only sees one of the two, but since they're mirrored, and
since grub doesn't *write* to the partition, everything works.

  I have several production systems that do this.

  It's a bit complicated to set up, but generally, it goes
something like:

  - Install a basic system onto one drive, with the correct
      size of partition (call this /dev/sda1).
  - Set up an incomplete RAID1 array, with one device and
      one missing, with the second drive -- this is /dev/md0,
      consisting of /dev/sdb1 and an empty slot.
  - Configure /etc/mdadm/mdadm.conf, and re-build your initramfs
      so that it has the md modules and knows about the array.
  - Mount /dev/md0 somewhere and copy all the data off /dev/sda1 to it.
      It's very important to get the *new* initramfs onto the array.
  - Install grub in the bootloader of the 2nd drive. (The installer
      already did this for the first one). This actually isn't
      essential, but you may need it if/when /dev/sda fails.
  - Boot on to the incomplete RAID array -- root=/dev/md0.
  - Add /dev/sda1 to the array, and sync.

  Now you have a bootable software raid-1 system.

  I'm not saying this solves the OP's problem, necessarily,
but it's perfectly possible.  I've never tried it with LILO
or grub2, but I would think it would work.

-- A.
-- 
Andrew Reid / rei...@bellatlantic.net


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201005071303.20994.rei...@bellatlantic.net



More important question... (was Re: usb raid1 pendrive boot)

2010-05-07 Thread Ron Johnson

On 05/07/2010 06:21 AM, Jozsi Vadkan wrote:

Did anyone managed to boot from RAID1?

Lenny gives this error message:

mdadm: no devices found for /dev/md0

I just want to install Debian Lenny on two pendrives [in sRAID1], so
that the HDD's in the pc can be used only as data containers, but it
gives this error message.



Why the heck do you want to RAID together two thumb drives?  That 
seems so, so, so pointless.


--
Dissent is patriotic, remember?


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

Archive: http://lists.debian.org/4be48711.6020...@cox.net



Re: usb raid1 pendrive boot

2010-05-07 Thread martin f krafft
also sprach Andrew Reid rei...@bellatlantic.net [2010.05.07.1903 +0200]:
   Just for the record, it actually *is* possible to boot off a partition
 that's in RAID1, but you might have to use grub.  The reason it works
 is because grub can read past the md-raid1 metadata without getting
 confused

Correction: the md metadata comes after the filesystem. That's why
Grub1 doesn't see it.

Grub2 (grub-pc) can interpret md arrays and is the preferred method.

-- 
 .''`.   martin f. krafft madd...@d.o  Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
zum christentum wird man nicht geboren,
 man muß dazu nur krank genug sein.
 - friedrich nietzsche


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)