Re: OpenBSD 4.4 - fdisk issue

2008-11-05 Thread Otto Moerbeek
On Tue, Nov 04, 2008 at 01:03:37PM -0500, William Boshuck wrote:

 On Tue, Nov 04, 2008 at 12:59:29PM -0500, William Boshuck wrote:
  On Tue, Nov 04, 2008 at 05:39:46PM +0100, Christophe Rioux wrote:
On Tue, Nov 04, 2008 at 04:31:57PM +0100, [EMAIL PROTECTED] wrote:
 I just try to install OpenBSD 4.4 on a serveur (HP DL120 
G5) to test the
 functionality of the raid (seens it works again .).
 
 I configure the first disk without any issue, and then try following
 commands:
 
 disklabel wd0  disklabel.wd1
 fdisk -i wd1
 disklabel -R -r wd1 disklabel.wd1
 newfs /dev/wd1a
 
 Error: 
 newfs: /dev/wd1a: block device

Second section of the newfs(8) manpage.

   Great ... This worked in 4.3 without any thing else;
  
  Likely not just as typed above.
 
 Sorry, this does seem ok in 4.3.  (An example in
 the FAQ uses a relative path, and that's what I've
 always done.)

It only seems ok in 4.3 *if you ignore the warning from newfs*.

I repeat: running newfs on a block device is not good. Use the raw device.
4.4 enforces that, but if you are running newfs on an older system,
this holds too.

Background: writing to a block device is not order-preserving: newfs
writes multiple times to the same block. So you can end up with a
filesystem that is inconsitent from the beginning. 

-Otto



Re: OpenBSD 4.4 - fdisk issue

2008-11-05 Thread Christophe Rioux
  Hi
  
  I just try to install OpenBSD 4.4 on a serveur (HP DL120 
 G5) to test the
  functionality of the raid (seens it works again .).
  
  I configure the first disk without any issue, and then try following
  commands:
  
  disklabel wd0  disklabel.wd1
  fdisk -i wd1
  disklabel -R -r wd1 disklabel.wd1
  newfs /dev/wd1a
  
  Error: 
  newfs: /dev/wd1a: block device
  
  Same message when I try a mount.
  
  Not a problem I continue and made a new installation on wd1 
 (with the CD)
  
  Then I build my raid0 configuration (by compiling the 
 kernel) and try to
  create the new disk:
  
  fdisk -i raid0
  disklabel -E -raid0
  newfs /dev/raid0a
  
  = same error by newfs and mount
  
  What do I wrong ?
  
  Regards
  

Thanks for all the answer. The answer should be

  disklabel wd0  disklabel.wd1
  fdisk -i wd1
  disklabel -R -r wd1 disklabel.wd1
  newfs /dev/rwd1a instead of newfs /dev/wd1a
  mount /dev/wd1a /mnt

And

  fdisk -i raid0
  disklabel -E -raid0
  newfs /dev/rraid0a instead of newfs /dev/raid0a
  mount /dev/raid0a /mnt



Re: OpenBSD 4.4 - fdisk issue

2008-11-05 Thread William Boshuck
On Wed, Nov 05, 2008 at 09:57:31AM +0100, Otto Moerbeek wrote:
 On Tue, Nov 04, 2008 at 01:03:37PM -0500, William Boshuck wrote:
  
  Sorry, this does seem ok in 4.3.  (An example in
  the FAQ uses a relative path, and that's what I've
  always done.)
 
 It only seems ok in 4.3 *if you ignore the warning from newfs*.
 
 I repeat: running newfs on a block device is not good. Use the raw device.
 4.4 enforces that, but if you are running newfs on an older system,
 this holds too.

Ok, thanks, and sorry if I seem to have suggested
otherwise.  The man page says that if I use a
relative path then newfs will do the right thing
(use the corresponding raw device), and that's
the form of the command in Section 14.3 of the
FAQ.  What I read in the FAQ (and in the EXAMPLES
sections of man pages) I am inclined to take as
recommended usage.  Is that the case here, too?
cheers, (and thanks for the background info)
-wb



Re: OpenBSD 4.4 - fdisk issue

2008-11-05 Thread Ted Unangst
On Wed, Nov 5, 2008 at 8:10 AM, William Boshuck [EMAIL PROTECTED] wrote:
 Ok, thanks, and sorry if I seem to have suggested
 otherwise.  The man page says that if I use a
 relative path then newfs will do the right thing
 (use the corresponding raw device), and that's
 the form of the command in Section 14.3 of the
 FAQ.  What I read in the FAQ (and in the EXAMPLES
 sections of man pages) I am inclined to take as
 recommended usage.  Is that the case here, too?

Yes, the FAQ is right.  You should do it that way.



OpenBSD 4.4 - fdisk issue

2008-11-04 Thread Christophe Rioux
Hi

I just try to install OpenBSD 4.4 on a serveur (HP DL120 G5) to test the
functionality of the raid (seens it works again .).

I configure the first disk without any issue, and then try following
commands:

disklabel wd0  disklabel.wd1
fdisk -i wd1
disklabel -R -r wd1 disklabel.wd1
newfs /dev/wd1a

Error: 
newfs: /dev/wd1a: block device

Same message when I try a mount.

Not a problem I continue and made a new installation on wd1 (with the CD)

Then I build my raid0 configuration (by compiling the kernel) and try to
create the new disk:

fdisk -i raid0
disklabel -E -raid0
newfs /dev/raid0a

= same error by newfs and mount

What do I wrong ?

Regards



Re: OpenBSD 4.4 - fdisk issue

2008-11-04 Thread Olivier Cherrier
On Tue, Nov 04, 2008 at 04:31:57PM +0100, [EMAIL PROTECTED] wrote:
 I just try to install OpenBSD 4.4 on a serveur (HP DL120 G5) to test the
 functionality of the raid (seens it works again .).
 
 I configure the first disk without any issue, and then try following
 commands:
 
 disklabel wd0  disklabel.wd1
 fdisk -i wd1
 disklabel -R -r wd1 disklabel.wd1
 newfs /dev/wd1a
 
 Error: 
 newfs: /dev/wd1a: block device

Second section of the newfs(8) manpage.


-- 
Olivier Cherrier
mailto:[EMAIL PROTECTED]



Re: OpenBSD 4.4 - fdisk issue

2008-11-04 Thread Christophe Rioux
 On Tue, Nov 04, 2008 at 04:31:57PM +0100, [EMAIL PROTECTED] wrote:
  I just try to install OpenBSD 4.4 on a serveur (HP DL120 
 G5) to test the
  functionality of the raid (seens it works again .).
  
  I configure the first disk without any issue, and then try following
  commands:
  
  disklabel wd0  disklabel.wd1
  fdisk -i wd1
  disklabel -R -r wd1 disklabel.wd1
  newfs /dev/wd1a
  
  Error: 
  newfs: /dev/wd1a: block device
 
 Second section of the newfs(8) manpage.
 
Great ... This worked in 4.3 without any thing else;

I didn't find anything in this section.

http://www.openbsd.org/cgi-bin/man.cgi?query=newfsapropos=0sektion=0manpa
th=OpenBSD+4.4arch=i386format=html

What should I search for ?



Re: OpenBSD 4.4 - fdisk issue

2008-11-04 Thread William Boshuck
On Tue, Nov 04, 2008 at 05:39:46PM +0100, Christophe Rioux wrote:
  On Tue, Nov 04, 2008 at 04:31:57PM +0100, [EMAIL PROTECTED] wrote:
   I just try to install OpenBSD 4.4 on a serveur (HP DL120 
  G5) to test the
   functionality of the raid (seens it works again .).
   
   I configure the first disk without any issue, and then try following
   commands:
   
   disklabel wd0  disklabel.wd1
   fdisk -i wd1
   disklabel -R -r wd1 disklabel.wd1
   newfs /dev/wd1a
   
   Error: 
   newfs: /dev/wd1a: block device
  
  Second section of the newfs(8) manpage.
  
 Great ... This worked in 4.3 without any thing else;

Likely not just as typed above.

 What should I search for ?

The second paragraph under DESCRIPTION in

http://www.openbsd.org/cgi-bin/man.cgi?query=newfs

seems pretty clear, and pretty clearly relevant.

cheers,
-wb



Re: OpenBSD 4.4 - fdisk issue

2008-11-04 Thread William Boshuck
On Tue, Nov 04, 2008 at 12:59:29PM -0500, William Boshuck wrote:
 On Tue, Nov 04, 2008 at 05:39:46PM +0100, Christophe Rioux wrote:
   On Tue, Nov 04, 2008 at 04:31:57PM +0100, [EMAIL PROTECTED] wrote:
I just try to install OpenBSD 4.4 on a serveur (HP DL120 
   G5) to test the
functionality of the raid (seens it works again .).

I configure the first disk without any issue, and then try following
commands:

disklabel wd0  disklabel.wd1
fdisk -i wd1
disklabel -R -r wd1 disklabel.wd1
newfs /dev/wd1a

Error: 
newfs: /dev/wd1a: block device
   
   Second section of the newfs(8) manpage.
   
  Great ... This worked in 4.3 without any thing else;
 
 Likely not just as typed above.

Sorry, this does seem ok in 4.3.  (An example in
the FAQ uses a relative path, and that's what I've
always done.)

cheers,
-wb



Re: OpenBSD 4.4 - fdisk issue

2008-11-04 Thread Otto Moerbeek
On Tue, Nov 04, 2008 at 05:39:46PM +0100, Christophe Rioux wrote:

  On Tue, Nov 04, 2008 at 04:31:57PM +0100, [EMAIL PROTECTED] wrote:
   I just try to install OpenBSD 4.4 on a serveur (HP DL120 
  G5) to test the
   functionality of the raid (seens it works again .).
   
   I configure the first disk without any issue, and then try following
   commands:
   
   disklabel wd0  disklabel.wd1
   fdisk -i wd1
   disklabel -R -r wd1 disklabel.wd1
   newfs /dev/wd1a
   
   Error: 
   newfs: /dev/wd1a: block device
  
  Second section of the newfs(8) manpage.
  
 Great ... This worked in 4.3 without any thing else;
 
 I didn't find anything in this section.
 
 http://www.openbsd.org/cgi-bin/man.cgi?query=newfsapropos=0sektion=0manpa
 th=OpenBSD+4.4arch=i386format=html
 
 What should I search for ?

Use the raw device (/dev/rwd1a).

Running newfs on a block device (/dev/wd1a) can lead to subtle and
hard to diagnose problems. That's why it has been disabled in 4.4. 

-Otto



Re: OpenBSD 4.4 - fdisk issue

2008-11-04 Thread Kenneth R Westerback
On Tue, Nov 04, 2008 at 04:31:57PM +0100, Christophe Rioux wrote:
 Hi
 
 I just try to install OpenBSD 4.4 on a serveur (HP DL120 G5) to test the
 functionality of the raid (seens it works again .).
 
 I configure the first disk without any issue, and then try following
 commands:
 
 disklabel wd0  disklabel.wd1
 fdisk -i wd1
 disklabel -R -r wd1 disklabel.wd1
 newfs /dev/wd1a
 
 Error: 
 newfs: /dev/wd1a: block device
 
 Same message when I try a mount.
 
 Not a problem I continue and made a new installation on wd1 (with the CD)
 
 Then I build my raid0 configuration (by compiling the kernel) and try to
 create the new disk:
 
 fdisk -i raid0
 disklabel -E -raid0
 newfs /dev/raid0a
 
 = same error by newfs and mount
 
 What do I wrong ?
 
 Regards
 

It shouldn't affect your problem, but '-r' doesn't do anything anymore.

 Ken