Re: "bioctl -d" before shutdown

2019-02-26 Thread Roderick



On Tue, 26 Feb 2019, cho...@jtan.com wrote:


[...] What is anyone afraid might happen after that(*)?


You are right, there should be nothing to fear, that is why
answered Stefan.

I though, as obvoiusly also Stefan, it should be good to do "bioctl -d".


[*] RAID and other hardware magic notwithstanding but if you're using
that then you know what you're doing and if you don't then you have my
ridicule.


You got it. The "magic" and my imperfect knowledge plays a role.
Life would be realy hard if I were so wise like you.


Give your soon-to-be-ex employer my contact details.


You have a good employer that likes wise people like you.

Rodrigo



Re: "bioctl -d" before shutdown

2019-02-25 Thread chohag
Roderick writes:
> 
> I suspect, umount (that always syncs) is enough and umount
> happens always at shutdown.

How do people cope with "I suspect"? "I suspect" would scare the crap
out of me. Did it never occur that it's possible to _know_?

Not unmounting is dangerous because there are in-memory
buffers. Unmounting a filesystem syncs those buffers _to the physical
medium_. What is anyone afraid might happen after that(*)?

I'm a million miles from a kernel hacker but sheesh! It's not bloody
rocket science! Understand your tools before you use them.

Matthew

[*] RAID and other hardware magic notwithstanding but if you're using
that then you know what you're doing and if you don't then you have my
ridicule. Give your soon-to-be-ex employer my contact details.



Re: "bioctl -d" before shutdown

2019-02-25 Thread Roderick



I suspect, umount (that always syncs) is enough and umount
happens always at shutdown.

Rodrigo

On Mon, 25 Feb 2019, Kapfhammer, Stefan wrote:


I have the umount and bioctl -d
commands in /etc/rc.shutdown,
in case I forget to do it manually.

If you don't do that proberly, you will need
to fsck the device, next time you attach it.

-Stefan




 Origineel bericht
Van: Roderick
Verzonden: zondag 24 februari 2019 21:53
Aan: misc@openbsd.org
Onderwerp: "bioctl -d" before shutdown


Excuseme that I ask instead of inspecting rc files. :)

I do manually

bioctl -c C -l /dev/XXX softraid0

and mount the resulting device.

Should I manually unmount and do "bioctl -d " before shutdown?

Or just shutdown? The umount will sure be done, but also the bioctl -d?

Thanks
Rodrigo






Re: "bioctl -d" before shutdown

2019-02-25 Thread Kapfhammer, Stefan
‎Hi,

I have the umount and bioctl -d
commands in /etc/rc.shutdown,
in case I forget to do it manually.

If you don't do that proberly, you will need
to fsck the device, next time you attach it.

-Stefan



‎
  Origineel bericht
Van: Roderick
Verzonden: zondag 24 februari 2019 21:53
Aan: misc@openbsd.org
Onderwerp: "bioctl -d" before shutdown


Excuseme that I ask instead of inspecting rc files. :)

I do manually

bioctl -c C -l /dev/XXX softraid0

and mount the resulting device.

Should I manually unmount and do "bioctl -d " before shutdown?

Or just shutdown? The umount will sure be done, but also the bioctl -d?

Thanks
Rodrigo