Re: [zfs-discuss] ZFS flar image.

2009-09-25 Thread Peter Pickford
Hi Peter,

Do you have any notes on what you did to restore a sendfile to an existing BE?

I'm interested in creating a 'golden image' and restring this into a
new BE on a  running system as part of a hardening project.

Thanks

Peter

2009/9/14 Peter Karlsson :
> Hi Greg,
>
> We did a hack on those lines when we installed 100 Ultra 27s that was used
> during J1, but we automated the process by using AI to install a bootstrap
> image that had a SMF service that pulled over the zfs sendfile, create a new
> BE and received the sendfile to the new BE. Work fairly OK, there where a
> few things that we to run a few scripts to fix, but at large it was
> smooth I really need to get that blog entry done :)
>
> /peter
>
> Greg Mason wrote:
>>
>> As an alternative, I've been taking a snapshot of rpool on the golden
>> system, sending it to a file, and creating a boot environment from the
>> archived snapshot on target systems. After fiddling with the snapshots a
>> little, I then either appropriately anonymize the system or provide it with
>> its identity. When it boots up, it's ready to go.
>>
>> The only downfall to my method is that I still have to run the full
>> OpenSolaris installer, and I can't exclude anything in the archive.
>>
>> Essentially, it's a poor man's flash archive.
>>
>> -Greg
>>
>> cindy.swearin...@sun.com wrote:
>>>
>>> Hi RB,
>>>
>>> We have a draft of the ZFS/flar image support here:
>>>
>>> http://opensolaris.org/os/community/zfs/boot/flash/
>>>
>>> Make sure you review the Solaris OS requirements.
>>>
>>> Thanks,
>>>
>>> Cindy
>>>
>>> On 09/14/09 11:45, RB wrote:

 Is it possible to create flar image of ZFS root filesystem to install it
 to other macines?
>>>
>>> ___
>>> zfs-discuss mailing list
>>> zfs-discuss@opensolaris.org
>>> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>>>
>>>
>> ___
>> zfs-discuss mailing list
>> zfs-discuss@opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>
> ___
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS flar image.

2009-09-25 Thread Lori Alt

On 09/25/09 09:59, RB wrote:
I tired to install the flar image using the method explained in this link 


http://opensolaris.org/os/community/zfs/boot/flash/


I installed 119534-15 patch on the box whose flar image was required. Then created a flar image using 


flarcreate -n zfs_flar /flar_dir/zfs_flar.flar

I then  installed 124630-26 patch on the miniroot of Solaris 05/09 (update 7) net install image. This was done by unpacking the miniroot using root_archive, patching the miniroot using patchadd and then repacking it back. 


Profile for the jumpstart :

install_type flash_install
archive_location nfs ://zfs_flar.flar
partitioning explicit

But the jumpstart fails with the following error:

Executing SolStart preinstall phase...
Executing begin script "install_begin"...
Begin script install_begin execution completed.

Processing profile
- Opening Flash archive

ERROR: Could not mount ://zfs_flar.flar
ERROR: Flash installation failed
Solaris installation program exited.


Any clues what could be wrong? 

  
I don't know. There's all kinds of reasons a nfs mount might fail.  One 
think you could is to boot the system from the install image and then 
escape out of the install after going through all the configuration 
steps (i.e. the questions about name server, routers, etc.).  Then try 
to do an explicit NFS mount of the flar location (onto /mnt or a 
temporary mount point created in /tmp).  If it fails, that may be the 
source of your problem.


lori

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS flar image.

2009-09-25 Thread RB
I tired to install the flar image using the method explained in this link 

http://opensolaris.org/os/community/zfs/boot/flash/


I installed 119534-15 patch on the box whose flar image was required. Then 
created a flar image using 

flarcreate -n zfs_flar /flar_dir/zfs_flar.flar

I then  installed 124630-26 patch on the miniroot of Solaris 05/09 (update 7) 
net install image. This was done by unpacking the miniroot using root_archive, 
patching the miniroot using patchadd and then repacking it back. 

Profile for the jumpstart :

install_type flash_install
archive_location nfs ://zfs_flar.flar
partitioning explicit

But the jumpstart fails with the following error:

Executing SolStart preinstall phase...
Executing begin script "install_begin"...
Begin script install_begin execution completed.

Processing profile
- Opening Flash archive

ERROR: Could not mount ://zfs_flar.flar
ERROR: Flash installation failed
Solaris installation program exited.


Any clues what could be wrong? 

Thanks.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS flar image.

2009-09-14 Thread Peter Karlsson

Hi Greg,

We did a hack on those lines when we installed 100 Ultra 27s that was 
used during J1, but we automated the process by using AI to install a 
bootstrap image that had a SMF service that pulled over the zfs 
sendfile, create a new BE and received the sendfile to the new BE. Work 
fairly OK, there where a few things that we to run a few scripts to fix, 
but at large it was smooth I really need to get that blog entry done :)


/peter

Greg Mason wrote:
As an alternative, I've been taking a snapshot of rpool on the golden 
system, sending it to a file, and creating a boot environment from the 
archived snapshot on target systems. After fiddling with the snapshots 
a little, I then either appropriately anonymize the system or provide 
it with its identity. When it boots up, it's ready to go.


The only downfall to my method is that I still have to run the full 
OpenSolaris installer, and I can't exclude anything in the archive.


Essentially, it's a poor man's flash archive.

-Greg

cindy.swearin...@sun.com wrote:

Hi RB,

We have a draft of the ZFS/flar image support here:

http://opensolaris.org/os/community/zfs/boot/flash/

Make sure you review the Solaris OS requirements.

Thanks,

Cindy

On 09/14/09 11:45, RB wrote:
Is it possible to create flar image of ZFS root filesystem to 
install it to other macines?

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss



___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS flar image.

2009-09-14 Thread Greg Mason
As an alternative, I've been taking a snapshot of rpool on the golden 
system, sending it to a file, and creating a boot environment from the 
archived snapshot on target systems. After fiddling with the snapshots a 
little, I then either appropriately anonymize the system or provide it 
with its identity. When it boots up, it's ready to go.


The only downfall to my method is that I still have to run the full 
OpenSolaris installer, and I can't exclude anything in the archive.


Essentially, it's a poor man's flash archive.

-Greg

cindy.swearin...@sun.com wrote:

Hi RB,

We have a draft of the ZFS/flar image support here:

http://opensolaris.org/os/community/zfs/boot/flash/

Make sure you review the Solaris OS requirements.

Thanks,

Cindy

On 09/14/09 11:45, RB wrote:
Is it possible to create flar image of ZFS root filesystem to install 
it to other macines?

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss



___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS flar image.

2009-09-14 Thread Cindy . Swearingen

Hi RB,

We have a draft of the ZFS/flar image support here:

http://opensolaris.org/os/community/zfs/boot/flash/

Make sure you review the Solaris OS requirements.

Thanks,

Cindy

On 09/14/09 11:45, RB wrote:

Is it possible to create flar image of ZFS root filesystem to install it to 
other macines?

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS flar image.

2009-09-14 Thread Enda O'Connor

RB wrote:

Is it possible to create flar image of ZFS root filesystem to install it to 
other macines?


yes but it needs solaris update 7 or later to install a zfs flar
see

http://www.opensolaris.org/os/community/zfs/boot/flash/;jsessionid=AB24EEFB6955AD505F19A152CDEC84A8

isn't supported on opensolaris by the way.

Enda
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] ZFS flar image.

2009-09-14 Thread RB
Is it possible to create flar image of ZFS root filesystem to install it to 
other macines?
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss