Re: RAID1 with multiple partitions

2010-12-17 Thread Bob Proulx
Tom H wrote: > The lenny box is using metadata v0.9 and there is a "(local to...)" on > the UUID line. It was created without specifying either "--homehost=" > or "--name=" when running "mdadm --create" on a running system (using > the standard "sfdisk -d ... | sfdisk ..." and "mdadm --create ...",

Re: RAID1 with multiple partitions

2010-12-17 Thread Tom H
On Fri, Dec 17, 2010 at 1:17 AM, Bob Proulx wrote: > Tom H wrote: >> Both "mdadm --detail /dev/mdX" and "mdadm --examine /dev/sdXY" will >> output "(local to host )" on the uuid line for metadata >> v0.90 and on the name line for metadata v1.x. > > I never see that[1] and therefore conclude that

Re: RAID1 with multiple partitions

2010-12-16 Thread Bob Proulx
Tom H wrote: > Both "mdadm --detail /dev/mdX" and "mdadm --examine /dev/sdXY" will > output "(local to host )" on the uuid line for metadata > v0.90 and on the name line for metadata v1.x. I never see that[1] and therefore conclude that if HOMEHOST is never set in the configuration file that it wi

Re: RAID1 with multiple partitions

2010-12-16 Thread Tom H
On Thu, Dec 16, 2010 at 12:44 PM, Bob Proulx wrote: > Tom H wrote: >> Bob Proulx wrote: >>> >>> I have not previously ever changed a hostname in /etc/mdadm/mdadm.conf >>> and not had a problem renaming systems. My mdadm.conf files don't >>> contain the actual hostname. >> >> Look up the HOSTNAME d

Re: RAID1 with multiple partitions

2010-12-16 Thread Tom H
On Thu, Dec 16, 2010 at 11:23 AM, David Gaudine wrote: > On 10-12-16 3:13 AM, Tom H wrote: >> On Wed, Dec 15, 2010 at 11:59 AM, David Gaudine >>  wrote: >>> >>> The temporary hostname is in each ARRAY line in mdadm.conf. >> >> I've never seen a hostname value on the ARRAY line in mdadm.conf. Are

Re: RAID1 with multiple partitions

2010-12-16 Thread Bob Proulx
Tom H wrote: > Bob Proulx wrote: > > I have not previously ever changed a hostname in /etc/mdadm/mdadm.conf > > and not had a problem renaming systems. My mdadm.conf files don't > > contain the actual hostname. > > Look up the HOSTNAME directive in the mdadm.conf man page. > > The default is "HO

Re: RAID1 with multiple partitions

2010-12-16 Thread David Gaudine
On 10-12-16 3:13 AM, Tom H wrote: On Wed, Dec 15, 2010 at 11:59 AM, David Gaudine wrote: The temporary hostname is in each ARRAY line in mdadm.conf. I've never seen a hostname value on the ARRAY line in mdadm.conf. Are you confusing hostname and array name? The array name is based on the hos

Re: RAID1 with multiple partitions

2010-12-16 Thread Tom H
On Wed, Dec 15, 2010 at 9:01 PM, Bob Proulx wrote: > > I have not previously ever changed a hostname in /etc/mdadm/mdadm.conf > and not had a problem renaming systems.  My mdadm.conf files don't > contain the actual hostname. Look up the HOSTNAME directive in the mdadm.conf man page. The default

Re: RAID1 with multiple partitions

2010-12-16 Thread Tom H
On Wed, Dec 15, 2010 at 11:59 AM, David Gaudine wrote: > On 10-12-10 10:22 PM, Tom H wrote: > On Fri, Dec 10, 2010 at 5:57 PM, David Gaudine > wrote: >>> >>> grub-install --root-directory=/boot /dev/sda >>> grub-install --root-directory=/boot /dev/sdb >>> >> grub-install /dev/sda >> grub-install

Re: RAID1 with multiple partitions

2010-12-15 Thread David Gaudine
On 15/12/2010 9:57 PM, Doug wrote: On 01/-10/-28163 02:59 PM, David Gaudine wrote: Sorry to answer my own question, but a power failure caused a corrupted filesystem on another computer and gave me a free IP to experiment with. So, I went ahead and renamed my computer. I did edit the name

Re: Re: RAID1 with multiple partitions

2010-12-15 Thread Doug
On 01/-10/-28163 02:59 PM, David Gaudine wrote: On 10-12-15 11:59 AM, David Gaudine wrote: The temporary hostname is in each ARRAY line in mdadm.conf. As I understand it, the temporary hostname is also in the superblock, and these must match or I won't be able to boot. So, do I have to do so

Re: RAID1 with multiple partitions

2010-12-15 Thread Bob Proulx
David Gaudine wrote: > David Gaudine wrote: > >The temporary hostname is in each ARRAY line in mdadm.conf. As I > >understand it, the temporary hostname is also in the superblock, > >and these must match or I won't be able to boot. So, do I have to > >do something about the superblock (how?), or

Re: RAID1 with multiple partitions

2010-12-15 Thread David Gaudine
On 10-12-15 11:59 AM, David Gaudine wrote: The temporary hostname is in each ARRAY line in mdadm.conf. As I understand it, the temporary hostname is also in the superblock, and these must match or I won't be able to boot. So, do I have to do something about the superblock (how?), or just edit

Re: RAID1 with multiple partitions

2010-12-15 Thread David Gaudine
On 10-12-10 10:22 PM, Tom H wrote: On Fri, Dec 10, 2010 at 5:57 PM, David Gaudine wrote: grub-install --root-directory=/boot /dev/sda grub-install --root-directory=/boot /dev/sdb grub-install /dev/sda grub-install /dev/sdb "--root-directory=/boot" will have insta

Re: RAID1 with multiple partitions

2010-12-11 Thread Rob Owens
On Fri, Dec 10, 2010 at 09:29:49PM -0500, David Gaudine wrote: > On 10/12/2010 8:11 PM, Rob Owens wrote: >> On Fri, Dec 10, 2010 at 05:57:09PM -0500, David Gaudine wrote: >>> Here I have a big problem. The guide said to run grub and do >>> root(hd0,0) >>> setup(hd0) >>> and repeat for the other di

Re: RAID1 with multiple partitions

2010-12-10 Thread David Gaudine
On 10/12/2010 8:11 PM, Rob Owens wrote: On Fri, Dec 10, 2010 at 05:57:09PM -0500, David Gaudine wrote: Here I have a big problem. The guide said to run grub and do root(hd0,0) setup(hd0) and repeat for the other disk. I don't have an executable file "grub". grub-pc is installed. After a bit o

Re: RAID1 with multiple partitions

2010-12-10 Thread Tom H
On Fri, Dec 10, 2010 at 5:57 PM, David Gaudine wrote: >>> >>> 4) The first guide shows how to install Grub on both disks.  After that's >>> done once, do I have to do it again whenever there's a new kernel package? >>>  Or in any other situation that I have to watch out for? >> >> You only need to

Re: RAID1 with multiple partitions

2010-12-10 Thread Rob Owens
On Fri, Dec 10, 2010 at 05:57:09PM -0500, David Gaudine wrote: > On 10-12-10 3:50 PM, Reiner Buehl wrote: >> On 10.12.2010 21:15, David Gaudine wrote: >>> 2) I put the SWAP partition on RAID. The first guide doesn't use >>> RAID for swap. The author emailed me his comments about the pros and >

Re: RAID1 with multiple partitions

2010-12-10 Thread David Gaudine
On 10-12-10 3:50 PM, Reiner Buehl wrote: On 10.12.2010 21:15, David Gaudine wrote: 2) I put the SWAP partition on RAID. The first guide doesn't use RAID for swap. The author emailed me his comments about the pros and cons, and I think I want it on RAID for peace of mind. It shouldn't really

Re: RAID1 with multiple partitions

2010-12-10 Thread shawn wilson
>> 3) The first guide doesn't use a separate boot partion, the second does. >>  Comments?  I've never used a separate boot partition.  I think it used to >> be important on large disks, to keep the kernel in the first 1024 cylinders, >> but isn't important anymore. > > A separate boot partition sti

Re: RAID1 with multiple partitions

2010-12-10 Thread Reiner Buehl
On 10.12.2010 21:15, David Gaudine wrote: The system works, but I still have some questions about whether what I've already done is OK. 1) Is it OK to use 4 MD arrays like this, or should I use just one and LVM like the jerryweb link? I got a bit confused reading about LVM and I don't need a

RAID1 with multiple partitions

2010-12-10 Thread David Gaudine
I'm trying to use RAID 1 for the first time. I've gone ahead and set up a system to test, using primarily these two guides: http://mikeoverip.wordpress.com/2009/12/07/debian-5-lenny-step-by-step-installation-with-software-raid-1-with-screenshots/ http://dev.jerryweb.org/raid/ My system looks