Re: geli disk marked as dirty on normal shutdown/reboot

2009-08-31 Thread Vinny

Polytropon wrote:

On Mon, 31 Aug 2009 21:22:14 -0500, Adam Vande More  
wrote:

Usually I just umount before close.  I don't get the need to fsck then.


Does this mean you observe the same behaviour?  I.e. a geli-backed
file system mounted and listed in the fstab is not properly
unmounted at shutdown?



You could add the umount command to /etc/rc.shutdown.local
so the system would automatically umount the partition, even
if you reboot.



It is my understanding that file systems listed in the
/etc/fstab file are unmounted at system shutdown.  Is this
correct?

If not, that would be a pretty big WTF?, if you ask me.



___
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: geli disk marked as dirty on normal shutdown/reboot

2009-08-31 Thread Polytropon
On Mon, 31 Aug 2009 21:22:14 -0500, Adam Vande More  
wrote:
> Usually I just umount before close.  I don't get the need to fsck then.

You could add the umount command to /etc/rc.shutdown.local
so the system would automatically umount the partition, even
if you reboot.


-- 
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: geli disk marked as dirty on normal shutdown/reboot

2009-08-31 Thread Adam Vande More
On Mon, Aug 31, 2009 at 8:05 PM, Vinny <
vinny-mail-01+f.questions20090...@palaceofretention.ca
> wrote:

> Hi List,
>
> # uname -a
> FreeBSD the.palaceofretention.ca 7.1-RELEASE-p6 FreeBSD 7.1-RELEASE-p6 #0:
> Tue Jun  9 16:26:47 UTC 2009 
> r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
>  i386
>
> I have a geli backed ufs file system:
>
> ===fstab===
> # ad14.eli esata
> /dev/ufs/E1TB   /edisks/esata0   ufs rw,noauto2   2
>
> I use a passphrase to attach it:
>
> # geli attach ad14
> Enter passphrase: **
>
> The provider shows up as ad14.eli as expected.  The file system
> on it has a label of E1TB (as seen above).
>
> The command:
>
> # mount /dev/ufs/E1TB
>
> usually works fine.
>
> The problem is that if I restart the system normally, the
> file system on the provider ad14.eli, when reattached, is
> marked as dirty and I get the usual "operation not permitted"
> error.  I have to run:
>
> # fsck -t ufs /dev/ad14.eli
>
> before I can mount it again.  This is repeatable and occurs
> for more than just the one geli provider I use in this example.
>
> Am I missing something with respect to properly attaching a
> geli device?  Do I need the '-d' option to detach at last
> close?
>
> Thanks for any help.
> Vinny
> ___
> 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"
>

Usually I just umount before close.  I don't get the need to fsck then.

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