linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robin Hill <robin@robinhill.me.uk>
To: linux-raid@vger.kernel.org
Subject: Re: Converting system to raid
Date: Sat, 11 Apr 2009 15:36:42 +0100	[thread overview]
Message-ID: <20090411143642.GA9915@cthulhu.home.robinhill.me.uk> (raw)
In-Reply-To: <019701c9ba66$aeed5630$0a00a8c0@vorg>

[-- Attachment #1: Type: text/plain, Size: 2467 bytes --]

On Fri Apr 10, 2009 at 10:29:59PM -0700, Timothy D. Lenz wrote:

> From: "CoolCold" <coolthecold@gmail.com>
> 
> > Yes, he should provide correct /etc/mdadm/mdadm.conf and
> > update-initramfs -u on md boot, smth like
> > chroot /mnt/md0
> > update-initramfs -u
> 
> How would this help in a system that doesn't ramdisk built in to the
> kernel or as a module? Or does it change some other stuff?
> 
This is useless if you don't use an initrd.

> I started looking at the stuff that was copied to md0 and /md0/dev is
> empty. Looking through the guides I found a few things. One said that
> using cp had to be from root or not everything would get coppied. I
> used sudo but I know some things require you to root.
>
This shouldn't matter in this case.  The reason you're getting nothing
copied in /dev is that it's a mounted filesystem, and your copy command
specifically excludes mounted filesystems.

> Also this:
> ===============================
> # rsync -avHhx --progress / /mnt/raid-md0
> 
>     * If the system wasn't previously in single user mode, move to
>     single user mode and update the data that changed during the first
>     copy:
> (--delete flag tells rsync to delete files from the destination which
> do not exist on the source):
> 
> # rsync -avHhx --progress --delete / /mnt/raid-md0
> 
Yes, this is an alternative to running from a bootable CD.  In
single-user mode (init 1), there can be no background applications
running, so there should be no open files to worry about.  I'd still
rather use a bootable CD though.

>     * Create needed device nodes:
> 
> # cd /mnt/raid-md0/dev/ && MAKEDEV generic
> ===============================
> Using rsync from single user mode still left /mnt/md0/dev empty. I
> read up in "makedev generic" and it seems to be a shotgun fix adding
> way more then is needed. Is there a way to create just what is in
> /dev?
> 
Again, the rsync command includes the 'x' option so excludes mounted
filesystems (which is what you want here).  You can copy the necessary
/dev entries manually - I think the only entries you need are
/dev/console & /dev/null, so:
    cp -a /dev/console /dev/null /mnt/raid-md0/dev

Cheers,
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <robin@robinhill.me.uk> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2009-04-11 14:36 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09 23:44 Converting system to raid Timothy D. Lenz
2009-04-10  9:10 ` KwangErn Liew
2009-04-10  9:55   ` CoolCold
2009-04-10 19:43     ` Timothy D. Lenz
2009-04-10 19:53   ` Robin Hill
2009-04-10 20:45     ` Timothy D. Lenz
2009-04-10 20:59       ` Robin Hill
2009-04-10 21:26         ` Timothy D. Lenz
2009-04-10 21:51           ` Robin Hill
2009-04-11  5:29             ` Timothy D. Lenz
2009-04-11 14:29               ` CoolCold
2009-04-11 18:47                 ` Timothy D. Lenz
2009-04-12  0:53                   ` Timothy D. Lenz
2009-04-12 11:11                     ` Robin Hill
2009-04-12 19:55                       ` Timothy D. Lenz
2009-04-14  9:30                         ` Robin Hill
2009-04-17  0:47                           ` Timothy D. Lenz
2009-04-17  7:49                             ` Robin Hill
2009-04-11 14:36               ` Robin Hill [this message]
2009-04-11 15:04                 ` jim owens
2009-04-11 15:44                   ` Jeff Garzik
2009-04-11 17:40                     ` jim owens
2009-04-12 11:11                       ` Jeff Garzik
2009-04-12 16:43                         ` jim owens
2009-04-12 17:18                           ` Jeff Garzik
2009-04-10 13:22 ` Robin Hill
2009-04-10 19:22   ` Timothy D. Lenz
2009-04-10 19:50     ` Robin Hill
2009-04-11  4:40       ` Jon Lewis
2009-04-11  7:48         ` Jan Ceuleers
2009-04-11  8:50         ` Goswin von Brederlow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090411143642.GA9915@cthulhu.home.robinhill.me.uk \
    --to=robin@robinhill.me.uk \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).