File system

Bobby Walker bobbyjwalker at live.com
Sun May 9 03:33:59 UTC 2010


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 <bobbyjwalker at 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 at freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to "
>> freebsd-questions-unsubscribe at 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?

# Device			Mountpoint		FStype	Options		Dump	Pass#
/dev/ad0s1b			none			swap	sw			0		0
/dev/ad0s1a			/				ufs		rw			1		1
/dev/ad0s1e			/tmp				ufs		rw			2		2
/dev/ad0s1f			/usr				ufs		rw			2		2
/dev/ad0s1d			/var				ufs		rw			2		2
/dev/acd0			/cdrom			cd9660	ro,noauto	0		0


>> freebsd-questions at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "
>> freebsd-questions-unsubscribe at freebsd.org"
>> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 



More information about the freebsd-questions mailing list