Re: php-cgi 5.3.x and APC 3.1.3

2010-05-08 Thread Joe Auty
Michael Powell wrote:
 Joe Auty wrote:

   
 Hello,

 I'm trying to get the APC user cache to work for me... It works with PHP
 installed as an Apache module, but not as a CGI.
 

 I run Apache with the event mpm. This may, or may not be wise, but I've been 
 doing it for a while now and had no problems with it. I also use Xcache so 
 my comments are not APC specific.

 Since not all of PHP is considered thread safe it is not advisable to run 
 PHP on the event mpm as it is a threaded version. The way around this is to 
 not use mod_php but instead run mod_fcgid.so so PHP can be run as a FastCGI.
  
   
The problem with mod_fcgid for me is that it doesn't work with the APC
cache... From
http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/ :

 Both mod_fcgid and mod_fastcgi can be told to limit the number of PHP
 processes to 1 per user. The PHP process can then be told how many
 children to spawn. Unfortunately mod_fcgid will only send one request
 per child process. The fact that PHP spawns its own children is
 ignored by mod_fcgid. If we use mod_fcgid with our setup, we can only
 handle one concurrent PHP request. This is not good. A long running
 request could easily block multiple smaller requests.



 I understand that in order to get this to work one has to add a:

 
 FastCgiConfig -maxClassProcesses 1
   
 to their Apache config (for those that use Apache). I've done this, but
 I'm still not seeing any evidence that the user cache is working.
 

 This I do not know about and have never seen, but I do recall floundering 
 around in the beginning and being very confused by the difference between 
 exec'ing PHP code as a CGI as opposed to running it in a FastCGI process. 
 There is a huge difference, with the FastCGI being many times faster. 
  
   

I'm now convinced that FastCGI is running since I'm seeing FastCGI
signatures in my logs... I think I've been able to get everything to
work though, but I can see why this article above says that performance
of what I'm doing (upload progress bar) is not as good. Oh well, I
imagine that the general improvements in using FastCGI and PHP CGI will
offset this difference.

More below...


 In phpinfo(); you can see this:

 Server APICGI/FastCGI 

   
I'm seeing that... Thanks for posting your example httpd.conf config, it
was useful to make sure I had all of my bases covered!


 My options for PHP build:

 WITH_CLI=true
 WITH_CGI=true
 WITH_APACHE=true
 WITHOUT_DEBUG=true
 WITH_SUHOSIN=true
 WITH_MULTIBYTE=true
 WITHOUT_IPV6=true
 WITHOUT_MAILHEAD=true
 WITH_REDIRECT=true
 WITH_DISCARD=true
 WITH_FASTCGI=true
 WITH_PATHINFO=true

 Also keep in mind that any time PHP is rebuilt APC will need to be rebuilt 
 too.

   
Thanks! It looks like the with_fastcgi option has been removed from PHP
5.3's make config option list (no sign of it in the Makefile either),
but it appears that building with CGI support also builds it with
FastCGI support. I'm assuming this FastCGI support is generic and
supports both mod_fastcgi and mod_fcgi? This is the confusing part, I'm
sure someday I'll want to upgrade to mod_fcgi as soon as it supports the
APC (or some other) cache mechanism which I count on for upload progress
bars.

Thanks again for your help!


-- 
Joe Auty, NetMusician
NetMusician helps musicians, bands and artists create beautiful,
professional, custom designed, career-essential websites that are easy
to maintain and to integrate with popular social networks.
www.netmusician.org http://www.netmusician.org
j...@netmusician.org mailto:j...@netmusician.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: [#24486515] php-cgi 5.3.x and APC 3.1.3

2010-05-08 Thread dedicated
Hi, 

Please let us know if there is anything that we can assist you with. Also get 
back with your server IP.
-- 
Best Regards

Jim
Server Engineer
Hosting Services, Inc.

___
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: Small computer to run a GUI?

2010-05-08 Thread Andrew Gould
On Fri, May 7, 2010 at 11:37 PM, Liontaur liont...@gmail.com wrote:
 On Fri, May 7, 2010 at 6:47 PM, Adam Vande More amvandem...@gmail.comwrote:


 Sounds like you want a netbook.

 --
 Adam Vande More


 I was more thinking of something without a monitor, keyboard or mouse. I
 want to put it in a cupboard and not worry about it. With a netbook i'd
 probably have to leave it open (or else it would go into suspend mode or
 heat up or...). I was just hoping for something Soekris size but with a VGA
 output.

 Mark


Have you taken a look at the fit-PC2?  Since it can run Linux, the
odds are it can run FreeBSD as well.  You might want to ask the
creators.

http://www.fit-pc.com/web/

Andrew
___
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: Small computer to run a GUI?

2010-05-08 Thread Robert Huff

Andrew Gould writes:

   Sounds like you want a netbook.
  

   I was more thinking of something without a monitor, keyboard or 
   mouse. I want to put it in a cupboard and not worry about it. With 
   a netbook i'd probably have to leave it open (or else it would go 
   into suspend mode or heat up or...). I was just hoping for something
   Soekris size but with a VGA output.
  
  Have you taken a look at the fit-PC2?  Since it can run Linux, the
  odds are it can run FreeBSD as well.  You might want to ask the
  creators.
  
  http://www.fit-pc.com/web/

I seem to have lost the bookmark, but within the last 18 months
or so I saw an article for something that might work here.  It ran
Linux, so hopefully it would run *BSD.
It had a 1 ghz processor, and 512 mbytes of RAM.
The package was a a cube. 2x2x2.  That's correct, inches.
One face has a power plug; another had a USB connector; a third has
a (100 mbit) ethernet connector.
The price was (I think) under US $150.


Robert Huff



___
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: .Xmodmap problems after upgrading to Xorg 7.5

2010-05-08 Thread Joey Mingrone
On Fri, May 7, 2010 at 23:53, Chris Hill ch...@monochrome.org wrote:
 On Fri, 7 May 2010, Joey Mingrone wrote:

 My .Xmodmap is included below.  When I run

 %xmodmap ~/.Xmodmap

 the output is:

 xmodmap:  .Xmodmap:13:  bad keysym in remove modifier list
 'Caps_Lock', no corresponding keycodes

 [snip]

 When I encounter an unfamiliar error, I'll paste the entire error text into
 google. Sometimes that helps.

 Does anyone know why the keysyms aren't mapping to the keycodes?

 All I can offer is my own .Xmodmap, which is a small subset of yours.

 [snip]

 remove Lock = Caps_Lock
 keysym Caps_Lock = Control_L
 add Control = Control_L

 It looks like you're trying to end up with two left-control keys and no
 CapsLock.

Yup, that was intentional.  I have no use for capslock.

I guess the key point that I should have mentioned is that this all
worked for years.  Without any changes to my ~/.Xmodmap it just
stopped working after upgrading to Xorg-7.5.

Thanks for your response.  I'll starting digging and see what I can
come up with.

Cheers,

Joey Mingrone
___
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: Small computer to run a GUI?

2010-05-08 Thread Polytropon
On Fri, 7 May 2010 21:37:53 -0700, Liontaur liont...@gmail.com wrote:
 On Fri, May 7, 2010 at 6:47 PM, Adam Vande More amvandem...@gmail.comwrote:
 
 
  Sounds like you want a netbook.
 
  --
  Adam Vande More
 
 
 I was more thinking of something without a monitor, keyboard or mouse.

This is what you usually call a terminal. :-) Modern people
often call it a thin client. In particular, I'm not sure if it
fits your needs because it not a stand-alone system.



 I
 want to put it in a cupboard and not worry about it.

Again, this sounds like you want a terminal. You don't worry
about them. In fact, you don't spend one thought about them
after installing (which means: plugging it in).



 With a netbook i'd
 probably have to leave it open (or else it would go into suspend mode or
 heat up or...).

Sadly, that's often a problem - running a laptop or notebook
with closed lid, so you can use attached keyboard, mouse and
monitor. :-(



 I was just hoping for something Soekris size but with a VGA
 output.

Maybe something ARM based would be useful?




-- 
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: Small computer to run a GUI?

2010-05-08 Thread John Levine

 well. I went checking out Soekris but couldn't really see if they offer a
 GUI, the models I looked at didn't have a VGA port though. I was hoping for
 something about 9 inches square and three inches thick, or smaller.

Soekris users consider the lack of VGA to be a feature, since they
make the systems smaller and less power hungry.  If you want to run X
stuff, my advice would be to run a X server on your laptop to make it
act like an X terminal, and run the applications on the Soekris over
the network.  That's how X was designed to be used.  Works great.

If you really really want to run X on your Soekris, you could plug in
a mini-PCI video card, which I see you can get for about $45, but I'd
recommend not running an X server process on your server hardware.

R's,
John
___
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: Small computer to run a GUI?

2010-05-08 Thread John Levine
I was more thinking of something without a monitor, keyboard or mouse. I
want to put it in a cupboard and not worry about it.

Sounds like a Soekris.  Their net5501 has a 500MHz CPU, 512MB RAM,
serial ports, Ethernet, USB, compact flash, SATA, mini-PCI, and no video.
It runs FreeBSD.  The case is quite small, 6.7 x 11.5 x 1.3, but
has room for a 2 SATA disk if you want to add one.  If you want wifi
you can plug in a mini-PCI card.

They make it quite clear that their market is OEMs and they do not
offer software support, although there is a friendly community that is
helpful if you ask sensible questions.  Many people run FreeBSD on them.

With a case and wall wart it's under $300.  They have slower cheaper
boards, if that's all you need.

See http://www.soekris.com/net5501.htm

R's,
John
___
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: Small computer to run a GUI?

2010-05-08 Thread Polytropon
On 8 May 2010 16:13:14 -, John Levine jo...@iecc.com wrote:
 If you want to run X
 stuff, my advice would be to run a X server on your laptop to make it
 act like an X terminal, and run the applications on the Soekris over
 the network.  That's how X was designed to be used.  Works great.

In this case, maybe this product is interesting as well:

http://www.axel.com/usa2/prod_ax3.html?mv2_pos=1

It is a terminal (network based), and often called a thin
client. I call it a terminal because it is a terminal, and
that's nothing bad. :-)



 If you really really want to run X on your Soekris, you could plug in
 a mini-PCI video card, which I see you can get for about $45, but I'd
 recommend not running an X server process on your server hardware.

Basically, a 500 MHz system with 512 MB RAM is excellent at
running X and applications - I have a P2 / 300 MHz that still
is an excellent workstation (e. g. XFCE 3, Opera, XMMS, mplayer,
OpenOffice 2), but if you really just want a web browser,
a simple window manager (e. g. XFCE 3, Fluxbox, IceWM) is
okay; only problem could be the (already outdated) Flash stuff...


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


Can a foreign drive's mirrors be prevented from joining identically named mirrors?

2010-05-08 Thread Peter Steele
Say I have two systems with two hot-swappable drives and have created mirrors 
for root, var, and swap across those two drives on each system. If I take a 
drive from one system and insert it into the other system, it appears that the 
mirror providers on that drive automatically insert themselves into the 
identically named mirrors on the system where the drive has been inserted. 
What's worse, they may also become recognized as the mirrors with the most 
recent data, even though they came from a different system and should in fact 
be immediately flagged as dirty and synchronized with the mirrors on the 
receiving system.

The only solution we've found is that drives being inserted into an existing 
system should be thoroughly wiped first. The problem with that is we cannot be 
certain a user will follow that guideline. The alternative is to make sure that 
the mirrors are uniquely named across all systems. So for example instead of 
having mirrors named root, var, and swap, we could name them root-macId, 
var-macId, and swap-macId, where macId is a unique ID based on the MAC 
address of a given system's Ethernet interface. This is a 100% solution but it 
would likely solve most of the problems we've encountered.

My question is whether there is any other way to accomplish this? We do not 
want the mirrors on a drive being inserted into another system to automatically 
added to the receiving systems identically named mirrors.

___
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


Does FreeBSD run on 32-bit sparcs (V8)?

2010-05-08 Thread Yuri
When I look at FreeBSD distribution I only see sparc64 (which I guess 
implies V9).
When I look at LLVM compiler sources they define V8 as a 32-bit target 
and V9 as 64-bit target.
Does this mean that FreeBSD can only run on V9 and that's what should be 
assumed, and V8 is skipped for FreeBSD?

Just want to confirm my conclusions.

Yuri
___
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: Does FreeBSD run on 32-bit sparcs (V8)?

2010-05-08 Thread Frank Wißmann

Yuri schrieb:
When I look at FreeBSD distribution I only see sparc64 (which I guess 
implies V9).
When I look at LLVM compiler sources they define V8 as a 32-bit target 
and V9 as 64-bit target.
Does this mean that FreeBSD can only run on V9 and that's what should be 
assumed, and V8 is skipped for FreeBSD?

Just want to confirm my conclusions.

Yuri
___
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




You are right. See

http://www.freebsd.org/platforms/index.html

for more information.

Greetings Frank

--
GU d- s:+ a+ C+$ UBS$ P L- !E--- W N+@ !o K--? !w--- O !M- !V- PS+ PE 
Y? !PGP- t+ 5 X !R tv- b++ DI !D G e h+ r- y?


When pack meets pack in the jungle
and no one will move from the trail
wait till the leaders have spoken
it may be fair words shall prevail

(Rudyard Kipling)
___
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: Switching wired / wireless using lagg(4)

2010-05-08 Thread Leslie Jensen



On 2010-05-07 21:59, Demelier David wrote:

Hi freebsd-questions@,

I tried this

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-aggregation.html

To manage the wired / wireless devices on my laptop, so I added :

hostname=Melon.malikania.fr
wlans_iwn0=wlan0
cloned_interfaces=lagg0
ifconfig_msk0=UP
ifconfig_iwn0=ether 18:a9:05:87:38:0a
ifconfig_wlan0=WPA
ifconfig_lagg0=laggproto failover laggport msk0 laggport wlan0 DHCP
background_dhclient=YES

in my /etc/rc.conf, it works but I can't understand why we must set the iwn0
MAC address to the msk0 one? and is it possible to remove or to put in
background the Waiting 30s for the default ... it's sometime too long.

For the moment it just works and it's very powerful, I can switch the wired 
/
wireless without any commands ;-).

Cheers,



Hello David.

I tried out this as well. I did not observe that it should be the MAC 
address of the wired interface at first, so I put the wifi MAC in 
rc.conf and got a page fault 12 when I tried to boot with the lagg 
configuration. I've now changed the MAC but I stil get the page fault :-(


I'm not sure what you want to achieve with the background_dhclient.
I use
ifconfig_lagg0=laggproto failover laggport em0 laggport wlan0 SYNCDHCP

SYNCDHCP waits for the dhcp offer so no network services are started 
before the  NIC gets an address.


/Leslie
___
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


quotaon stucked in 'syncer' state

2010-05-08 Thread cronfy
Hello,

On FreeBSD 7.3-STABLE I have a job in my root crontab that is executed
every night:

5 0 * * *  /usr/sbin/quotaoff -a; /sbin/quotacheck -aug; /usr/sbin/quotaon -a;

Today I've found out that two quotaon processes stucked in 'syncer'
state in top ('D' state in ps). No quotaon/quotaoff can be started
now:

# /usr/sbin/quotaoff -a
quotaoff: /home: Operation already in progress
quotaoff: /home: Operation already in progress

And these processes can not be killed. Here is ps/top output:

# ps auwwx | grep 'quot[a]'
root   2462  0.0  0.0  4608   912  ??  DThu12AM   0:00.03
/usr/sbin/quotaon -a
root  60450  0.0  0.0  4608   928  ??  DFri12AM   0:00.04
/usr/sbin/quotaon -a

# top -b -Uroot 100500 | grep quota
60450 root  1  -40  4608K   928K syncer 4   0:00  0.00% quotaon
 2462 root  1  -40  4608K   912K syncer 5   0:00  0.00% quotaon



Is there any way to finish these stucked processes without reboot?


-- 
// cronfy
___
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


Look for Blockade

2010-05-08 Thread Gary Elsesser
I am interested in locating the game Blockade, being familiar
with and old version by Christer Ericson (1991, Apple II).
It appears to have been on your site as recently at 2008.

If the source where still available, I would consider porting it
to OS X 10.6 -- which is FreeBSD based, as you surely know.

Any pointers ?

Gary Elsesser

___
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: Look for Blockade

2010-05-08 Thread Adam Vande More
On Sat, May 8, 2010 at 6:23 PM, Gary Elsesser gwe...@earthlink.net wrote:

 I am interested in locating the game Blockade, being familiar
 with and old version by Christer Ericson (1991, Apple II).
 It appears to have been on your site as recently at 2008.

 If the source where still available, I would consider porting it
 to OS X 10.6 -- which is FreeBSD based, as you surely know.

 Any pointers ?


ftp://ftp.eenet.ee/pub/FreeBSD/distfiles/blockade-1_00-linux.tar.gz

-- 
Adam Vande More
___
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


File system

2010-05-08 Thread Ansar Mohammed
Hello All,
I have a FreeBSD VM running. Whenever I reboot the VM without a clean
shutdown it boots into single user mode and I have to run fsck.

When I run fsck, the file system clearly has issues.

Is there any way to have FreeBSD run on a better file system that wont crap
out on me everytime I do and unclean shutdown?
___
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


magic cmd[s]??

2010-05-08 Thread Gary Kline
for some reason, i am having trouble burning 80-release.  i did
get the oc-bsd dvd d/loaded And burned ... and my '05 thinkpad
recognized the dvd and installed.  i have failed several times to
d/l the 8.0-R torrent.  the checksums are valid.  but usinng k3b
only 50% of the task is burned.  is there some magic command or
procedure that i'm missing in burning the iso file from my
torrent dir to the dvd?

also, how do i erase the several dvd discs that i would like to
reuse?  there are dvd-rw.

thans in advance,

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: File system

2010-05-08 Thread Bobby Walker
On May 8, 2010, at 8:36 PM, Ansar Mohammed wrote:

 Hello All,
 I have a FreeBSD VM running. Whenever I reboot the VM without a clean
 shutdown it boots into single user mode and I have to run fsck.
 
 When I run fsck, the file system clearly has issues.
 
 Is there any way to have FreeBSD run on a better file system that wont crap
 out on me everytime I do and unclean shutdown?
 ___
 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
 

I am far from an expert on this topic, but under what situation is it good to 
take any OS down suddenly?  Is this an unavoidable event of some sort?

If this is a timed event, that happens on a regular basis, then you should be 
able to issue a timed shutdown prior to that so that the operating system goes 
down cleanly.

Any file system that is taken down abruptly, repeatedly will see degradation.  
Databases and open files, not to mention any data that is being written from/to 
the hard disk are all meant to be taken down and cleared out properly.

I'm not certain that a different file system is the solution, it might just be 
a band-aid on the greater problem, which is eliminating the sudden power loss 
that's simulated by shutting off a VM.

-- Bobby___
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: File system

2010-05-08 Thread Ansar Mohammed
Hello Bobby,

The VM is in my lab environemnt. I have many flavours of Windows, Linux and
FreeBSD. FreeBSD is my firewall running PF.

I have rebooted my entire environment hundreds of times, and non of my
Windows or Linux VMs will complain or boot into a repair/single user mode.

The background to this problem is because the FreeBSD root filesystem (UFS)
is not journaled and for some reason I cannot set my root partition to be
UFS+SoftUpdates.

At any rate, we are in the year 2010, most modern operating systems and
databases and able to survive an unclean shutdown without booting into
single user mode and file system/data corruption.

I love FreeBSD, and have been a user since 2.x but its a bit frustrating
that whenever power fails I have to do this..


On Sat, May 8, 2010 at 10:57 PM, Bobby Walker bobbyjwal...@live.com wrote:

 On May 8, 2010, at 8:36 PM, Ansar Mohammed wrote:

   Hello All,
  I have a FreeBSD VM running. Whenever I reboot the VM without a clean
  shutdown it boots into single user mode and I have to run fsck.
 
  When I run fsck, the file system clearly has issues.
 
  Is there any way to have FreeBSD run on a better file system that wont
 crap
  out on me everytime I do and unclean shutdown?
  ___
  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
 

 I am far from an expert on this topic, but under what situation is it good
 to take any OS down suddenly?  Is this an unavoidable event of some sort?

 If this is a timed event, that happens on a regular basis, then you should
 be able to issue a timed shutdown prior to that so that the operating system
 goes down cleanly.

 Any file system that is taken down abruptly, repeatedly will see
 degradation.  Databases and open files, not to mention any data that is
 being written from/to the hard disk are all meant to be taken down and
 cleared out properly.

 I'm not certain that a different file system is the solution, it might just
 be a band-aid on the greater problem, which is eliminating the sudden power
 loss that's simulated by shutting off a VM.

 -- Bobby___
  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: File system

2010-05-08 Thread Bobby Walker

On May 8, 2010, at 10:18 PM, Ansar Mohammed wrote:

 Hello Bobby,
 
 The VM is in my lab environemnt. I have many flavours of Windows, Linux and
 FreeBSD. FreeBSD is my firewall running PF.
 
 I have rebooted my entire environment hundreds of times, and non of my
 Windows or Linux VMs will complain or boot into a repair/single user mode.
 
 The background to this problem is because the FreeBSD root filesystem (UFS)
 is not journaled and for some reason I cannot set my root partition to be
 UFS+SoftUpdates.
 
 At any rate, we are in the year 2010, most modern operating systems and
 databases and able to survive an unclean shutdown without booting into
 single user mode and file system/data corruption.
 
 I love FreeBSD, and have been a user since 2.x but its a bit frustrating
 that whenever power fails I have to do this..
 
 
 On Sat, May 8, 2010 at 10:57 PM, Bobby Walker bobbyjwal...@live.com wrote:
 
 On May 8, 2010, at 8:36 PM, Ansar Mohammed wrote:
 
 Hello All,
 I have a FreeBSD VM running. Whenever I reboot the VM without a clean
 shutdown it boots into single user mode and I have to run fsck.
 
 When I run fsck, the file system clearly has issues.
 
 Is there any way to have FreeBSD run on a better file system that wont
 crap
 out on me everytime I do and unclean shutdown?
 ___
 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
 
 
 I am far from an expert on this topic, but under what situation is it good
 to take any OS down suddenly?  Is this an unavoidable event of some sort?
 
 If this is a timed event, that happens on a regular basis, then you should
 be able to issue a timed shutdown prior to that so that the operating system
 goes down cleanly.
 
 Any file system that is taken down abruptly, repeatedly will see
 degradation.  Databases and open files, not to mention any data that is
 being written from/to the hard disk are all meant to be taken down and
 cleared out properly.
 
 I'm not certain that a different file system is the solution, it might just
 be a band-aid on the greater problem, which is eliminating the sudden power
 loss that's simulated by shutting off a VM.
 
 -- Bobby___

Okay, I just took my VM down abruptly, and I had no problems coming back up 
automatically. 

That makes me wonder exactly how your fstab is set, would you mind posting 
yours if it deviates too much from what mine looks like?

# DeviceMountpoint  FStype  Options 
DumpPass#
/dev/ad0s1b noneswapsw  
0   0
/dev/ad0s1a /   ufs 
rw  1   1
/dev/ad0s1e /tmpufs 
rw  2   2
/dev/ad0s1f /usrufs 
rw  2   2
/dev/ad0s1d /varufs 
rw  2   2
/dev/acd0   /cdrom  cd9660  ro,noauto   
0   0


 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
 

___
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: Small computer to run a GUI?

2010-05-08 Thread perryh
Robert Huff roberth...@rcn.com wrote:

   I seem to have lost the bookmark, but within the last 18
 months or so I saw an article for something that might work here.
 It ran Linux, so hopefully it would run *BSD.
   It had a 1 ghz processor, and 512 mbytes of RAM.
   The package was a a cube. 2x2x2.  That's correct, inches.
 One face has a power plug; another had a USB connector; a third
 has a (100 mbit) ethernet connector.
   The price was (I think) under US $150.

Sounds a bit like a ShivaPlug.
___
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: File system

2010-05-08 Thread Adam Vande More
On Sat, May 8, 2010 at 10:18 PM, Ansar Mohammed ans...@gmail.com wrote:

 Hello Bobby,

 The VM is in my lab environemnt. I have many flavours of Windows, Linux and
 FreeBSD. FreeBSD is my firewall running PF.




 I have rebooted my entire environment hundreds of times, and non of my
 Windows or Linux VMs will complain or boot into a repair/single user mode.

 The background to this problem is because the FreeBSD root filesystem (UFS)
 is not journaled and for some reason I cannot set my root partition to be
 UFS+SoftUpdates.


Well I'd say that's clearly not the problem since so many of us don't have
your issues.  SU is disabled on / for a reason. I highly doubt you actually
want to enable this, but you can if you adjust the FS when it isn't mounted
eg boot from fixit cd.


 At any rate, we are in the year 2010, most modern operating systems and
 databases and able to survive an unclean shutdown without booting into
 single user mode and file system/data corruption.


FreeBSD has defaulted to background checking on SU FS's for the better part
of 10 years.  What version are you running?  What data corruption did you
have and what does databases have to do with it?  Also DB's that are
unexpectly killed can have consistency problems regardless of what FS it
writes to and OS happens to be running it.



 I love FreeBSD, and have been a user since 2.x


User as in you saw it running a couple times?

So on to your actual issue instead of all the bs, what does your
/etc/rc.conf say?  Specifically, what is the boot failing on?

If you really want the disk/partition/slice journaled, you can do so with
gjournal or ZFS offers an even better copy-on-write system.  If the install
is only running a fw, the zfs is probably overkill though.




-- 
Adam Vande More
___
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