Re: Delete /var/db/pkg.bak?

2013-01-29 Thread Matthew Seaman
On 30/01/2013 04:47, Walter Hurry wrote:
> Admittedly disk space is cheap, but old habits die hard and I just don't 
> like keeping stuff I no longer need.
> 
> I converted to pkgng just under a couple of months ago, and have had no 
> serious problems (even the minor issues have been promptly resolved with 
> the kind and able assistance of Matthew Seaman).
> 
> I have no intention of trying to 'go back', so my question is this: Is it 
> safe now to clear out the pkg.bak file which was created by pkg2ng at the 
> time of conversion? I'm almost sure it is, but just want to make certain.

Um... it's probably OK, but you're really the only person in a position
to know, given it's your system.

Given that you have been actively maintaining your systems using pkgng
for several months, the pkg.bak file will not contain any record of the
changes made in that time.  That makes it increasingly irrelevant.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Delete /var/db/pkg.bak?

2013-01-29 Thread Walter Hurry
Admittedly disk space is cheap, but old habits die hard and I just don't 
like keeping stuff I no longer need.

I converted to pkgng just under a couple of months ago, and have had no 
serious problems (even the minor issues have been promptly resolved with 
the kind and able assistance of Matthew Seaman).

I have no intention of trying to 'go back', so my question is this: Is it 
safe now to clear out the pkg.bak file which was created by pkg2ng at the 
time of conversion? I'm almost sure it is, but just want to make certain.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Booting Problem

2013-01-29 Thread doug


On Tue, 29 Jan 2013, Doug Hardie wrote:


On 29 January 2013, at 07:18, Mario Lobo wrote:


On Mon, 28 Jan 2013 15:16:14 -0800
Doug Hardie  wrote:


I have a relatively old machine that I am trying to boot 9.1 on.  The
bios will not boot from USB stick.  I am using an external CD drive.
It starts the boot process fine and gets to the Bootstrap loader
message with revision 1.1.  Then it puts out the machine, date, time
the CD was created and starts the spinner.  It spins around about 2
times and stops.  The system continues to read from the drive for
another couple minutes.  Then everything stops.  Nothing more happens.

The CD is good.  I can boot it just fine using the same external
drive on another machine.  While I could remove the drive and
temporarily mount in in the working machine and build it there, I
would like to find a way to successfully boot from CD.  This will
become a remote machine and taking it apart later is not a viable
option.


What is the system you are using? What external devices does it have built-in 
support for? In the absence of any data - how about trying an external hard 
drive?


Why not remove the hard drive, use another system to put FreeBSD on the drive, 
and put it back. From that point on you should be able to use the network to 
upgrade.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


No Attachments Please

2013-01-29 Thread Lyris ListManager

You sent an email to the Exchange list
with an attachment. We have disabled this
option as recently a virus was attached.
Please resend your posting without it?

Thanks! 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Booting Problem

2013-01-29 Thread Doug Hardie

On 29 January 2013, at 07:18, Mario Lobo wrote:

> On Mon, 28 Jan 2013 15:16:14 -0800
> Doug Hardie  wrote:
> 
>> I have a relatively old machine that I am trying to boot 9.1 on.  The
>> bios will not boot from USB stick.  I am using an external CD drive.
>> It starts the boot process fine and gets to the Bootstrap loader
>> message with revision 1.1.  Then it puts out the machine, date, time
>> the CD was created and starts the spinner.  It spins around about 2
>> times and stops.  The system continues to read from the drive for
>> another couple minutes.  Then everything stops.  Nothing more happens.
>> 
>> The CD is good.  I can boot it just fine using the same external
>> drive on another machine.  While I could remove the drive and
>> temporarily mount in in the working machine and build it there, I
>> would like to find a way to successfully boot from CD.  This will
>> become a remote machine and taking it apart later is not a viable
>> option. ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions To
>> unsubscribe, send any mail to
>> "freebsd-questions-unsubscr...@freebsd.org"
> 
> Can you boot a different OS (Win, Ububtu, gparted, etc ...) from the
> same drive on the same machine?

Not so far.  The drive works fine on other systems.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: /etc/rc.d/jail script

2013-01-29 Thread Fbsd8

Fbsd8 wrote:

I have noticed that the /etc/rc.d/jail script
will not start a jail that has the same ip address
as a jail that is already running.

But if I define 2 jails the manual way in rc.conf that
have the same ip address they will start.

So is this a bug in the "jail" script or is there some
reason for this restriction?




On deeper inspection of the /etc/rc.d/jail script,
it seems the above only occurs if one or more jails are
assigned the same ip address and one or more of the jails
bound the shared ip address to a NIC device name. IE the
auto creation and deletion of ip address aliases.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Detail in section 25.2.3.3 of the Handbook

2013-01-29 Thread Alejandro Imass
On Tue, Jan 29, 2013 at 6:25 PM, Warren Block  wrote:
> On Tue, 29 Jan 2013, Alejandro Imass wrote:
>
>> Maybe it's intentional but in section
>>
>> 25.2.3.3 Rebuilding Ports After a Major Version Upgrade
>>
>> The step that says:
>>
>> portupgrade -f ruby18-bdb
>>
>> Shouldn't it be ruby-bdb without the 18?
>>
>> Is there a reason why it has to be ruby18-bdb
>
>
> That's a good point.  It should probably be the origin, databases/ruby-bdb.
> I don't have a way to test that right now.
>
> But really, it ought to be rewritten to use ports-mgmt/portmaster to remove
> the dependency issue entirely.  In fact, that could just refer to the
> upgrade process at the end of the portmaster(8) man page.

I had *a lot* of issues with this procedure using portupgrade. I
assumed it was because the system was very old and I was upgrading
from 7.0 to 9.1, although I tried in every step to upgrade the ports
and failed (i.e. 7.1, 8.1, 8.2, 9.1).

I wound up pkg_delete -a -f . I was going to re-install everything in
Jails anyway so I was happy to delete all ports from the base sys.

I can say however that the upgrade from 7.0-RELEASE to 9.1-RELEASE
went very smoothly with freebsd-update, but as I mentioned above, I
did it in steps.

Thanks for your prompt reply!

-- 
Alejandro Imass
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Detail in section 25.2.3.3 of the Handbook

2013-01-29 Thread Warren Block

On Tue, 29 Jan 2013, Alejandro Imass wrote:


Maybe it's intentional but in section

25.2.3.3 Rebuilding Ports After a Major Version Upgrade

The step that says:

portupgrade -f ruby18-bdb

Shouldn't it be ruby-bdb without the 18?

Is there a reason why it has to be ruby18-bdb


That's a good point.  It should probably be the origin, 
databases/ruby-bdb.  I don't have a way to test that right now.


But really, it ought to be rewritten to use ports-mgmt/portmaster to 
remove the dependency issue entirely.  In fact, that could just refer to 
the upgrade process at the end of the portmaster(8) man page.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Viewing processes hierarchically

2013-01-29 Thread Gezeala M . Bacuño II
On Tue, Jan 29, 2013 at 2:31 PM,  wrote:

> pstree? (in sysutils from ports)
> --
> Devin
>
> > -Original Message-
> > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
> > questi...@freebsd.org] On Behalf Of Patrick
> > Sent: Tuesday, January 29, 2013 1:53 PM
> > To: FreeBSD Questions Mailing List
> > Subject: Viewing processes hierarchically
> >
> > Is there any way in FreeBSD to view all running processes hierarchically,
> > like Activity Monitor in Mac OS X can do?
> >
> > e.g.
> >
> http://f.cl.ly/items/37310J17273X3F1E1l0G/Image%202013.01.29%2013:50:36%20
> .
> > png
> >
> > I believe I have a masked process spawned from an Apache process, but I'm
> > having a hard time tracking it down.
> >
> > Thanks,
> >
> > Patrick
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>
> _
> The information contained in this message is proprietary and/or
> confidential. If you are not the intended recipient, please: (i) delete the
> message and all copies; (ii) do not disclose, distribute or use the message
> in any manner; and (iii) notify the sender immediately. In addition, please
> be aware that any message addressed to our domain is subject to archiving
> and review by persons other than the intended recipient. Thank you.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>


ps auxwwd

man ps:

 -d  Arrange processes into descendancy order and prefix each
> command
>  with indentation text showing sibling and parent/child
> relation‐
>  ships.  If either of the -m and -r options are also used, they
>  control how sibling processes are sorted relative to each
> other.
>  Note that this option has no effect if the “command” column is
>  not the last column displayed.
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: Viewing processes hierarchically

2013-01-29 Thread Joshua Isom

On 1/29/2013 3:52 PM, Patrick wrote:

Is there any way in FreeBSD to view all running processes hierarchically,
like Activity Monitor in Mac OS X can do?

e.g.
http://f.cl.ly/items/37310J17273X3F1E1l0G/Image%202013.01.29%2013:50:36%20.png

I believe I have a masked process spawned from an Apache process, but I'm
having a hard time tracking it down.

Thanks,

Patrick


What about `ps dax`?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Detail in section 25.2.3.3 of the Handbook

2013-01-29 Thread Alejandro Imass
Maybe it's intentional but in section

25.2.3.3 Rebuilding Ports After a Major Version Upgrade

The step that says:

portupgrade -f ruby18-bdb

Shouldn't it be ruby-bdb without the 18?

Is there a reason why it has to be ruby18-bdb

Thanks,

-- 
Alejandro Imass
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: Viewing processes hierarchically

2013-01-29 Thread dteske
pstree? (in sysutils from ports)
-- 
Devin

> -Original Message-
> From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
> questi...@freebsd.org] On Behalf Of Patrick
> Sent: Tuesday, January 29, 2013 1:53 PM
> To: FreeBSD Questions Mailing List
> Subject: Viewing processes hierarchically
> 
> Is there any way in FreeBSD to view all running processes hierarchically,
> like Activity Monitor in Mac OS X can do?
> 
> e.g.
> http://f.cl.ly/items/37310J17273X3F1E1l0G/Image%202013.01.29%2013:50:36%20.
> png
> 
> I believe I have a masked process spawned from an Apache process, but I'm
> having a hard time tracking it down.
> 
> Thanks,
> 
> Patrick
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Viewing processes hierarchically

2013-01-29 Thread Polytropon
On Tue, 29 Jan 2013 13:52:47 -0800, Patrick wrote:
> Is there any way in FreeBSD to view all running processes hierarchically,
> like Activity Monitor in Mac OS X can do?
> 
> e.g.
> http://f.cl.ly/items/37310J17273X3F1E1l0G/Image%202013.01.29%2013:50:36%20.png
> 
> I believe I have a masked process spawned from an Apache process, but I'm
> having a hard time tracking it down.

You can do this with htop, then press PF5. Or use pstree.
Both are in ports.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Software raid VS hardware raid

2013-01-29 Thread Warren Block

On Tue, 29 Jan 2013, Artem Kuchin wrote:



29.01.2013 18:57, Warren Block:

On Tue, 29 Jan 2013, Artem Kuchin wrote:

The Handbook chapter on gmirror talks about the problems with GPT and GEOM 
metadata.  In short: right now, they conflict.  It's possible to mirror GPT 
partitions, but be aware that if you mirror more than one partition on a 
drive, a rebuild after replacing a drive could thrash the heads as mirrors 
are rebuilt simultaneously.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html 





So,
gmirror+GPT=conflict on last sector
GPT+gmirror = hardrive head kill

nice...

So, for no more than 2TB disks the best way to go is GMIRROR of the drive 
+PARTITION on top of it?


GPT partitions should work, just limit it to one mirrored partition per 
drive.


Or maybe there is a way to instruct gmirror do rebuild only what i say 
(manual rebuild) ?


'gmirror configure -n' ?  Have not tried it.  The trick would be to do 
that before multiple mirrors start rebuilding, which they will as soon 
as geom_mirror.ko is loaded.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Ralf Mardorf
I don't use space in filenames, I just wanted to ensure, that file names  
with spaces will be handled partly correctly.
At the moment I'm not working intensively. Every once in a while I take a  
look at a directory and compare it with the backups. If there's something  
wrong, I manually run chown. I copy each step I'm doing to a file.  
Overcautious, without haste and without a script ;), I fix it step by step.


Regards,
Ralf
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Polytropon
On Tue, 29 Jan 2013 12:23:09 +0100, Ralf Mardorf wrote:
> On Tue, 2013-01-29 at 10:08 +0100, Matthias Apitz wrote:
> > This is a mayor damage and can only be repaired by a new installation.
> 
> Perhaps true, but if such a simple mistake can't be fixed, [...]

Excuse me, it's not a _simple_ mistake. It may have initially
been even a typo, but anything executed with root privileges
is not simple; root has the power to do anything, even to
completely destroy the system, and that can also be as simple
as calling rm or dd with "carefully carelessly crafted options",
and there is no simple fix for this.



> [...] what happens
> when somebody makes a big mistake?

The size of the mistake doesn't even matter. :-)



> Perhaps more people stay with Linux
> than other *NIX, regarding to the policy, that issues should be fixed
> instead of always starting from the beginning. ;)?

The fix to your issue is, in pseudocode:

for part in ( OS , ports ) do:
determine owner rocketmouse:* for all files
compare with list with correct owner
for each deviating file do:
if owner != correct owner then:
chown file to correct user
fi
od
od

Of course OS and ports have to be treated seperately.

As you have mentioned to own a backup where the permissions
(owners) are correct, obtaining the required reference data
from that backup would be the easiest part.

The alternative: reinstall world, reinstall ports. To avoid
this task, you need to activate your admin skills. :-)



> Of course, if I simply would restore from a dump, it will be less time
> consuming and it wouldn't annoy you, but I would have the bad feeling,
> that if ever needed, thinks can't be fixed, I always would have to
> restore from backups. And what happens, if for what reason ever a backup
> shouldn't be available?

In that case, you would need other references to get the correct
file owners. Files are usually installed to the system by the
"install" command, and it is employed in the Makefiles for the
OS and also for ports. As you correctly recognized, not simply
all files belong to root, so everything "non-standard" could
be derived from such "control files".

Of course, the more files you have to treat (see wc -l of your
result list), the harder the task can become, and maybe installing
the port again is faster than finding out where permissions are
set for the install program call. If you only have 10 files or
so, do it manually, but if there are 100 and more files, coming
from several different ports, reinstalling them sounds easier,
and it's not a big deal to do that with portmaster.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Polytropon
On Tue, 29 Jan 2013 03:54:55 +0100, Ralf Mardorf wrote:
> On Tue, 29 Jan 2013 03:41:34 +0100, Joshua Isom  wrote:
> > On 1/28/2013 7:56 PM, Ralf Mardorf wrote:
> >> Still not perfect, I guess I need something similar to ls -RAl for some
> >> directories :S and I didn't test what awk will do with names including a
> >> space.
> >
> > Try `find /dir -ls`.  You can pipe it into sed like this `find /dir -ls|  
> > sed -e 's%/dir%%g'` and then get something easily comparable.
> 
> Cool, it does display the path, but there's still the other issue:
> 
> $ touch test\ test
> $ find * -ls| sed -e 's%/dir%%g'| awk '{print $5" "$11}'
> rocketmouse test
> 
> Perhaps awk isn't that important, but it e.g. will filter different file  
> sizes, for e.g. configurations I edited in the meantime.

A thing regarding awk: For extended formatting, use the
printf() command which works the same as in sh and C, os
if you need, you can do things like

printf "%s '%s'", $1, $2;

Also note that you can have a custom delimiter for parsing
the input, e. g. -F ":" (if you would generate input lists
in :-separated CSV format).

Additionally, it seems you're running into the fun of spaces
in file names. Even though you can put them there, it doesn't
imply it's good to do it. Spaces are separators (for commands
and options), and everytime they're _not_ (e. g. when they
appear in file names), you need to care for this fact, by
escaping or quoting them.

Maybe those articles by David A. Wheeler are interesting
to you to learn about this annoyance for people writing
short shell scripts to automate tasks:

Filenames and Pathnames in Shell: How to do it correctly

http://www.dwheeler.com/essays/filenames-in-shell.html

Fixing Unix/Linux/POSIX Filenames:
Control Characters (such as Newline), Leading Dashes, and Other Problems

http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Software raid VS hardware raid

2013-01-29 Thread Mark Felder
On Tue, 29 Jan 2013 08:57:31 -0600, Warren Block   
wrote:


As far a gmirror is concerned, yes, drives can be removed and new drives  
inserted while the mirror is running.  Hot swap is more of an issue with  
the hardware.  I have not tried it with SATA drives, although I think it  
should work.
 The Handbook chapter on gmirror talks about the problems with GPT and  
GEOM metadata.  In short: right now, they conflict.  It's possible to  
mirror GPT partitions, but be aware that if you mirror more than one  
partition on a drive, a rebuild after replacing a drive could thrash the  
heads as mirrors are rebuilt simultaneously.
  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html


Why isn't gmirror more intelligent? I hate to use Linux as an example, but  
mdadm won't simultaneously rebuild multiple RAID sets if they use the same  
physical providers to prevent this. Could this be added as a feature? Even  
a sysctl toggle?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Software raid VS hardware raid

2013-01-29 Thread Artem Kuchin


29.01.2013 18:57, Warren Block:

On Tue, 29 Jan 2013, Artem Kuchin wrote:

The Handbook chapter on gmirror talks about the problems with GPT and 
GEOM metadata.  In short: right now, they conflict.  It's possible to 
mirror GPT partitions, but be aware that if you mirror more than one 
partition on a drive, a rebuild after replacing a drive could thrash 
the heads as mirrors are rebuilt simultaneously.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html 






So,
gmirror+GPT=conflict on last sector
GPT+gmirror = hardrive head kill

nice...

So, for no more than 2TB disks the best way to go is GMIRROR of the 
drive +PARTITION on top of it?
Or maybe there is a way to instruct gmirror do rebuild only what i say 
(manual rebuild) ?


Artem




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ZFS - whole disk or partition or BSD slice?

2013-01-29 Thread Paul Kraus
On Jan 29, 2013, at 6:59 AM, Volodymyr Kostyrko wrote:
>> 
>> Is GPT compatible with Solaris, can Solaris access a GPT disk?
> 
> Yes. I'm not sure if it can boot off GPT disk but on Solaris zpool 
> automatically creates boundary GPT partition to protect ZFS vdev.

Under the Solaris-based OSes I have used*, ZFS creates an EFI-like disk 
label, NOT a GPT label. FreeBSD (9.0) will read and use the EFI-like disk label 
that ZFS creates (or perhaps it is the ZFS code that is parsing the disk 
label). So if you want to move a zpool between FreeBSD and a Solaris-derived 
OS, then the safe bet is to give ZFS the entire disk and let it create the disk 
label.

*Solaris-based OSes that I have used:
Solaris 10
OpenSolaris 
NCP (Nexenta Core Platform)

--
Paul Kraus
Deputy Technical Director, LoneStarCon 3
Sound Coordinator, Schenectady Light Opera Company

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ZFS - whole disk or partition or BSD slice?

2013-01-29 Thread Paul Kraus
On Jan 28, 2013, at 9:37 PM, Thomas Mueller wrote:

>> Presumably the disks are currently FreeBSD-specific.  If I used raw
>> disks instead of slices, could I read them from a Solaris system too?
> 
> ^ I'm mostly sure you would be able to read disks from Solaris/x86.
> ^ However Solaris/Sparc uses another labeling scheme. If you want to be
> ^ fully compatible with other system GPT is a better choice.
> 
> Is GPT compatible with Solaris, can Solaris access a GPT disk?

AFAIK, none of the Solaris derived OSes can read a GPT disk label.

--
Paul Kraus
Deputy Technical Director, LoneStarCon 3
Sound Coordinator, Schenectady Light Opera Company

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Booting Problem

2013-01-29 Thread Mario Lobo
On Mon, 28 Jan 2013 15:16:14 -0800
Doug Hardie  wrote:

> I have a relatively old machine that I am trying to boot 9.1 on.  The
> bios will not boot from USB stick.  I am using an external CD drive.
> It starts the boot process fine and gets to the Bootstrap loader
> message with revision 1.1.  Then it puts out the machine, date, time
> the CD was created and starts the spinner.  It spins around about 2
> times and stops.  The system continues to read from the drive for
> another couple minutes.  Then everything stops.  Nothing more happens.
> 
> The CD is good.  I can boot it just fine using the same external
> drive on another machine.  While I could remove the drive and
> temporarily mount in in the working machine and build it there, I
> would like to find a way to successfully boot from CD.  This will
> become a remote machine and taking it apart later is not a viable
> option. ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions To
> unsubscribe, send any mail to
> "freebsd-questions-unsubscr...@freebsd.org"

Can you boot a different OS (Win, Ububtu, gparted, etc ...) from the
same drive on the same machine?

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Software raid VS hardware raid

2013-01-29 Thread Warren Block

On Tue, 29 Jan 2013, Artem Kuchin wrote:

My other concern is what happens when one drive goes down if we use gmirror? 
Is it completelly transparent

and bad drive can be hot swapped while server is running and rebuild started?
I am thinking now about gpt+gmirror (including boot and swap)


As far a gmirror is concerned, yes, drives can be removed and new drives 
inserted while the mirror is running.  Hot swap is more of an issue with 
the hardware.  I have not tried it with SATA drives, although I think it 
should work.


The Handbook chapter on gmirror talks about the problems with GPT and 
GEOM metadata.  In short: right now, they conflict.  It's possible to 
mirror GPT partitions, but be aware that if you mirror more than one 
partition on a drive, a rebuild after replacing a drive could thrash the 
heads as mirrors are rebuilt simultaneously.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Ralf Mardorf

I'm surprised, there's no /bin/sh for the backup:
# ls -ld /bin/sh
-r-xr-xr-x  1 rocketmouse  wheel  142952 Dec 23 18:38 /bin/sh
# ls -ld /usr/TMP4DIFF/bin/sh
ls: /usr/TMP4DIFF/bin/sh: No such file or directory


This is an error in reasoning :D. I compared the original /bin, with a  
restore from /usr, so it seems to be /bin, but it is /usr/bin ;).


I have to keep the system as it is for at least a day, need to do  
something different and than I can continue, when I'm refreshed.


root@freebsd:/usr/TMP4DIFF/ROOT # ls -l bin/sh
-r-xr-xr-x  1 root  wheel  142952 Dec 23 18:38 bin/sh

:D

There definitively is need for a real rest, to avoid mistakes.

--
Sent from my PC while wearing my Relox watch and Iccug handback.
If you pay me, product placement for your lemon could be placed here too,  
just mailto:/dev/null.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Ralf Mardorf

On Tue, 29 Jan 2013 14:58:18 +0100,  wrote:

mtree


I was confused, since the existing files only provide directories. Ok, I  
guess I understand, I can let mtree generate new files using the backup. I  
anyway need to take care about files that are missing by the backup.


Thank you.

--
Sent from my PC while wearing my Relox watch and Iccug handback.
If you pay me, product placement for your lemon could be placed here too,  
just mailto:/dev/null.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Ralf Mardorf
I suspect it's less effort to use Thunar and instead of scrolling, as I  
did before (when I missed some wrong owners), to switch sorting by owner  
between ascending and descending, to ensure not to miss a bad owner again.


I'm surprised, there's no /bin/sh for the backup:

/bin

# find /usr/TMP4DIFF/bin -ls | sed -e 's%/dir%%g' | awk '{print $5" "$11"  
"$12" "$13}' > bin.TMP.txt
# find /bin -ls | sed -e 's%/dir%%g' | awk '{print $5" "$11" "$12" "$13}'  

bin.BSD.txt

# diff bin.TMP.txt bin.BSD.txt > bin.DIF.txt
# grep rocketmouse bin.DIF.txt

rocketmouse /bin/sh

# ls -ld /bin/sh
-r-xr-xr-x  1 rocketmouse  wheel  142952 Dec 23 18:38 /bin/sh
# ls -ld /usr/TMP4DIFF/bin/sh
ls: /usr/TMP4DIFF/bin/sh: No such file or directory

/lib

[snip ... no differences]

I anyway will unpack /usr too and take a look at the directories from the  
backup. I won't bother you with each detail, but report a list of  
differences, if there should be something very strange.


Regards,
Ralf

--
Sent from my PC while wearing my Relox watch and Iccug handback.
If you pay me, product placement for your lemon could be placed here too,  
just mailto:/dev/nul.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Michael Powell
Ralf Mardorf wrote:

> On Tue, 29 Jan 2013 12:44:55 +0100, Erich Dollansky
>  wrote:
>> It cannot get worse. His experience will show also others how robust
>> FreeBSD is in case of failures.
> 
> Indeed. Linux users ask me why I play with FreeBSD. I already could make a
> list with drawbacks and advantages of both OS. Some of my guesses might be
> wrong, since I'm a FreeBSD novice, so this list wouldn't be absolutely
> correct.

>From what I've followed since you've come on the list my impression is you 
are just experiencing a learning curve with a new OS. There may be many 
similarities and much carry over from other *Nixes but you still have to 
work it to learn it. In the past when I've headed into something completely 
new I mess a lot of things up (foot shooting) for a while. Once it gets past 
a certain point I give up and reinstall. Then I refer to all the notes I 
took whilst messing things up so as to not make the same mistakes again. 
Usually it was a new list and the cycle repeats. Eventually things 'click', 
you stop making mistakes as well as understand the OS enough now to fix 
things should they need.

After this sysadmin break-in period clears things get much better very fast. 
You are well on your way. I've been using FreeBSD for 12 years now, but I 
remember my initial learning curve (it was quite ugly there for a while). 
But now things are easy, the machines are very stable and reliable. If I 
don't break them and no hardware fails they just sit there and do their 
thing. Stick with it for a while and I bet you find your way.

[snip]

-Mike


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Software raid VS hardware raid

2013-01-29 Thread Michael Powell
Artem Kuchin wrote:

[snip]
> The server is going to be a web server with many sites and with mysql
> running on it. Nothing really really
> heavy. Currently with run all this on our own server with 8 cores and
> 16GB ram and 3ware raid1
> and cpu load is about 5% :) Everything is quick and responsive. I hope
> to see the same on a software raid.

The controller would be a slight concern. But for what you've described 
doing I doubt it will be a big deal. The 3Ware may have a faster processor 
on it than say a generic onboard built-in. But since all we're talking here 
is a RAID 1 mirror my guess is it may not be a big enough difference to see. 
Writes will be just as if you are writing to 1 drive, reads will be faster. 
Maybe that 5% cpu load turns into 6% or 7%.
 
> I really don't want to deploy ZFS on a new server where all these site
> need to migrate because i am kind of
> "don't fix it if it is not broken" kind of guy.
> UFS+journaling+softupdates served us well for years and snapshots
> are available on ufs too.

I understand; I've only played around with ZFS some on Solaris. I may move 
in that direction some day, but for now
 
> My other concern is what happens when one drive goes down if we use
> gmirror? Is it completelly transparent
> and bad drive can be hot swapped while server is running and rebuild
> started?
> I am thinking now about gpt+gmirror (including boot and swap)

I've never actually hot-swapped one but I can't see any reason why not. You 
can't use the gmirror remove directive when a drive has failed, but you do a 
gmirror forget  , swap it, then just do gmirror insert  to 
insert the replaced drive into the mirror. When everything is working as it 
should gmirror is mostly 'automatic', e.g. after the insert the rebuild just 
starts. Main thing I appreciated about this is the server stayed up and 
online after one drive died. 

My two servers at home are my testbeds to test out things first before doing 
stuff to the ones at work. I just installed both to 9.1. The difference now is 
I've used GPT (gpart) and this is new to me. Previously everything was 
always fdisk and disklabel. Both these machines are setup on one drive at 
this point and I haven't yet gotten into the mirroring yet.  

With the old fdisk/disklabel it was simple to just mirror the entire drive 
itself (slice). The other approach is to mirror partitions. I think I may 
need to do this as I think this is the way you have to proceed in order to 
avoid having gpt and gmirror both trying to claim the last sector on the 
drive (metadata storage). 

-Mike


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Erich Dollansky
Hi,

On Tue, 29 Jan 2013 12:57:30 +0100
"Ralf Mardorf"  wrote:

> On Tue, 29 Jan 2013 12:44:55 +0100, Erich Dollansky  
>  wrote:
> > It cannot get worse. His experience will show also others how robust
> > FreeBSD is in case of failures.
> 
> Indeed. Linux users ask me why I play with FreeBSD. I already could
> make a list with drawbacks and advantages of both OS. Some of my
> guesses might be wrong, since I'm a FreeBSD novice, so this list
> wouldn't be absolutely correct.
> 
> Regarding to the annoyance, I won't switch the thread regarding to
> this issue anymore. I'll continue with this thread "Re: How to fix a
> broken owner for files from world & build from ports?" if this should
> be ok for the list, if not I can be quiet, no hard feelings. The
> thread could easily be filtered by most MUAs.
> 
just continue.

erich
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ZFS - whole disk or partition or BSD slice?

2013-01-29 Thread Volodymyr Kostyrko

29.01.2013 04:37, Thomas Mueller:

28.01.2013 01:57, james:

I have a 9.1 system with some SATA disks in RAIDZ, upgraded from 9.0.

The disks are all the same type, and I formatted them for FreeBSD and
put ZFS in a slice covering most of them.

I have seen suggestions for OpenIndiana etc that it is better to let ZFS
have the whole raw disk and that this can control the way it manages the
disk writeback mode.


Responses from Vladimir Kostyrko ^ :

^ My home computer is set up in the dedicated mode. No grave difference.
^ Not even a scratch.


Does this apply to FreeBSD and ZFS too?


^ No.


Presumably the disks are currently FreeBSD-specific.  If I used raw
disks instead of slices, could I read them from a Solaris system too?


^ I'm mostly sure you would be able to read disks from Solaris/x86.
^ However Solaris/Sparc uses another labeling scheme. If you want to be
^ fully compatible with other system GPT is a better choice.

Is GPT compatible with Solaris, can Solaris access a GPT disk?


Yes. I'm not sure if it can boot off GPT disk but on Solaris zpool 
automatically creates boundary GPT partition to protect ZFS vdev.




I tried OpenIndiana installable live USB stick, and my Western Digital
Caviar Green 3 TB hard disk, partitioned with GPT, was not recognized or
readable; same was true for Western Digital My Book Essential 3 TB USB 3.0
hard disk, also partitioned GPT.  This was on amd64 system.


Except OI. https://www.illumos.org/issues/208

--
Sphinx of black quartz, judge my vow.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Ralf Mardorf
On Tue, 29 Jan 2013 12:44:55 +0100, Erich Dollansky  
 wrote:

It cannot get worse. His experience will show also others how robust
FreeBSD is in case of failures.


Indeed. Linux users ask me why I play with FreeBSD. I already could make a  
list with drawbacks and advantages of both OS. Some of my guesses might be  
wrong, since I'm a FreeBSD novice, so this list wouldn't be absolutely  
correct.


Regarding to the annoyance, I won't switch the thread regarding to this  
issue anymore. I'll continue with this thread "Re: How to fix a broken  
owner for files from world & build from ports?" if this should be ok for  
the list, if not I can be quiet, no hard feelings. The thread could easily  
be filtered by most MUAs.


Regards,
Ralf
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Erich Dollansky
Hi,

On Tue, 29 Jan 2013 10:08:20 +0100
Matthias Apitz  wrote:

> El día Monday, January 28, 2013 a las 10:28:06PM -1000, parv escribió:
> 
> 
> In general, I find all this thread (wrong file owner) a bit boring.

I find it very interesting.

> This is a mayor damage and can only be repaired by a new
> installation. A lot of files and directories in the systems

This is what I am doubting. Shouldn't an installation of the world
solve this problem? Or are the current owners of a directory ignored
when the world is reinstalled?

> filesystem, in / /var /usr, have dedicated owner to allow certain
> processes which does not run as 'root' to do their correct work
> there, for exmample 'mail'; i.e. you can not do just a complete
> "chown -R root  " and expect that the system still works;

It cannot get worse. His experience will show also others how robust
FreeBSD is in case of failures.

Erich
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Matthias Apitz
El día Tuesday, January 29, 2013 a las 12:23:09PM +0100, Ralf Mardorf escribió:

> On Tue, 2013-01-29 at 10:08 +0100, Matthias Apitz wrote:
> > This is a mayor damage and can only be repaired by a new installation.
> 
> Perhaps true, but if such a simple mistake can't be fixed, what happens
> when somebody makes a big mistake? Perhaps more people stay with Linux
> than other *NIX, regarding to the policy, that issues should be fixed
> instead of always starting from the beginning. ;)?
> 
> Of course, if I simply would restore from a dump, it will be less time
> consuming and it wouldn't annoy you, but I would have the bad feeling,
> that if ever needed, thinks can't be fixed, I always would have to
> restore from backups. And what happens, if for what reason ever a backup
> shouldn't be available?

A damage like this can only be done with root privs and if you are root
you should be careful and think twice before; this is true for any UNIX
and Linux type system.

matthias
-- 
Sent from my FreeBSD netbook

Matthias Apitz   |  - No system with backdoors like Apple/Android
E-mail: g...@unixarea.de |  - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |  - No proprietary attachments
phone: +49-170-4527211   |  - Respect for open standards
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Ralf Mardorf
On Tue, 2013-01-29 at 10:08 +0100, Matthias Apitz wrote:
> This is a mayor damage and can only be repaired by a new installation.

Perhaps true, but if such a simple mistake can't be fixed, what happens
when somebody makes a big mistake? Perhaps more people stay with Linux
than other *NIX, regarding to the policy, that issues should be fixed
instead of always starting from the beginning. ;)?

Of course, if I simply would restore from a dump, it will be less time
consuming and it wouldn't annoy you, but I would have the bad feeling,
that if ever needed, thinks can't be fixed, I always would have to
restore from backups. And what happens, if for what reason ever a backup
shouldn't be available?

2 Cents,
Ralf

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Ralf Mardorf
On Mon, 2013-01-28 at 22:28 -1000, parv wrote:
> in message ,
> wrote Ralf Mardorf thusly...
> >
> > Hi :)
> >
> > I hope it's ok, when I open a new thread for this issue.
> > First I need to know what files have a bad owner.
> >
> > I'm running
> > # freebsd-update IDS >> outfile_28Jan2013.ids
> > perhaps this will give some useful output, regarding to a wrong owner for
> > files from world.
> >
> > It's still running.
> >
> > I still have no idea how to check this for the files build from ports.
> 
> If I understand your problem correctly, it is of incorrect owner &
> group. If so, are there any problems with just running "chown -R" on
> the parent directory (say /usr/local, where ports are installed by
> default)?
> 
> 
>   - parv

It's only the owner and yes, the problem is, that the owner not always
is root for important directories. I had to switch the uid for the owner
from 1001 to 1000, when I changed the owner for all files from 1001 to
1000, some owners in */bin and */lib directories were accidentally
changed too, for what reason ever.

Regards,
Ralf

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread Matthias Apitz
El día Monday, January 28, 2013 a las 10:28:06PM -1000, parv escribió:

> in message ,
> wrote Ralf Mardorf thusly...
> >
> > Hi :)
> >
> > I hope it's ok, when I open a new thread for this issue.
> > First I need to know what files have a bad owner.
> >
> > I'm running
> > # freebsd-update IDS >> outfile_28Jan2013.ids
> > perhaps this will give some useful output, regarding to a wrong owner for
> > files from world.
> >
> > It's still running.
> >
> > I still have no idea how to check this for the files build from ports.
> 
> If I understand your problem correctly, it is of incorrect owner &
> group. If so, are there any problems with just running "chown -R" on
> the parent directory (say /usr/local, where ports are installed by
> default)?

In general, I find all this thread (wrong file owner) a bit boring. This
is a mayor damage and can only be repaired by a new installation. A lot
of files and directories in the systems filesystem, in / /var /usr, have
dedicated owner to allow certain processes which does not run as 'root'
to do their correct work there, for exmample 'mail'; i.e. you can not
do just a complete "chown -R root  " and expect that the system
still works;

the same is true for the ports below /usr/local; just run on a correct
system something like:

# find /usr/local -exec ls -ld {} \; | fgrep -v root

to get a list about what I am talking.

HIH

matthias
-- 
Sent from my FreeBSD netbook

Matthias Apitz   |  - No system with backdoors like Apple/Android
E-mail: g...@unixarea.de |  - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |  - No proprietary attachments
phone: +49-170-4527211   |  - Respect for open standards
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Software raid VS hardware raid

2013-01-29 Thread Artem Kuchin


29.01.2013 11:54, Michael Powell:

Artem Kuchin wrote:


I guess what I'm trying to point out is that low performance wrt software
RAID will stem from other things besides just simply consuming a few CPU
cycles. Today's CPUs have the cycles to spare.  I've been using gmirror for
RAID 1 mirrors for a few years now and am happy with this. I have had a few
old drives die and the servers stayed up and online. This allowed me to
defer the actual drive replacement and not have to drop everything and fight
fire.



Thank you everyone for replying.

I realize that many other things affect the performance, not only the 
CPU power. For example,
disk IO kernel multithreading is one of the things. But i guess in FBSD 
9 it is more or less solved.
The server is going to be a web server with many sites and with mysql 
running on it. Nothing really really
heavy. Currently with run all this on our own server with 8 cores and 
16GB ram and 3ware raid1
and cpu load is about 5% :) Everything is quick and responsive. I hope 
to see the same on a software raid.


I really don't want to deploy ZFS on a new server where all these site 
need to migrate because i am kind of
"don't fix it if it is not broken" kind of guy. 
UFS+journaling+softupdates served us well for years and snapshots

are available on ufs too.

My other concern is what happens when one drive goes down if we use 
gmirror? Is it completelly transparent
and bad drive can be hot swapped while server is running and rebuild 
started?

I am thinking now about gpt+gmirror (including boot and swap)

Artem

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: dhclient and random disconnects

2013-01-29 Thread J B
A follow-up:

> third,
> I would test with IPv6 disabled (entirely for the system), regardless of
> connectivity type;
> that also means to explicitly disable that failover setup line in your config
> ipv6_activate_all_interfaces="**YES"
> jb

W/r to IPv6 (disable, enable, etc):
read man pages for rc.conf(5) and search for ipv6;
then set up whatever neccessary in /etc/rc.conf after considering what is in
some preset variables in /etc/defaults/rc.conf.

Btw, where did you get that "**YES" from in your config line for failover ?
ipv6_activate_all_interfaces="**YES"

The flag is "YES" or "NO".

Also, are you running any firewall on your machine ?

jb
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: dhclient and random disconnects

2013-01-29 Thread J B
There are few things you should do.

First,
w/r to you complaint about first-kill-then restart, this will do it for you
/etc/rc.d/dhclient lagg0 restart

second,
I remember you wrote that you have a trouble with disconnects even in
wireless-only setup (no failover setup). If so, you should run and debug
wireless only for the time being.
Note:
remember what wpa_supplicant does:
It handles passing the login and encryption credentials to the authentication
server.
It also handles roaming from one wireless access point to another, in order to
maintain connectivity.
Here are some hints on setup:
http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/wpa_supplicant.conf
and
http://www.freebsd.org/cgi/man.cgi?query=wpa_supplicant&sektion=8
and debugging:
http://www.examplenow.com/wpa_supplicant/

third,
I would test with IPv6 disabled (entirely for the system), regardless of
connectivity type;
that also means to explicitly disable that failover setup line in your config
ipv6_activate_all_interfaces="**YES"

jb
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Old FreeBSD server, raid issues.

2013-01-29 Thread Brent Clark

Good day

I have an old machine that has lost its raid (0/ stripe).
Im trying to fix this.

If I go

[root@torry /usr/home/bclark]# gstripe list
Geom name: st0
State: UP
Status: Total=3, Online=3
Type: AUTOMATIC
Stripesize: 65536
ID: 1006591079
Providers:
1. Name: stripe/st0
   Mediasize: 360102297600 (335G)
   Sectorsize: 512
   Stripesize: 65536
   Stripeoffset: 0
   Mode: r0w0e0
Consumers:
1. Name: ada0
   Mediasize: 120034123776 (111G)
   Sectorsize: 512
   Mode: r0w0e0
   Number: 0
2. Name: ada1
   Mediasize: 120034123776 (111G)
   Sectorsize: 512
   Mode: r0w0e0
   Number: 2
3. Name: ada4
   Mediasize: 120034123776 (111G)
   Sectorsize: 512
   Mode: r0w0e0
   Number: 1

I see 'State: UP'

if i:
[root@torry /usr/home/bclark]# mount -t ufs /dev/stripe/st0a /mnt/
mount: /dev/stripe/st0a: Invalid argument

[root@torry /usr/home/bclark]# fsck /dev/stripe/st0a
fsck: Could not determine filesystem type

[root@torry /usr/home/bclark]# fsck_ufs /dev/stripe/st0a
** /dev/stripe/st0a
Cannot find file system superblock
ioctl (GCINFO): Inappropriate ioctl for device
fsck_ufs: /dev/stripe/st0a: can't read disk label

If someone could help, it would be appreciated, of what the next step 
is, it would be appreciated.


Kind Regards
Brent Clark


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to fix a broken owner for files from world & build from ports?

2013-01-29 Thread parv
in message ,
wrote Ralf Mardorf thusly...
>
> Hi :)
>
> I hope it's ok, when I open a new thread for this issue.
> First I need to know what files have a bad owner.
>
> I'm running
> # freebsd-update IDS >> outfile_28Jan2013.ids
> perhaps this will give some useful output, regarding to a wrong owner for
> files from world.
>
> It's still running.
>
> I still have no idea how to check this for the files build from ports.

If I understand your problem correctly, it is of incorrect owner &
group. If so, are there any problems with just running "chown -R" on
the parent directory (say /usr/local, where ports are installed by
default)?


  - parv

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"