Re: [OpenIndiana-discuss] How to manage a send over ssh

2017-03-23 Thread Geoff Nordli
On 2017-03-23 05:35 PM, jason matthews wrote: On 3/23/17 4:49 PM, Timothy Coalson wrote: When you are done, your hash should look something like this: jason:$2a$16$2ynmKaAAnKZYWLF8umslZeHjkVIX6iDLsx345k59rVkBF/ 8zWdCqO:17248:: If someone can crack this hash I will buy you a beer.

Re: [OpenIndiana-discuss] import of zpools not exported

2017-03-23 Thread Bob Friesenhahn
On Thu, 23 Mar 2017, Harry Putnam wrote: Is there a way to import zpools that I forgot to export before shutdown and fresh install. Or will it be best to mount one of the mirrored discs from old install somewhere and just rsync stuff to new zfs fs. Just add the -f option (zpool import -f

Re: [OpenIndiana-discuss] How to manage a send over ssh

2017-03-23 Thread jason matthews
On 3/23/17 4:49 PM, Timothy Coalson wrote: When you are done, your hash should look something like this: jason:$2a$16$2ynmKaAAnKZYWLF8umslZeHjkVIX6iDLsx345k59rVkBF/ 8zWdCqO:17248:: If someone can crack this hash I will buy you a beer. There's some logic to why the shadow file isn't

[OpenIndiana-discuss] import of zpools not exported

2017-03-23 Thread Harry Putnam
Is there a way to import zpools that I forgot to export before shutdown and fresh install. Or will it be best to mount one of the mirrored discs from old install somewhere and just rsync stuff to new zfs fs. No need in this case of worry about snapshots and such plus there is not much data

Re: [OpenIndiana-discuss] How to manage a send over ssh

2017-03-23 Thread Timothy Coalson
On Thu, Mar 23, 2017 at 6:19 PM, jason matthews wrote: > > > On 3/23/17 2:56 PM, Timothy Coalson wrote: > >> The main advantage with this way is that you don't leave root ssh exposed >> for people to try to break into, and the special user for receiving can't >> get higher

Re: [OpenIndiana-discuss] How to manage a send over ssh

2017-03-23 Thread jason matthews
On 3/23/17 4:19 PM, jason matthews wrote: 2a crypt_bsdf.so.1 rounds=16 this line should actually as: 2a crypt_bsdf.so.1 20 the rounds=xx is apparently just the sha libs. oh, and you may have to completely erase your hash /etc/shadow for an existing user and then reset the password with

Re: [OpenIndiana-discuss] How to manage a send over ssh

2017-03-23 Thread jason matthews
On 3/23/17 2:56 PM, Timothy Coalson wrote: The main advantage with this way is that you don't leave root ssh exposed for people to try to break into, and the special user for receiving can't get higher privileges for anything other than "zfs". With the notable exception that your

Re: [OpenIndiana-discuss] How to manage a send over ssh

2017-03-23 Thread Timothy Coalson
I did this a different way a while ago to set up a backup script (probably the old way you mention) - I made a new user solely for the purpose of receiving (rather than enabling root login), and assigned the "ZFS File System Management" profile to it (probably with the gui tool for users, a long

Re: [OpenIndiana-discuss] How to manage a send over ssh

2017-03-23 Thread Harry Putnam
Thank you both for the techniques. I think it used to take a few more steps to make it possible to ssh to root. Last time I did that it involved editing a pam file /etc/user_attr. Maybe more but that was a good while ago. I see its been made simpler. Or maybe I was all wet back then too.

Re: [OpenIndiana-discuss] How to manage a send over ssh

2017-03-23 Thread jason matthews
On 3/23/17 11:24 AM, Geoff Nordli wrote: Hi Harry. A couple of different options: 1) give your account zfs permissions (tank is the pool) zfs allow -s @adminrole clone,create,destroy,mount,promote,quota,receive,rename,reservation,rollback,send,snapshot,userprop tank zfs allow harryp

Re: [OpenIndiana-discuss] How to manage a send over ssh

2017-03-23 Thread Geoff Nordli
On 2017-03-23 11:11 AM, Harry Putnam wrote: This is my first actual usage of send/receive. I see the examples given here: https://docs.oracle.com/cd/E18752_01/html/819-5461/gbchx.html#gbinw host1# zfs send tank/dana@snap1 | ssh host2 zfs recv newtank/dana Note the `#' sign .. so

[OpenIndiana-discuss] How to manage a send over ssh

2017-03-23 Thread Harry Putnam
This is my first actual usage of send/receive. I see the examples given here: https://docs.oracle.com/cd/E18752_01/html/819-5461/gbchx.html#gbinw host1# zfs send tank/dana@snap1 | ssh host2 zfs recv newtank/dana Note the `#' sign .. so root is sending, however in all of my installs,

Re: [OpenIndiana-discuss] ways to move from sliced rpool to gpt/EFI rpool

2017-03-23 Thread Nikola M
On 03/23/17 05:32 PM, Harry Putnam wrote: Nikola M writes: On 03/22/17 02:21 PM, Carsten Grzemba wrote: Is there a way to migrate a sliced (mirrored) rpool on disks with msdos partition table to gpt partioned disks (EFI lable) with loader? Yes, you fully reformat one

Re: [OpenIndiana-discuss] ways to move from sliced rpool to gpt/EFI rpool

2017-03-23 Thread Harry Putnam
Nikola M writes: > On 03/22/17 02:21 PM, Carsten Grzemba wrote: >> Is there a way to migrate a sliced (mirrored) rpool on disks with >> msdos partition table to gpt partioned disks (EFI lable) >> with loader? > > Yes, you fully reformat one drive and do fresh install on it,

Re: [OpenIndiana-discuss] Not what I expected updating from 151_9 to latest hipster

2017-03-23 Thread Harry Putnam
Nikola M writes: > On 03/22/17 07:40 PM, Harry Putnam wrote: >> So, I've ordered 2 new 160 gb sata wd diskcs ($16 per disc) to avoid >> possible problems with boot loader mayhem using my current discs. And >> also since I was warned off using IDE which my current discs are.

Re: [OpenIndiana-discuss] Not what I expected updating from 151_9 to latest hipster

2017-03-23 Thread Harry Putnam
Nikola M writes: > On 03/23/17 01:37 AM, Harry Putnam wrote: >> I was hoping to keep it kind of simple and just try to mirror rpool >> with a pair of smallish discs. So rpool will just be Siamese twins. >> >> Since the discs are 160 GB which will a good bit more than rpool

Re: [OpenIndiana-discuss] Not what I expected updating from 151_9 to latest hipster

2017-03-23 Thread Harry Putnam
Alexander Pyhalov writes: > On 03/23/17 03:37 AM, Harry Putnam wrote: > >> I was hoping to keep it kind of simple and just try to mirror rpool >> with a pair of smallish discs. So rpool will just be Siamese twins. >> > > If you do a clean install, installer can do it for you. Nice

Re: [OpenIndiana-discuss] ways to move from sliced rpool to gpt/EFI rpool

2017-03-23 Thread Carsten Grzemba
On 23.03.17 11:24, Nikola M wrote: > > On 03/23/17 11:18 AM, Alexander Pyhalov wrote: > >On 03/22/17 04:21 PM, Carsten Grzemba wrote: > >>Is there a way to migrate a sliced (mirrored) rpool on disks with msdos > >>partition table to gpt partioned disks (EFI lable) >

Re: [OpenIndiana-discuss] ways to move from sliced rpool to gpt/EFI rpool

2017-03-23 Thread Nikola M
On 03/23/17 11:18 AM, Alexander Pyhalov wrote: On 03/22/17 04:21 PM, Carsten Grzemba wrote: Is there a way to migrate a sliced (mirrored) rpool on disks with msdos partition table to gpt partioned disks (EFI lable) with loader? You can remove one part of the mirror, attach it as whole disk

Re: [OpenIndiana-discuss] ways to move from sliced rpool to gpt/EFI rpool

2017-03-23 Thread Alexander Pyhalov
On 03/22/17 04:21 PM, Carsten Grzemba wrote: Is there a way to migrate a sliced (mirrored) rpool on disks with msdos partition table to gpt partioned disks (EFI lable) with loader? You can remove one part of the mirror, attach it as whole disk to mirror and then do it for the second part.

Re: [OpenIndiana-discuss] ways to move from sliced rpool to gpt/EFI rpool

2017-03-23 Thread Nikola M
On 03/22/17 02:21 PM, Carsten Grzemba wrote: Is there a way to migrate a sliced (mirrored) rpool on disks with msdos partition table to gpt partioned disks (EFI lable) with loader? Yes, you fully reformat one drive and do fresh install on it, then vtoc + zpool attach other drives to it.

Re: [OpenIndiana-discuss] Not what I expected updating from 151_9 to latest hipster

2017-03-23 Thread Nikola M
On 03/22/17 07:40 PM, Harry Putnam wrote: So, I've ordered 2 new 160 gb sata wd diskcs ($16 per disc) to avoid possible problems with boot loader mayhem using my current discs. And also since I was warned off using IDE which my current discs are. Also notice that SATA disks working in actual

Re: [OpenIndiana-discuss] Not what I expected updating from 151_9 to latest hipster

2017-03-23 Thread Alexander Pyhalov
On 03/23/17 03:37 AM, Harry Putnam wrote: I was hoping to keep it kind of simple and just try to mirror rpool with a pair of smallish discs. So rpool will just be Siamese twins. If you do a clean install, installer can do it for you. -- Best regards, Alexander Pyhalov, system administrator