[OpenIndiana-discuss] OpenIndiana-discuss Digest, Vol 27, Issue 17

DavidHalko davidhalko at gmail.com
Wed Oct 10 05:49:51 UTC 2012



Sent from my iPhone

On Oct 9, 2012, at 11:36 AM, openindiana-discuss-request at openindiana.org wrote:

> Send OpenIndiana-discuss mailing list submissions to
>    openindiana-discuss at openindiana.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    http://openindiana.org/mailman/listinfo/openindiana-discuss
> or, via email, send a message with subject or body 'help' to
>    openindiana-discuss-request at openindiana.org
> 
> You can reach the person managing the list at
>    openindiana-discuss-owner at openindiana.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of OpenIndiana-discuss digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: Replacing both disks in a mirror set (Andrej Javor?ek)
>   2. Re: [developer] Preliminary Download link: Illumos based
>      MartUX_OpenIndiana_Edition for SPARC LiveDVD (without installer)
>      (Jonathan Adams)
>   3. Re: Replacing both disks in a mirror set (Jim Klimov)
>   4. rebuilding man page catalog (Boris Epstein)
>   5. Re: rebuilding man page catalog (Michael Stapleton)
>   6. Re: rebuilding man page catalog (Michael Schuster)
>   7. Re: rebuilding man page catalog (Boris Epstein)
>   8. Re: rebuilding man page catalog (Boris Epstein)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 9 Oct 2012 11:01:31 +0200
> From: Andrej Javor?ek <drejc at ntf.uni-lj.si>
> To: Discussion list for OpenIndiana
>    <openindiana-discuss at openindiana.org>
> Subject: Re: [OpenIndiana-discuss] Replacing both disks in a mirror
>    set
> Message-ID:
>    <CALbnqNNhqs9d0X4z4x8Eka2=mkHGMYk_Wj=XL9J6m7WDXuAA7w at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> Martin I hope you succeeded to get your data back.
> I have been beaten by ZFS couple of times before (but been beaten deadlier
> by Linux MD an LVM)
> - in OI 147 zpool import with many snapshots and dedup was too slow for
> production. Had to destroy and recreate pool from backup after more than a
> day of waiting to import after planned reboot.
> - OpenSolaris killed my rpool on SSD in MacBook (after a day of fighting
> with LiveCD importing, kernel panics I reinstalled everything).
> 
> Now the main question!
> If I offline disk (zpool offline MYPOOL <disk>), will that disk be usable
> as a single disk for import?!
> 
> Regards Andrej
> 
> On Tue, Oct 9, 2012 at 1:07 AM, Martin Bochnig <martin at martux.org> wrote:
> 
>> Marilio,
>> 
>> 
>> at first a reminder: never ever detach a disk before you have a third
>> disk that already completed resilvering.
>> The term "detach" is misleading, because it detaches the disk from the
>> pool. Afterwards you cannot access the disk's previous contents
>> anymore. Your "detached" half of a mirror can neither be imported, nor
>> mounted and also not even rescued (unlike a disk with a "zpool
>> destroy"ed disk). If I ever mentally recover from a zfs encryption
>> caused 2TB (or 3 years!) data loss, then I may offer an implementation
>> with less ambigous naming to Illumos.
>> 
>> 
>> "zpool detach" suggests, that you could still use this disk as a
>> reserve backup copy of the pool you were detaching it from. And that
>> you could simply "zpool attach" it again, in case the other disk would
>> die.
>> 
>> Unfortunately, this is not the case.
>> Well, you can of course attach it again. Like any new or empty disk.
>> But only if and only if you have enough replicas, and that's not what
>> one wanted if one fell in this misunderstanding trap.
>> And there are no warnings in the zpool/zfs man pages.
>> 
>> 
>> What you want:
>> 
>> zpool replace <poolname> <vdev to be replaced> <new vdev>
>> But last weekend I lost 7 years of trust that I had in ZFS.
>> Because Oracle Solaris 11/11 x86 with an encrypted and gzip-9
>> compressed mirror cannot be accessed anymore after VirtualBox forced
>> me to remove prower from the host machine.
>> Since then a 1:1 mirror of 2TB disks cannot be mounted anymore. It
>> always ends in a kernel panic due to a pf in
>> aes:aes_decrypt_contiguous_blocks.
>> 
>> Well: TITANIC IS UNSINKABLE!
>> The problem is, that scrub doesn't find an error, and so has nothing
>> to auto-repair.
>> Even zpool attach sucessfully completes resilver, but the newly
>> resilvered disk contains the same error. Be aware that ZFS is not free
>> of bugs.
>> If it stays like that (I contacted some folks for help), then my trust
>> in ZFS has destroyed, VAPORIZED 3 years of my work and life.
>> 
>> So, back to your question: To be as cautious as possible, what I would
>> do in your case:
>> 
>> 
>> 0.)  zpool offline <poolname> <vdev you want to replace>
>> 
>> 1.) Physically remove this disc (important, because I have seen cases,
>> where zfs forgets that you offlined a vdev after a reboot)
>> 
>> 2.) AFTER (!IMPORTANT!) you physically disconnected the disc to be
>> replaced, "zpool detach it" or alternatively take "zpool replace
>> <poolname>
>> <oldvdev_that_you_disconnected_BEFOREinordertokeepitasbafailsafebackup!>
>> <newvdev>
>> 
>> 3.) Depending on if you did detach or replace in step 2.), "zpool
>> attach <poolname> <Firstvdevofthispool> <newvdev>  or ommit this step,
>> if you took "zpool replace" in step 2.)
>> 
>> 
>> NEVER TRUST ZFS TOO MUCH.
>> What I do from now on: For each 1:1 mirror that I have I will take a
>> third disk, resilver it, offline and physically disconnect it, and
>> store it at a secure place.
>> 
>> Because if you have this much bad luck as I had last weekend, ZFS
>> replicates the data corruption, too.
>> And then you could have 1000 discs mirrored, they would all contain
>> the corruption.
>> For this reason, you are only on the safe side, if you physically
>> disconnect a third copy!
>> 
>> 
>> 
>> Good luck!
>> %martin
>> 
>> 
>> 
>> 
>> 
>> 
>> On 10/8/12, Maurilio Longo <maurilio.longo at libero.it> wrote:
>>> Dan Swartzendruber wrote:
>>>> I'm not understanding your problem.  If you add a 3rd temporary disk,
>>>> wait
>>>> for it to resilver, then replace c1t5d0, let the new disk resilver, then
>>>> detach the temporary disk, you will never have less than 2 up to date
>>>> disks
>>>> in the mirror. What am I missing?
>>>> 
>>> 
>>> Dan,
>>> 
>>> you're right, I was trying to find a way to "move" the new disk in the
>>> failing
>>> disk bay instead of simply replacing the failing one :)
>>> 
>>> Thanks for the advice!
>>> 
>>> Maurilio.
>>> 
>>> --
>>> __________
>>> |  |  | |__| Maurilio Longo
>>> |_|_|_|____|
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> OpenIndiana-discuss mailing list
>>> OpenIndiana-discuss at openindiana.org
>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>> 
>> 
>> 
>> --
>> regards
>> 
>> %martin bochnig
>>  http://wiki.openindiana.org/oi/MartUX_OpenIndiana+oi_151a+SPARC+LiveDVD
>>    http://www.youtube.com/user/MartUXopensolaris
>> 
>> http://www.facebook.com/pages/MartUX_SPARC-OpenIndiana/357912020962940
>>        https://twitter.com/MartinBochnig
>>          http://www.martux.org (new page not yet online, but pretty soon)
>> 
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 9 Oct 2012 11:01:34 +0100
> From: Jonathan Adams <t12nslookup at gmail.com>
> To: Discussion list for OpenIndiana
>    <openindiana-discuss at openindiana.org>
> Subject: Re: [OpenIndiana-discuss] [developer] Preliminary Download
>    link: Illumos based MartUX_OpenIndiana_Edition for SPARC LiveDVD
>    (without installer)
> Message-ID:
>    <CAKr4wiQ-3tH6A3ZxDqDnwyaffhDD1s5Ka0kOMXXMMf59_9Wngg at mail.gmail.com>
> Content-Type: text/plain; charset=windows-1252
> 
> https://docs.google.com/open?id=0B6o_jmGQm0dWeW45SjhfbklFVlE
> 
> https://docs.google.com/open?id=0B6o_jmGQm0dWSGV6UGE2RExnUU0
> 
> it was compiled a while ago ... hopefully it will still work ... I've
> not tried again since.
> 
> we use SunRays and win2k8 servers with RDP for our accounts system
> (running in KVM on Illumos :)) ) so there wasn't much need to
> implement it in the end.
> 
> Jon
> 
> On 8 October 2012 18:05, Alex Smith (K4RNT) <shadowhunter at gmail.com> wrote:
>> True, but I'm talking about the native SVR4 packages for NoMachine NX
>> on SPARC Solaris, already bundles for Solaris 8-10. It may work with
>> minimal hacking on OpenIndiana for SPARC.
>> 
>> Jonathan, could you maybe give me some pointers on how you compiled it
>> from source? I was trying to read the documentation that came with the
>> source, and it was so confusing that I wasn't able to finish the task.
>> 
>> I'm a big fan of NoMachine NX, and would *love* to see it in action on
>> the Solaris and illumos platforms! I already filed an RFE a while ago
>> when the illumos project was originally forked, but I haven't any
>> activity since.
>> 
>> Cheers!
>> 
>> On Sun, Oct 7, 2012 at 12:53 PM, Jonathan Adams <t12nslookup at gmail.com> wrote:
>>> On 5 October 2012 17:26, Alex Smith (K4RNT) <shadowhunter at gmail.com> wrote:
>>>> If SVR4 packages work on the current OpenIndiana, you may want to look
>>>> into NoMachine NX instead. That would probably be your easiest and
>>>> best solution for what you're trying to do.
>>>> 
>>>> www.nomachine.com
>>> 
>>> I got this to work relatively well on Solaris 10 (x86) and early
>>> OpenIndiana (x86) when compiling from source ... but it took a fair
>>> amount of "hacking" to get it to use system libraries where they
>>> existed ...
>>> 
>>> there are however no Solaris x86 clients.
>>> 
>>> Jon
>>> 
>>> _______________________________________________
>>> OpenIndiana-discuss mailing list
>>> OpenIndiana-discuss at openindiana.org
>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>> 
>> 
>> 
>> --
>> " ' With the first link, the chain is forged. The first speech
>> censured, the first thought forbidden, the first freedom denied,
>> chains us all irrevocably.' Those words were uttered by Judge Aaron
>> Satie as wisdom and warning... The first time any man's freedom is
>> trodden on we?re all damaged." - Jean-Luc Picard, quoting Judge Aaron
>> Satie, Star Trek: TNG episode "The Drumhead"
>> - Alex Smith (K4RNT)
>> - Dulles Technology Corridor (Chantilly/Ashburn/Dulles), Virginia USA
>> 
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Tue, 09 Oct 2012 14:13:32 +0400
> From: Jim Klimov <jimklimov at cos.ru>
> To: Discussion list for OpenIndiana
>    <openindiana-discuss at openindiana.org>
> Subject: Re: [OpenIndiana-discuss] Replacing both disks in a mirror
>    set
> Message-ID: <5073F8CC.9050103 at cos.ru>
> Content-Type: text/plain; charset=windows-1252; format=flowed
> 
> 2012-10-09 13:01, Andrej Javor?ek wrote:
>> Martin I hope you succeeded to get your data back.
> +1
> 
>> I have been beaten by ZFS couple of times before
> 
> +2 ;)
> 
>> Now the main question!
>> If I offline disk (zpool offline MYPOOL <disk>), will that disk be usable
>> as a single disk for import?!
> 
> I do understand how people want to make things simpler, but
> how does it not suffice to create a stand-alone separate pool
> on this removable disk or the disk migrating onto another host,
> complete with "installgrub" and the appropriate zpool attributes
> like "bootfs" (perhaps starting with "zpool split" - didn't use
> that yet)?
> 
> In terms of keeping backup in a table, sending some incremental
> snapshots should be safer than letting a mirror resync its
> possible new errors (like those Martin had) completely.
> With snapshots on a separate pool you can rollback easier than
> on an identical clone of the same corrupted pool.
> 
> You are even "guaranteed" to have enough space to do this, since
> you intended to use a sufficiently-sized disk as a mirror half
> anyway.
> 
> //Jim
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Tue, 9 Oct 2012 11:18:43 -0400
> From: Boris Epstein <borepstein at gmail.com>
> To: Discussion list for OpenIndiana
>    <openindiana-discuss at openindiana.org>
> Subject: [OpenIndiana-discuss] rebuilding man page catalog
> Message-ID:
>    <CADeF1XHoXzK3My90=A-xZEDkA0qwKe99AHak20+HZ5ZhLrXZRA at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hello listmates,
> 
> If may man command does not display some of the pages including those
> clearly present under /usr/share/man - how do I fix that? I remember there
> was a command that rebuilt the catalog, I just can't recall what it was.
> 
> Thanks.
> 
> Boris.
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Tue, 09 Oct 2012 11:29:08 -0400
> From: Michael Stapleton <michael.stapleton at techsologic.com>
> To: Discussion list for OpenIndiana
>    <openindiana-discuss at openindiana.org>
> Subject: Re: [OpenIndiana-discuss] rebuilding man page catalog
> Message-ID: <1349796548.12622.3.camel at mslaptop>
> Content-Type: text/plain; charset="UTF-8"
> 
> catman -w 
> 
> create the windex database that  is
>                         used  by whatis(1) and the man(1) -f and
>                         -k options.  No manual  reformatting  is
>                         done.
> 
> Mike
> 
>> Hello listmates,
>> 
>> If may man command does not display some of the pages including those
>> clearly present under /usr/share/man - how do I fix that? I remember there
>> was a command that rebuilt the catalog, I just can't recall what it was.
>> 
>> Thanks.
>> 
>> Boris.
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> 
> 
> 
> ------------------------------
> 
> Message: 6
> Date: Tue, 9 Oct 2012 17:30:59 +0200
> From: Michael Schuster <michaelsprivate at gmail.com>
> To: Discussion list for OpenIndiana
>    <openindiana-discuss at openindiana.org>
> Subject: Re: [OpenIndiana-discuss] rebuilding man page catalog
> Message-ID:
>    <CADqw_gJR0f6dBgr3FVF=ZK6gHvPEDYXHaHaf=EqWLAOS5VXhzw at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> I don't think that was what OP was asking for ...
> 
> Michael
> 
> On Tue, Oct 9, 2012 at 5:29 PM, Michael Stapleton
> <michael.stapleton at techsologic.com> wrote:
>> catman -w
>> 
>> create the windex database that  is
>>                         used  by whatis(1) and the man(1) -f and
>>                         -k options.  No manual  reformatting  is
>>                         done.
>> 
>> Mike
>> 
>>> Hello listmates,
>>> 
>>> If may man command does not display some of the pages including those
>>> clearly present under /usr/share/man - how do I fix that? I remember there
>>> was a command that rebuilt the catalog, I just can't recall what it was.
>>> 
>>> Thanks.
>>> 
>>> Boris.
>>> _______________________________________________
>>> OpenIndiana-discuss mailing list
>>> OpenIndiana-discuss at openindiana.org
>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>> 
>> 
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> 
> 
> -- 
> Michael Schuster
> http://recursiveramblings.wordpress.com/
> 
> 
> 
> ------------------------------
> 
> Message: 7
> Date: Tue, 9 Oct 2012 11:35:48 -0400
> From: Boris Epstein <borepstein at gmail.com>
> To: Discussion list for OpenIndiana
>    <openindiana-discuss at openindiana.org>
> Subject: Re: [OpenIndiana-discuss] rebuilding man page catalog
> Message-ID:
>    <CADeF1XGDVq+MZKb0Dk7nWW8x0YiE_HkqWPGr3A_49PcVRc=Qbg at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Mike,
> 
> Thanks! Just ran
> 
> catman -w
> 
> Unfortunately, that did not seem to do the trick.
> 
> Boris.
> 
> On Tue, Oct 9, 2012 at 11:29 AM, Michael Stapleton <
> michael.stapleton at techsologic.com> wrote:
> 
>> catman -w
>> 
>> create the windex database that  is
>>                         used  by whatis(1) and the man(1) -f and
>>                         -k options.  No manual  reformatting  is
>>                         done.
>> 
>> Mike
>> 
>>> Hello listmates,
>>> 
>>> If may man command does not display some of the pages including those
>>> clearly present under /usr/share/man - how do I fix that? I remember
>> there
>>> was a command that rebuilt the catalog, I just can't recall what it was.
>>> 
>>> Thanks.
>>> 
>>> Boris.
>>> _______________________________________________
>>> OpenIndiana-discuss mailing list
>>> OpenIndiana-discuss at openindiana.org
>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>> 
>> 
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>> 
> 
> 
> ------------------------------
> 
> Message: 8
> Date: Tue, 9 Oct 2012 11:36:52 -0400
> From: Boris Epstein <borepstein at gmail.com>
> To: Discussion list for OpenIndiana
>    <openindiana-discuss at openindiana.org>
> Subject: Re: [OpenIndiana-discuss] rebuilding man page catalog
> Message-ID:
>    <CADeF1XFni-X_V+Oa5GtcG7iDv8PQBWBLWT87+HVwr_y6TitViw at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Why? That was exactly the sort of thing I was asking for.
> 
> The command suggested, catman -w , did not do the trick though.
> 
> Boris.
> 
> On Tue, Oct 9, 2012 at 11:30 AM, Michael Schuster <michaelsprivate at gmail.com
>> wrote:
> 
>> I don't think that was what OP was asking for ...
>> 
>> Michael
>> 
>> On Tue, Oct 9, 2012 at 5:29 PM, Michael Stapleton
>> <michael.stapleton at techsologic.com> wrote:
>>> catman -w
>>> 
>>> create the windex database that  is
>>>                         used  by whatis(1) and the man(1) -f and
>>>                         -k options.  No manual  reformatting  is
>>>                         done.
>>> 
>>> Mike
>>> 
>>>> Hello listmates,
>>>> 
>>>> If may man command does not display some of the pages including those
>>>> clearly present under /usr/share/man - how do I fix that? I remember
>> there
>>>> was a command that rebuilt the catalog, I just can't recall what it was.
>>>> 
>>>> Thanks.
>>>> 
>>>> Boris.
>>>> _______________________________________________
>>>> OpenIndiana-discuss mailing list
>>>> OpenIndiana-discuss at openindiana.org
>>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>> 
>>> 
>>> _______________________________________________
>>> OpenIndiana-discuss mailing list
>>> OpenIndiana-discuss at openindiana.org
>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>> 
>> 
>> 
>> --
>> Michael Schuster
>> http://recursiveramblings.wordpress.com/
>> 
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> 
> End of OpenIndiana-discuss Digest, Vol 27, Issue 17
> ***************************************************



More information about the OpenIndiana-discuss mailing list