SOLVED: Software-RAID1 on sarge (AMD64) (was: Re: install-mbr on amd64?)

2006-05-28 Thread Kilian
In the last few days, I was struggling to convert a remote machine with two identical SATA disks (sda and sdb) to a Software RAID 1. Especially the boot-part was tricky as I had no console access to the machine. The whole procedure was done remotely via SSH. I use the md tools (mdadm) and lilo

Re: install-mbr on amd64?

2006-05-23 Thread Lennart Sorensen
On Sat, May 20, 2006 at 09:28:07PM +0200, Goswin von Brederlow wrote: man grub-install: grub-install copies GRUB images into the DIR/boot directory specfied by --root-directory, and uses the grub shell to install grub into the boot sector. Your command line would

Re: install-mbr on amd64?

2006-05-23 Thread Lennart Sorensen
On Sat, May 20, 2006 at 02:07:54AM +0200, Goswin von Brederlow wrote: Then pull a disk (the right one) and see it stop booting. From grub-install: # Usage: getraid_mdadm mddevice # Routine to find a physical device from an md device # If found, the first grub BIOS device (from device.map)

Re: install-mbr on amd64?

2006-05-23 Thread Lennart Sorensen
On Sat, May 20, 2006 at 02:09:27PM +0200, Alexander Sieck wrote: Goswin is right. I have installed etch on amd64 and configured RAID1, LVM and grub in d-i. # BEGIN-CLI deb64a:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 1829101

Re: install-mbr on amd64?

2006-05-21 Thread Alexander Sieck
On Sat, May 20, 2006 at 09:38:16PM +0200, Goswin von Brederlow wrote: Alexander Sieck [EMAIL PROTECTED] writes: After running 'grub-install' on /dev/sdb, both MBRs, on /dev/sda and /dev/sdb, contain the right data. Some data but the right data? The two MBRs should be identical or not?

Re: install-mbr on amd64?

2006-05-21 Thread D.I. Kulagin
/dev/md0 /boot xfs defaults0 0 /dev/md1 noneswapswap /dev/md2 / xfs defaults0 0 /dev/md3 /home xfs defaults0 0 /dev/md4 /varxfs defaults0 0 /dev/md5 /var/logxfs defaults0 0 /dev/md6

Re: install-mbr on amd64?

2006-05-21 Thread Goswin von Brederlow
Alexander Sieck [EMAIL PROTECTED] writes: That is, also after changing sda to sdb in device.map, the two MBRs are not identical. Maybe Goswin, or somebody else who enabled booting from both disks with RAID1 and grub, can give the output of 'dd if=xxx[ab] bs=512 count=1 | od' on their

Re: install-mbr on amd64?

2006-05-21 Thread Alexander Sieck
Hello, I now tested RAID1 together with grub by unplugging the 1st disk (to be sure, I tested with the 2nd as well). As you can read further up in this thread I did run 'grub-install --no-floppy /dev/sdb' to install the boot-loader in the MBR of the 2nd disk /dev/sdb. Then I halted the computer

Re: install-mbr on amd64?

2006-05-20 Thread Alexander Sieck
On Sat, May 20, 2006 at 02:07:54AM +0200, Goswin von Brederlow wrote: On Fri, May 19, 2006 at 04:29:36PM +0200, Goswin von Brederlow wrote: You have to trick grub-install. Say /boot is on /dev/md0, a raid1 of /dev/sda1 and /dev/sdb1. Then you can put /dev/sda1 into devices.map,

Re: install-mbr on amd64?

2006-05-20 Thread Kilian
Goswin von Brederlow wrote: Kilian [EMAIL PROTECTED] writes: Goswin von Brederlow wrote: [...] I went ahead and fixed mbr up for amd64. Apart from the obvious (Build-depends, gcc -m32) I also fixed up some of the more serious warnings and included running the testsuite as much as possible.

Re: install-mbr on amd64?

2006-05-20 Thread Goswin von Brederlow
Kilian [EMAIL PROTECTED] writes: Goswin von Brederlow wrote: Kilian [EMAIL PROTECTED] writes: Goswin von Brederlow wrote: [...] I went ahead and fixed mbr up for amd64. Apart from the obvious (Build-depends, gcc -m32) I also fixed up some of the more serious warnings and included running

Re: install-mbr on amd64?

2006-05-20 Thread Goswin von Brederlow
Alexander Sieck [EMAIL PROTECTED] writes: After running 'grub-install' on /dev/sdb, both MBRs, on /dev/sda and /dev/sdb, contain the right data. Some data but the right data? The two MBRs should be identical or not? Have you tried removing sda and boot or swap sda and sdb around and boot?

Re: install-mbr on amd64?

2006-05-19 Thread Dmitry I. Kulagin
Hi! I use ms-sys with -s option just a week ago in simular situation. As far as I know, you can't indicate grub to load from /dev/md0, only lilo can do this. And there is no need to recompile the kernel, the debian distributed kernel with the yaird as initrd creator can load the system in your

Re: install-mbr on amd64?

2006-05-19 Thread Goswin von Brederlow
Dmitry I. Kulagin [EMAIL PROTECTED] writes: Hi! I use ms-sys with -s option just a week ago in simular situation. As far as I know, you can't indicate grub to load from /dev/md0, only lilo can do this. And there is no need to recompile the kernel, the debian distributed kernel with the

Re: install-mbr on amd64?

2006-05-19 Thread Gabor Gombas
On Thu, May 18, 2006 at 08:02:11AM -0400, Scott Reese wrote: You don't say what boot loader you're using, but if you are using grub, you can simply install the MBR to the second disk using the grub terminal. I needed install-mbr when I wanted to kill grub in favor of lilo a few weeks ago. The

Re: install-mbr on amd64?

2006-05-19 Thread Gabor Gombas
On Fri, May 19, 2006 at 04:29:36PM +0200, Goswin von Brederlow wrote: You have to trick grub-install. Say /boot is on /dev/md0, a raid1 of /dev/sda1 and /dev/sdb1. Then you can put /dev/sda1 into devices.map, instal-grub, repeat for sdb1. You might have to change fstab and/or mtab as well.

Re: install-mbr on amd64?

2006-05-19 Thread Gabor Gombas
On Thu, May 18, 2006 at 07:05:56PM +0200, Goswin von Brederlow wrote: I went ahead and fixed mbr up for amd64. Apart from the obvious (Build-depends, gcc -m32) I also fixed up some of the more serious warnings and included running the testsuite as much as possible. The package compiles but

Re: install-mbr on amd64?

2006-05-19 Thread Goswin von Brederlow
Gabor Gombas [EMAIL PROTECTED] writes: On Fri, May 19, 2006 at 04:29:36PM +0200, Goswin von Brederlow wrote: You have to trick grub-install. Say /boot is on /dev/md0, a raid1 of /dev/sda1 and /dev/sdb1. Then you can put /dev/sda1 into devices.map, instal-grub, repeat for sdb1. You might have

Re: install-mbr on amd64?

2006-05-19 Thread Kilian
Goswin von Brederlow wrote: tag 330190 + patch thanks Kilian [EMAIL PROTECTED] writes: Dear All, I'm trying to set up a software RAID 1 (two disks) with Debian on a system with an AMD x86_64 Athlon processor. To install the MBR on both discs, I need install-mbr

Re: install-mbr on amd64?

2006-05-19 Thread Lennart Sorensen
On Fri, May 19, 2006 at 04:29:36PM +0200, Goswin von Brederlow wrote: You have to trick grub-install. Say /boot is on /dev/md0, a raid1 of /dev/sda1 and /dev/sdb1. Then you can put /dev/sda1 into devices.map, instal-grub, repeat for sdb1. You might have to change fstab and/or mtab as well.

Re: install-mbr on amd64?

2006-05-19 Thread Goswin von Brederlow
Kilian [EMAIL PROTECTED] writes: Goswin von Brederlow wrote: tag 330190 + patch thanks Kilian [EMAIL PROTECTED] writes: Dear All, I'm trying to set up a software RAID 1 (two disks) with Debian on a system with an AMD x86_64 Athlon processor. To install the MBR on both discs, I need

Re: install-mbr on amd64?

2006-05-19 Thread Goswin von Brederlow
[EMAIL PROTECTED] (Lennart Sorensen) writes: On Fri, May 19, 2006 at 04:29:36PM +0200, Goswin von Brederlow wrote: You have to trick grub-install. Say /boot is on /dev/md0, a raid1 of /dev/sda1 and /dev/sdb1. Then you can put /dev/sda1 into devices.map, instal-grub, repeat for sdb1. You might

install-mbr on amd64?

2006-05-18 Thread Kilian
Dear All, I'm trying to set up a software RAID 1 (two disks) with Debian on a system with an AMD x86_64 Athlon processor. To install the MBR on both discs, I need install-mbr (http://packages.debian.org/stable/base/mbr) if I'm correct, but this package does not exist in the amd64 port... I

Re: install-mbr on amd64?

2006-05-18 Thread Scott Reese
Kilian wrote: Dear All, I'm trying to set up a software RAID 1 (two disks) with Debian on a system with an AMD x86_64 Athlon processor. To install the MBR on both discs, I need install-mbr (http://packages.debian.org/stable/base/mbr) if I'm correct, but this package does not exist in the

Re: install-mbr on amd64?

2006-05-18 Thread Kilian
Scott Reese wrote: Kilian wrote: Dear All, I'm trying to set up a software RAID 1 (two disks) with Debian on a system with an AMD x86_64 Athlon processor. To install the MBR on both discs, I need install-mbr (http://packages.debian.org/stable/base/mbr) if I'm correct, but this package does not

Re: install-mbr on amd64?

2006-05-18 Thread Adam Stiles
On Thursday 18 May 2006 08:41, Kilian wrote: Dear All, I'm trying to set up a software RAID 1 (two disks) with Debian on a system with an AMD x86_64 Athlon processor. To install the MBR on both discs, I need install-mbr (http://packages.debian.org/stable/base/mbr) if I'm correct, but this

Re: install-mbr on amd64?

2006-05-18 Thread Lennart Sorensen
On Thu, May 18, 2006 at 09:41:27AM +0200, Kilian wrote: I'm trying to set up a software RAID 1 (two disks) with Debian on a system with an AMD x86_64 Athlon processor. To install the MBR on both discs, I need install-mbr (http://packages.debian.org/stable/base/mbr) if I'm correct, but this

Re: install-mbr on amd64?

2006-05-18 Thread Lennart Sorensen
On Thu, May 18, 2006 at 02:18:14PM +0200, Kilian wrote: I'm using lilo as bootloader, but as grub is way more modern, I might just switch to grub. The thing is, the machine I'm working on is remote and I have no console access, so everything is a bit tricky. It's already running, has two

Re: install-mbr on amd64?

2006-05-18 Thread Scott Reese
Kilian wrote: Thanks a lot for your reply! I'm using lilo as bootloader, but as grub is way more modern, I might just switch to grub. The thing is, the machine I'm working on is remote and I have no console access, so everything is a bit tricky. It's already running, has two identical

Re: install-mbr on amd64?

2006-05-18 Thread Goswin von Brederlow
tag 330190 + patch thanks Kilian [EMAIL PROTECTED] writes: Dear All, I'm trying to set up a software RAID 1 (two disks) with Debian on a system with an AMD x86_64 Athlon processor. To install the MBR on both discs, I need install-mbr (http://packages.debian.org/stable/base/mbr) if I'm