Re: Remote re-installation of current FreeBSD system.

2009-11-14 Thread Polytropon
On Sat, 14 Nov 2009 09:50:03 +0200, Manolis Kiagias son...@otenet.gr wrote:
 It seems however that some dedicated servers are setup using a single
 slice and a single partition, i.e. having /usr /var and /tmp as
 subdirectories in / instead of separate filesystems.

Well, that's no problem per se, and it saves some partition
out of space trouble when using UFS partitioning. You don't
have this with ZFS. :-)

Anyway, FreeBSD should keep all its partitions within one
slice, or do I fail to see some hidden advantage of distributing
the system into several slices?



 If the OP cares to share his /etc/fstab, it will become obvious if this
 is the case.

That would answer this question.



 If there are already separate partitions inside the slice, I'd agree
 there is no compelling reason to move to a multiple slice system.

An idea would be, for example, to remove the /usr partition and
create two new partitions, one for /usr and one for /usr/local,
which would move out /usr/local contents from the partition
holding /usr - which I think is what the OP originally intended.
This could be done relatively easily (in regards of SSH for the
command connection).




-- 
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: Remote re-installation of current FreeBSD system.

2009-11-14 Thread Peter
 On Sat, 14 Nov 2009 09:50:03 +0200, Manolis Kiagias son...@otenet.gr
 wrote:
 It seems however that some dedicated servers are setup using a single
 slice and a single partition, i.e. having /usr /var and /tmp as
 subdirectories in / instead of separate filesystems.

 Well, that's no problem per se, and it saves some partition
 out of space trouble when using UFS partitioning. You don't
 have this with ZFS. :-)

 Anyway, FreeBSD should keep all its partitions within one
 slice, or do I fail to see some hidden advantage of distributing
 the system into several slices?


snip

UFS:
I usually setup a ~10G slice for the OS [ad0s1] and in that slice I have a
/tmp /var /usr...and then use the rest of the disk for another slice
containing all my data and home directories - This way if I ever need
extra space for base, I can create symlinks, but makes reloading the base
OS easier/being able to change partitions around without worrying about
data [ad0s2]. If I plug this disk into another system, s1 can be
repartitioned for whatever and s2 still has all my data instead of having
to have the old partitions left [/var, /tmp, /usr] and can't combine them
into one huge one because your /home is on the same slice.

]Peter[

___
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: Remote re-installation of current FreeBSD system.

2009-11-14 Thread Polytropon
On Sat, 14 Nov 2009 02:38:40 -0700 (MST), Peter fb...@peterk.org wrote:
 UFS:
 I usually setup a ~10G slice for the OS [ad0s1] and in that slice I have a
 /tmp /var /usr...and then use the rest of the disk for another slice
 containing all my data and home directories - This way if I ever need
 extra space for base, I can create symlinks, but makes reloading the base
 OS easier/being able to change partitions around without worrying about
 data [ad0s2]. If I plug this disk into another system, s1 can be
 repartitioned for whatever and s2 still has all my data instead of having
 to have the old partitions left [/var, /tmp, /usr] and can't combine them
 into one huge one because your /home is on the same slice.

Hmmm... that's a valid point and a good idea in certain cases,
such as you mentioned (having OS and applications completely
separated from data - slice-wise).



-- 
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: ATI Eyefinity support in FreeBSD

2009-11-14 Thread Jerry
On Fri, 13 Nov 2009 19:06:10 -0500
PJ PJ af.gour...@videotron.ca replied:

[snip]

Hey, this is indeed very interesting.
But did you read the fine print at the bottom of the page?
Linux support scheduled to be enabled via a future ATI Catalyst™
driver release.
Nobody cares about us FreeBSD fraks...   :'(

Yes, I did see the reference. I don't blame ATI though. After all, they
have to first appease their largest user base. Unfortunately, that
means that Linux users are put on hold for an indefinite period of
time. Once that project is consummated, the development or porting of
drivers to other platforms commences. It would be nice if some
patronage were shown to FreeBSD earlier in the cycle though. I cannot
help but wonder if this will turn into a nVidia-64 debacle; i.e.,
waiting years for a serviceable solution.

-- 
Jerry
ges...@yahoo.com

|===
|===
|===
|===
|

That money talks,
I'll not deny,
I heard it once,
It said Good-bye.


Richard Armour

___
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


Produce identical packages for checksum comparison?

2009-11-14 Thread Chris
I have a somewhat flaky system.  I would like to compile ports to 
packages multiple times and do a file comparison.  Since packages are 
tar files they wouldn't match for sure just because of the different 
time attributes.  There may be other differences.  Anyone know how to 
generate packages with consistent checksums?


Chris

___
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


freebsd.org slow?

2009-11-14 Thread Chris

Anyone else notice how slow freebsd.org is?

Chris

___
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: Produce identical packages for checksum comparison?

2009-11-14 Thread Matthias Apitz
El día Saturday, November 14, 2009 a las 07:51:17AM -0800, Chris escribió:

 I have a somewhat flaky system.  I would like to compile ports to 
 packages multiple times and do a file comparison. ...

Hi Chris,

What is behind the idea to compile and pack a given port twice if there
are no errors during the build?

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu
___
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: freebsd.org slow?

2009-11-14 Thread Modulok
Chris,

Seems alright now, for me anyway. (Indeed, the ever-irritating works
for me response. Though it seemed the only thing appropriate here.
Sorry. :)~

-Modulok-

On 11/14/09, Chris christopher...@telting.org wrote:
 Anyone else notice how slow freebsd.org is?

 Chris

 ___
 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

___
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: Produce identical packages for checksum comparison?

2009-11-14 Thread Chris

Matthias Apitz wrote:

El día Saturday, November 14, 2009 a las 07:51:17AM -0800, Chris escribió:

  
I have a somewhat flaky system.  I would like to compile ports to 
packages multiple times and do a file comparison. ...



Hi Chris,

What is behind the idea to compile and pack a given port twice if there
are no errors during the build?

matthias

  
While I don't think there will be differences I won't know until I do 
it.  Call it reassurance.

To me it seems like a good stress test.

Also every time I update my ports tree I don't know what is going to 
break.  I have a
jail running all the time to recompile my ports as they are updated.  I 
maintain between
three to five different different ports/packages branches of different 
checkout dates.


The system is somewhat flaky and crashes sometimes.  I play with a lot 
of stuff
and am actually using Freebsd as my desktop.  I am sure that most of my 
crashing is
due to multiple jails and using nullfs and unionfs but that isn't 
relevent to my current post.


I'm also thinking of building a simple checksum database to track what 
actually changes
and what my options were when I compiled it.  It would allow me to 
better make
regression decisions.  I could also be free to delete packages and know 
if I recompile
it later that it was the exact same package with the exact same 
options.  Very simple
script to do that.  Also if say there was an option when compiling ports 
to produce files
with specific time/dates it would be helpful in pinpointing which of my 
port branches

a specific file came from.

Chris


___
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


rc.subr patch to set FIB to demon

2009-11-14 Thread Коньков Евгений
Hello, .

Link to news:
http://www.kes.net.ua/softdev/fib_patch.html


rc.subr.patch
-

2c2
 # $FreeBSD: src/etc/rc.subr,v 1.77.2.1.2.1 2008/11/25 02:59:29 kensmith Exp $
---
 # $FreeBSD: src/etc/rc.subr,v 1.77.2.1 2008/05/12 07:29:03 mtm Exp $
605d604

664a664,669
 _fib=
 if [ ${name}_fib ]; then
   eval _fib=\$${name}_fib
 _fib=/usr/sbin/setfib $_fib
 fi

670c675
 $_chroot $command $rc_flags $command_args
---
 $_chroot $_fib $command $rc_flags $command_args
674c679
 $command $rc_flags $command_args
---
 $_fib $command $rc_flags $command_args


-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
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: php4-gd

2009-11-14 Thread Roman Neuhauser
On Tue, Nov 10, 2009 at 06:59:16AM +, Matthew Seaman wrote:
 Arek Czereszewski wrote:
  I have on some web servers php4-gd port installed
  and I am totally confused.
  Portaudit says
  
  Affected package: php4-gd-4.4.9

 Basically, if you're running PHP4 on a public site then you should be making
 plans to upgrade to PHP5 ASAP. 

more like: you should have upgraded to PHP5 two years ago. PHP4 is dead,
baby. it's dead...
___
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 disk replacement questions

2009-11-14 Thread Graeme Dargie


-Original Message-
From: krad [mailto:kra...@googlemail.com] 
Sent: 04 November 2009 09:19
To: Steve Polyack
Cc: Derrick Ryalls; FreeBSD Questions
Subject: Re: ZFS disk replacement questions

2009/11/3 Steve Polyack kor...@comcast.net

 Derrick Ryalls wrote:

 On Tue, Nov 3, 2009 at 10:21 AM, Steve Polyack kor...@comcast.net
 wrote:


 Derrick Ryalls wrote:


 1) In the event of a disk failure, how do I trace back the name
such
 as adX to a physical drive in the enclosure?  Is there a way to
take
 the drive offline then use atacontrol to spin it down or something
so
 it is easy to identify?



 In my opinion you are best off using glabel(8) to give names to the
 disks.
  This way you can name them in a way that makes sense to you.
  Additionally,
 when you create the ZFS pool you will use the glabel'd names.  This
means
 that the pool will still come up properly if something causes your
 devices
 to be numbered differently (i.e. a drive dies and you happen to
reboot
 the
 system).



 I believe ZFS does this automatically.  Supposedly, if you take a
 working set of RAIDZ drives from one machine and put it in another,
 ZFS will figure out the drives since they get labelled by ZFS
 internally.  My question concerns how to identify the physical disk
in
 question based on the adX or glabel name?  Different name in software
 is fine, but if the drive fails I want to make sure I pull the
correct
 drive.



 This is possible, but I don't remember reading that ZFS handles this
 anywhere, and I've seen glabel(8) recommended elsewhere for the same
reason.

 Either way, you can add your drives one-by-one and label them on the
 enclosure arraydrive00 and then glabel the individual disks with the
same
 name.  This way when ZFS tells you arraydrive03 is dead/offline, you
can
 look at your enclosure and pull the drive with the arraydrive03 label.

  Depending on your controller it is also probably worth it to use one
of
 the
 SATA-specific drivers in FreeBSD 8 - these are ones like ahci(4) and
 siis(4).  While the generic ata(4) driver will work for pretty much
 everything, the updated AHCI drivers can take advantage of some more
 features.  Enable the modules at boot to use them.



 I will look into it, thanks.  The machine in question is 2 year old
 hardware currently with a 3ware raid card.  I will be going software
 raid only, but FreeBSD already recognizes the eSATA drive I have
 attached as a backup device so I know the O/S can at least talk to
 sata drives attached to the mobo.




 ___
 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



One thing to note about resilvering; unlike most raid systems zfs knows
what
is going on at the filesystem level as well as block level. Therefore
when a
drive has to be resilvered, only the data on the drive is rebuilt rather
than every block as with most other raid subsystems. eg if you have a
1TB hd
but only have 20 Gig of data, only 20 gig is copied/rebuilt rather than
1 TB
of data if you were using gvinum/gmirror. This massively speeds up
rebuild
times and stress on the other drives. However the fuller the drive the
less
the benefits
___
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


Hi All

Sorry to jump in on someone else's question / answer but I have a
related query. I notice the previous answer mentioned specific achi(4)
driver and Freebsd 8.0 are these available in 7.2 ? Will the achi(4)
driver work happily along side the ata driver. I just replaced every
drive in my raidz array the dirty way as I could not see away to make
the replacement drive show up without doing a reboot, would the achi(4)
driver allow me to hot swap the disks in the future ?

Regards

Graeme

___
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: Produce identical packages for checksum comparison?

2009-11-14 Thread b. f.
Chris wrote:
I'm also thinking of building a simple checksum database to track what 
actually changes
and what my options were when I compiled it.  It would allow me to better make
regression decisions.  I could also be free to delete packages and know if I 
recompile
it later that it was the exact same package with the exact same options.  Very 
simple
script to do that.  Also if say there was an option when compiling ports to 
produce files
with specific time/dates it would be helpful in pinpointing which of my port 
branches
a specific file came from.

The elusive reproducible build.  Many people are interested in doing
this, and it's not as easy as it seems.  Even if you edited your
filesystem or archives to change the timestamps of package files, the
toolchain used to create the binary files in packages often injects
random seeds, timestamps, file paths, uid/gid information, etc. that
creates differences from one build to the next.  You may have to hack
several base system utilities, and then directly compare the checksums
of binaries in archives after unpacking, or use a more intelligent
comparison. See, for instance, one Japanese developer's attempt to do
this in NetBSD in order to create better quality control for a
commercial product:

http://mail-index.netbsd.org/tech-toolchain/2009/02/17/msg000577.html

Your description of your system's problems sounds bad.  I think you
should concentrate on fixing those first.

b.
___
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


[FreeBSD Questions] Filesystem image as root

2009-11-14 Thread CyberLeo Kitsana
I have been thinking and experimenting for weeks, but I cannot figure
this out.

I have an Intel SS4200 NAS that I wish to use as a ZFS NAS with FreeBSD 8.0.

The device has 4 SATA bays, and I don't want to use one for a UFS root disk.

I don't want to use up hundreds of megabytes of RAM preloading an
mfsroot that can never shrink.

The single IDE connector is accessible via the legacy ISA ports, and is
thus limited to PIO modes (about 1.6MB/sec max, even with an actual hard
drive instead of a CF card).

Performance is acceptable when using a geom_uzip image from a CF card on
the IDE connector, as a lot of it ends up cached in RAM (and is
evictable in case of memory pressure, unlike an mfsroot).

Try as I might, I am unable to figure out how to use a uzip imagefile on
UFS as a root filesystem, without dedicating a slice/partition to it.
There seems to be nothing approximating GNU/Linux's pivot_root, and
using a stub init (which cannot be a shellscript...?) to mdconfig and
mount the image, then chroot to that to exec /sbin/init appears to lead
to instant deadlock.

I don't really like the idea of mounting the image somewhere below root,
and using symlink spaghetti to get everything proper; especially since I
wish to place such essentials as /sbin and /etc thereupon, which leads
to a bit of a chicken-and-egg problem with setting up and mounting an
image that contains its mdconfig and mount...

Am I missing something obvious here, or am I truly treading unexplored
territory?

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
cyber...@cyberleo.net

Furry Peace! - http://.fur.com/peace/
___
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