linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: ANNOUNCE - mdadm 0.8 - candidate for 1.0
       [not found]   ` <15531.56527.518603.63636@notabene.cse.unsw.edu.au>
@ 2002-04-07 12:56     ` Luca Berra
  2002-04-10  1:05       ` Neil Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Luca Berra @ 2002-04-07 12:56 UTC (permalink / raw)
  To: linux-raid

On Thu, Apr 04, 2002 at 02:55:43PM +1000, Neil Brown wrote:
> Yes... I sort of noticed that in passing...
> 
> I added:
>    %_sbindir /sbin
>    %_sysconfdir /etc
> 
> to my .rpcmacros and rebuild the rpms so they now put files in the
> "right" places.
> 
> Any  RPM gurus want to suggest what I *should* do?
i am no guru but an alterantive seems to be setting
%define _exec_prefix %{nil}
in the spec file

> Is it wrong to use %_sbindir and $_sysconfdir ???
i believe common practice is using /sbin literaly in the
spec file, but i prefer the above thing

%_sysconfdir should be set to /etc in the per platform rpm macro file
/usr/lib/rpm/%{_target_cpu}-%{_vendor}-%{_target_os}
ie: /usr/lib/rpm/i386-redhat-linux

L.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ANNOUNCE - mdadm 0.8 - candidate for 1.0
  2002-04-07 12:56     ` ANNOUNCE - mdadm 0.8 - candidate for 1.0 Luca Berra
@ 2002-04-10  1:05       ` Neil Brown
       [not found]         ` <20020410203945.99811.qmail@web10405.mail.yahoo.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Neil Brown @ 2002-04-10  1:05 UTC (permalink / raw)
  To: bluca; +Cc: linux-raid

On Sunday April 7, bluca@comedia.it wrote:
> On Thu, Apr 04, 2002 at 02:55:43PM +1000, Neil Brown wrote:
> > Yes... I sort of noticed that in passing...
> > 
> > I added:
> >    %_sbindir /sbin
> >    %_sysconfdir /etc
> > 
> > to my .rpcmacros and rebuild the rpms so they now put files in the
> > "right" places.
> > 
> > Any  RPM gurus want to suggest what I *should* do?
> i am no guru but an alterantive seems to be setting
> %define _exec_prefix %{nil}
> in the spec file

Thanks.  This looks like a reasonable suggestion.  And it seems to work.
> 
> > Is it wrong to use %_sbindir and $_sysconfdir ???
> i believe common practice is using /sbin literaly in the
> spec file, but i prefer the above thing
> 
> %_sysconfdir should be set to /etc in the per platform rpm macro file
> /usr/lib/rpm/%{_target_cpu}-%{_vendor}-%{_target_os}
> ie: /usr/lib/rpm/i386-redhat-linux

Hmmm. and debian's /usr/lib/rpm files set it to /usr/etc which doesn't
exist on debian :-(  I'll just assume that debian is broken and leave
_sysconfdir set to /etc in my .rpmmacros.

Thanks again,
NeilBrown

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ANNOUNCE - mdadm 0.8 - candidate for 1.0
       [not found]         ` <20020410203945.99811.qmail@web10405.mail.yahoo.com>
@ 2002-04-10 23:57           ` Neil Brown
  0 siblings, 0 replies; 3+ messages in thread
From: Neil Brown @ 2002-04-10 23:57 UTC (permalink / raw)
  To: BOIK MOON; +Cc: bluca, linux-raid

On Wednesday April 10, mooasun@yahoo.com wrote:
> 
>  Neil,
>  
> I tried with "mdadm -C /dev/md0 --level raid1 --raid-disks 2 /dev/hda1 --fail /dev/hdc1"
> to make a MD device with a faulty device. However, It did not work what I expected.
> I do not want to include /dev/hdc1 yet because it has the system image, but it tried to
> include it.
> Any suggestion?

Yes. If you don't want /dev/hdc1 to be included, don't include it.
If you say:

# mdadm -C /dev/md0 --level raid1 --raid-disks 2 /dev/hda1

It will say:

mdadm: You haven't given enough devices (real or missing) to create this array

The word "missing" is meant to be a hint, but I don't think it is
documented (I've just made a TODO note to fix that - thanks).

The command:

# mdadm -C /dev/md0 --level raid1 --raid-disks 2 /dev/hda1 missing

will create your array with /dev/hda1 in the first slot, and no device
in the second slot.

NeilBrown

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-10 23:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <15531.46606.314167.19186@notabene.cse.unsw.edu.au>
     [not found] ` <Pine.GSO.4.21.0204032025070.9004-100000@gecko.roadtoad.net>
     [not found]   ` <15531.56527.518603.63636@notabene.cse.unsw.edu.au>
2002-04-07 12:56     ` ANNOUNCE - mdadm 0.8 - candidate for 1.0 Luca Berra
2002-04-10  1:05       ` Neil Brown
     [not found]         ` <20020410203945.99811.qmail@web10405.mail.yahoo.com>
2002-04-10 23:57           ` Neil Brown

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).