Re: Recovering a GEOM RAID0 array

2009-03-31 Thread hv


Am 30.03.2009 um 21:21 schrieb Juan Miscaro:


Hi gang,

I'm running a remote 6.2 system which recently got shut down
unexpectedly (tower was physically nudged and apparently lost power).
I am running a 2-disk striped array with the geom_stripe.ko module.

So my fstab line is

/dev/stripe/st0a/data   ufs rw,acls  
2   2


Thing is, the /dev/stripe directory no longer exists.

Make sure the the geom_stripe module is actually loaded. (with kldstat)

If it's not already loaded, do a kldload geom_stripe (which creates  
the /dev/stripe directory, if the metadata exist on the disk  
("automatic mode") and perform a normal fsck afterwards. (e.g fsck -y / 
dev/stripe/st0a)
If the metadata /(manual mode) are not stored on the disk, you need to  
issue exactly the same commands to recreate it as you originally did.

All this is nicely documented in the man page (man gstripe)

By adding the following line

geom_stripe_load="YES"

to /boot/loader.conf you make sure the stripe will be available after  
reboot (at least in "automatic mode").


Hope this helps

Regards
--
Henry Vogt  (Fon: ++49-7071-601-511, Fax: -826)
Campus Max-Planck-Institute, Spemannstr. 32-41, Tübingen, Germany



PGP.sig
Description: Signierter Teil der Nachricht


Re: More build problems: portmaster and portupgrade not properly working.

2008-09-11 Thread hv


Am 10.09.2008 um 05:46 schrieb Desmond Chapman:
...
install  -o root -g wheel -m 555 /usr/ports/ports-mgmt/portmaster/ 
work/portmaster.sh /usr/local/sbin/portmaster
install  -o root -g wheel -m 444 /usr/ports/ports-mgmt/portmaster/ 
files/portmaster.8 /usr/local/man/man8

===>   Compressing manual pages for portmaster-1.25
===>   Registering installation for portmaster-1.25
# portmaster
portmaster: Command not found.

...

How can I have it installed and it doesn't work?
Man pages are there, the binary doesn't seem to be.


Also make sure that  your PATH Variable contains  /usr/local/sbin.
Setting the PATH depends on your shell.
Tip: echo $PATH shows the current content of this variable.

Regards
--
Henry Vogt <[EMAIL PROTECTED]> (Fon: ++49-7071-601-511, Fax: -826)
Campus Max-Planck-Institute, Spemannstr. 32-41, Tübingen, Germany



PGP.sig
Description: This is a digitally signed message part


Re: Capturing tar output

2008-09-11 Thread hv


Am 11.09.2008 um 03:41 schrieb [EMAIL PROTECTED]:



redirect stderr with "2>" operator


Using the following command,
# /usr/local/gtar/bin/tar -cvf - /home/hallja 2 > /var/log/test.txt |
/usr/local/bin/gpg --encrypt "recipient" | dd of=/dev/nsa0 obs=128k

I receive an error meesage stating, "Ambiguous output redirect."


Are you using the csh/tcsh ?According to the manual: (man tcsh, below  
Input/Ouput)

---
   The  shell  cannot  presently  redirect  diagnostic output  
without also
   redirecting standard output, but `(command  >  output-file)   
>&  error-
   file'  is often an acceptable workaround.  Either output-file  
or error-

   file may be `/dev/tty' to send output to the terminal.
---

To make the above example work you could change the shell by typing
# sh
and then type the suggested command  above.
If you want to put your commands into file (a script)  put the magic  
line

#!/bin/sh
on top of it.

Regards
--
Henry Vogt <[EMAIL PROTECTED]> (Fon: ++49-7071-601-511, Fax: -826)
Campus Max-Planck-Institute, Spemannstr. 32-41, Tübingen, Germany



PGP.sig
Description: This is a digitally signed message part