QuicksearchDisclaimerThe individual owning this blog works for Oracle in Germany. The opinions expressed here are his own, are not necessarily reviewed in advance by anyone but the individual author, and neither Oracle nor any other party necessarily agrees with them.
|
-fTuesday, September 20. 2011Comments
Display comments as
(Linear | Threaded)
The problem is that you run into the so-called Dunning-Kruger effect, wherein people think they're more knowledgable than they really are.
Take, for example, this recent thread on zfs-discuss: http://opensolaris.org/jive/thread.jspa?threadID=141753&tstart=0 The admin corrupted his pool by using the -f flag on the zpool add command and then reformatted the disk in order to attempt to remove it from the pool. To his credit, he did try the non-force version of the add command first but, to his detriment, he didn't read and understand the warning text that was displayed to him. Why? And then, why did he think that repartitioning the drive would let him remove it from the zpool?
This was exactly the discussion i was refering to in the beginning of the blog entry
This is the perfect example of bad usage for the -f switch:
https://github.com/MrMEEE/bumblebee/commit/a047be85247755cdbe0acce6
No ... this is a perfect example of comitting untested code ... because if the commiter would have tested this code, there wouln't have been a system to commit
That's what I like in drdb (n.b. that's the only thing I like in it), the --do-what-I-say switch. It gives you the power of -f with being so long that you can't make it a bad habit.
But one point to defend the -f usage: sometimes you have to use it for day-to-day administration because of buggy software. I remember the times of my first ufs to zfs root FS migrations. You have to use the -f to add the e.g. c0t0d0s0 device to the pool, even if you made sure that the disk was clean. And my all-time favorite: The s3510 space allocation via the telnet GUI. If you wanted to create a new LUN on free space, it came up with all kinds of threads and warnings. Then one day, I wanted to create a LUN in free space between two mapped LUNs and got the usual warnings and accepted them as usual. This was the time I should have respected that warning but wasn't even considering it because you get it every time. No intention to defend -f if you don't need it, but sometimes you are forced to use -f
I am extremely careful when using -f, but unfortunately Solaris itself has a certain share of commands that work weird or inconsistent when used without -f.
Why do I have to say -f to make samfsck actually perform an fsck instead of just a report? Especially in contrast to the ufs fsck which requires -n to NOT perform a (repairing) fsck. Why do I have to say -f to remove the last disk from a metaset? When I remove all other disks (without -f), I am probably disbanding or rebuilding the whole metaset. Why require a special option just for the last disk? ... |
+1The LKSF bookThe book with the consolidated Less known Solaris Tutorials is available for download here
Web 2.0Contact
Networking xing.com My photos CommentsMon, 21.05.2012 04:44
Hi Greg,
With regards to IO
PS I have seen terrible result
s using a 60GB SATA2 SSD with
USB2.0 - USB2 really cho [...]
about ZFS Dedup Internals
Sat, 19.05.2012 09:50
There is no impact to boot/imp
ort times, as the DDT is loade
d as needed ... so the pool is
imported as fast as wit [...]
about Tracks
Tue, 15.05.2012 19:46
Very nice, I like the way the
eye is taken right into the pi
cture. Did you use any filter
s not to make the green [...]
Buttons![]() This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Germany License
![]() ![]() ![]() Blog Administration |
Tracked: Sep 29, 16:41