Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-15 Thread Dick Davies

On 14/10/06, Darren Dunham [EMAIL PROTECTED] wrote:



 So the warnings I've heard no longer apply?
 If so, that's great. Thanks for all replies.
Umm, which warnings?  The don't import a pool on two hosts at once
definitely still applies.


Sure :)

I meant the reason I'd heard
( at http://solaristhings.blogspot.com/2006/06/zfs-root-on-solaris-part-3.html )
for adding zpool.cache to your failsafe miniroot, since a 'zpool import -f' on
a 'root pool' meant the box wouldn't reboot cleanly.

--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-14 Thread Dick Davies

On 12/10/06, Michael Schuster [EMAIL PROTECTED] wrote:

Ceri Davies wrote:
 On Thu, Oct 12, 2006 at 02:06:15PM +0100, Dick Davies wrote:



 I'd expect:

 zpool import -f

 (see the manpage)
 to probe /dev/dsk/ and rebuild the zpool.cache file,
 but my understanding is that this a) doesn't work yet or b) does
 horrible things to your chances of surviving a reboot [0].



 So how do I import a pool created on a different host for the first
 time?



zpool import [ -f ]

(provided it's not in use *at the same time* by another host)


So the warnings I've heard no longer apply?
If so, that's great. Thanks for all replies.

--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-14 Thread Darren Dunham
   So how do I import a pool created on a different host for the first
   time?
 
  zpool import [ -f ]
 
  (provided it's not in use *at the same time* by another host)
 
 So the warnings I've heard no longer apply?
 If so, that's great. Thanks for all replies.

Umm, which warnings?  The don't import a pool on two hosts at once
definitely still applies.

-- 
Darren Dunham   [EMAIL PROTECTED]
Senior Technical Consultant TAOShttp://www.taos.com/
Got some Dr Pepper?   San Francisco, CA bay area
  This line left intentionally blank to confuse you. 
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-13 Thread Keith Clay
Does it matter if the /dev names of the partitions change (i.e. from / 
dev/dsk/c2t2250CC611005d3s0 to another machine not using sun hba  
drivers with a different/shorter name??)


thanks


keith




If the file does not exist than ZFS will not attempt to open any
pools at boot.  You must issue an explicit 'zpool import' command to
probe the available devices for metadata to re-discover your pools.


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


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-13 Thread Darren Dunham
 Does it matter if the /dev names of the partitions change (i.e. from / 
 dev/dsk/c2t2250CC611005d3s0 to another machine not using sun hba  
 drivers with a different/shorter name??)

It should not.  As long as all the disks are visible and ZFS can read
the labels, it should be able to import the pool.

-- 
Darren Dunham   [EMAIL PROTECTED]
Senior Technical Consultant TAOShttp://www.taos.com/
Got some Dr Pepper?   San Francisco, CA bay area
  This line left intentionally blank to confuse you. 
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Dick Davies

On 12/10/06, Matthew Ahrens [EMAIL PROTECTED] wrote:


FYI, /etc/zfs/zpool.cache just tells us what pools to open when you boot
up.  Everything else (mountpoints, filesystems, etc) is stored in the
pool itself.


Does anyone know of any plans or strategies to remove this dependancy?

--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread James C. McPherson

Dick Davies wrote:

On 12/10/06, Matthew Ahrens [EMAIL PROTECTED] wrote:


FYI, /etc/zfs/zpool.cache just tells us what pools to open when you boot
up.  Everything else (mountpoints, filesystems, etc) is stored in the
pool itself.


Does anyone know of any plans or strategies to remove this dependancy?


What do you suggest in its place?


James C. McPherson
--
Solaris kernel software engineer, system admin and troubleshooter
  http://www.jmcp.homeunix.com/blog
Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Darren J Moffat

James C. McPherson wrote:

Dick Davies wrote:

On 12/10/06, Matthew Ahrens [EMAIL PROTECTED] wrote:


FYI, /etc/zfs/zpool.cache just tells us what pools to open when you boot
up.  Everything else (mountpoints, filesystems, etc) is stored in the
pool itself.


Does anyone know of any plans or strategies to remove this dependancy?


What do you suggest in its place?


Or better yet, exactly what is the problem with having the cache ?

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


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Dick Davies

On 12/10/06, Michael Schuster [EMAIL PROTECTED] wrote:

James C. McPherson wrote:
 Dick Davies wrote:
 On 12/10/06, Matthew Ahrens [EMAIL PROTECTED] wrote:

 FYI, /etc/zfs/zpool.cache just tells us what pools to open when you boot
 up.  Everything else (mountpoints, filesystems, etc) is stored in the
 pool itself.

 Does anyone know of any plans or strategies to remove this dependancy?

 What do you suggest in its place?

and why? what's your objection to the current scheme?


Just the hassle of having to create a cache file in boot archives etc.


--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Ceri Davies
On Wed, Oct 11, 2006 at 11:49:48PM -0700, Matthew Ahrens wrote:
 James McPherson wrote:
 On 10/12/06, Steve Goldberg [EMAIL PROTECTED] wrote:
 Where is the ZFS configuration (zpools, mountpoints, filesystems,
 etc) data stored within Solaris?  Is there something akin to vfstab
 or perhaps a database?
 
 
 Have a look at the contents of /etc/zfs for an in-filesystem artefact
 of zfs. Apart from that, the information required is stored on the
 disk itself.
 
 There is really good documentation on ZFS at the ZFS community
 pages found via http://www.opensolaris.org/os/community/zfs.
 
 FYI, /etc/zfs/zpool.cache just tells us what pools to open when you boot 
 up.  Everything else (mountpoints, filesystems, etc) is stored in the 
 pool itself.

What happens if the file does not exist?  Are the devices searched for
metadata?

Ceri
-- 
That must be wonderful!  I don't understand it at all.
  -- Moliere


pgpKKSlC0EwiG.pgp
Description: PGP signature
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Dick Davies

On 12/10/06, Ceri Davies [EMAIL PROTECTED] wrote:

On Wed, Oct 11, 2006 at 11:49:48PM -0700, Matthew Ahrens wrote:



 FYI, /etc/zfs/zpool.cache just tells us what pools to open when you boot
 up.  Everything else (mountpoints, filesystems, etc) is stored in the
 pool itself.

What happens if the file does not exist?  Are the devices searched for
metadata?


My understanding (I'll be delighted if I'm wrong) is that you would be stuffed.

I'd expect:

zpool import -f

(see the manpage)
to probe /dev/dsk/ and rebuild the zpool.cache file,
but my understanding is that this a) doesn't work yet or b) does
horrible things to your chances of surviving a reboot [0].

This means that for zfs root and failsafe boots, you need to have a
zpool.cache in your boot/miniroot archive (I probably have the terminology
wrong) otherwise the boot will fail.

I was asking if it was going to be replaced because it would really
simplify ZFS root.

Dick.

[0] going from:
 http://solaristhings.blogspot.com/2006/06/zfs-root-on-solaris-part-3.html

--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Darren J Moffat

Dick Davies wrote:

On 12/10/06, Michael Schuster [EMAIL PROTECTED] wrote:

James C. McPherson wrote:
 Dick Davies wrote:
 On 12/10/06, Matthew Ahrens [EMAIL PROTECTED] wrote:

 FYI, /etc/zfs/zpool.cache just tells us what pools to open when 
you boot

 up.  Everything else (mountpoints, filesystems, etc) is stored in the
 pool itself.

 Does anyone know of any plans or strategies to remove this dependancy?

 What do you suggest in its place?

and why? what's your objection to the current scheme?


Just the hassle of having to create a cache file in boot archives etc.


Why is that a hassle ?  bootadm update-archive does that for you.

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


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Ceri Davies
On Thu, Oct 12, 2006 at 02:06:15PM +0100, Dick Davies wrote:
 On 12/10/06, Ceri Davies [EMAIL PROTECTED] wrote:
 On Wed, Oct 11, 2006 at 11:49:48PM -0700, Matthew Ahrens wrote:
 
  FYI, /etc/zfs/zpool.cache just tells us what pools to open when you boot
  up.  Everything else (mountpoints, filesystems, etc) is stored in the
  pool itself.
 
 What happens if the file does not exist?  Are the devices searched for
 metadata?
 
 My understanding (I'll be delighted if I'm wrong) is that you would be 
 stuffed.
 
 I'd expect:
 
 zpool import -f
 
 (see the manpage)
 to probe /dev/dsk/ and rebuild the zpool.cache file,
 but my understanding is that this a) doesn't work yet or b) does
 horrible things to your chances of surviving a reboot [0].

So how do I import a pool created on a different host for the first
time?

Ceri
-- 
That must be wonderful!  I don't understand it at all.
  -- Moliere


pgpnORJ2EpiPx.pgp
Description: PGP signature
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Ceri Davies
On Thu, Oct 12, 2006 at 07:53:37AM -0600, Mark Maybee wrote:
 Ceri Davies wrote:
 On Wed, Oct 11, 2006 at 11:49:48PM -0700, Matthew Ahrens wrote:
 
 James McPherson wrote:
 
 On 10/12/06, Steve Goldberg [EMAIL PROTECTED] wrote:
 
 Where is the ZFS configuration (zpools, mountpoints, filesystems,
 etc) data stored within Solaris?  Is there something akin to vfstab
 or perhaps a database?
 
 
 Have a look at the contents of /etc/zfs for an in-filesystem artefact
 of zfs. Apart from that, the information required is stored on the
 disk itself.
 
 There is really good documentation on ZFS at the ZFS community
 pages found via http://www.opensolaris.org/os/community/zfs.
 
 FYI, /etc/zfs/zpool.cache just tells us what pools to open when you boot 
 up.  Everything else (mountpoints, filesystems, etc) is stored in the 
 pool itself.
 
 
 What happens if the file does not exist?  Are the devices searched for
 metadata?
 
 Ceri
 
 If the file does not exist than ZFS will not attempt to open any
 pools at boot.  You must issue an explicit 'zpool import' command to
 probe the available devices for metadata to re-discover your pools.

OK, that's fine then.

Ceri
-- 
That must be wonderful!  I don't understand it at all.
  -- Moliere


pgpNFNE0tDgSA.pgp
Description: PGP signature
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Ceri Davies
On Thu, Oct 12, 2006 at 02:54:05PM +0100, Ceri Davies wrote:
 On Thu, Oct 12, 2006 at 02:06:15PM +0100, Dick Davies wrote:
  On 12/10/06, Ceri Davies [EMAIL PROTECTED] wrote:
  On Wed, Oct 11, 2006 at 11:49:48PM -0700, Matthew Ahrens wrote:
  
   FYI, /etc/zfs/zpool.cache just tells us what pools to open when you boot
   up.  Everything else (mountpoints, filesystems, etc) is stored in the
   pool itself.
  
  What happens if the file does not exist?  Are the devices searched for
  metadata?
  
  My understanding (I'll be delighted if I'm wrong) is that you would be 
  stuffed.
  
  I'd expect:
  
  zpool import -f
  
  (see the manpage)
  to probe /dev/dsk/ and rebuild the zpool.cache file,
  but my understanding is that this a) doesn't work yet or b) does
  horrible things to your chances of surviving a reboot [0].
 
 So how do I import a pool created on a different host for the first
 time?

Never mind, Mark just answered that.

Ceri
-- 
That must be wonderful!  I don't understand it at all.
  -- Moliere


pgpGc5be2cfdQ.pgp
Description: PGP signature
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Michael Schuster

Ceri Davies wrote:

On Thu, Oct 12, 2006 at 02:06:15PM +0100, Dick Davies wrote:

On 12/10/06, Ceri Davies [EMAIL PROTECTED] wrote:

On Wed, Oct 11, 2006 at 11:49:48PM -0700, Matthew Ahrens wrote:

FYI, /etc/zfs/zpool.cache just tells us what pools to open when you boot
up.  Everything else (mountpoints, filesystems, etc) is stored in the
pool itself.

What happens if the file does not exist?  Are the devices searched for
metadata?
My understanding (I'll be delighted if I'm wrong) is that you would be 
stuffed.


I'd expect:

zpool import -f

(see the manpage)
to probe /dev/dsk/ and rebuild the zpool.cache file,
but my understanding is that this a) doesn't work yet or b) does
horrible things to your chances of surviving a reboot [0].


So how do I import a pool created on a different host for the first
time?


zpool import [ -f ]

(provided it's not in use *at the same time* by another host)

--
Michael Schuster  +49 89 46008-2974 / x62974
visit the online support center:  http://www.sun.com/osc/

Recursion, n.: see 'Recursion'
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Darren Dunham
 I was asking if it was going to be replaced because it would really
 simplify ZFS root.
 
 Dick.
 
 [0] going from:
   http://solaristhings.blogspot.com/2006/06/zfs-root-on-solaris-part-3.html

I don't know about replaced, but presumably with the addition of
hostid to the pool data, it could be enhanced.

For instance, VxVM has a similar file 'volboot'.  It's needed to import
any diskgroup that isn't normal (using entire disks).  So boot-time
imports consist of both scanning devices, looking for VxVM signatures,
then importing any with the correct hostid and flags, then attempting to
import other things explicicly mentioned in the volboot file.

Since you can put a ZFS pool in files, you're going to have to have a
cache or something like it since you're never going to scan them for
importable pools.

Sone one possible enhancement in ZFS could be that even if the cache
didn't have a given (full disk) pool, it could be scanned and imported
anyway.  I don't know if such a feature would be useful for the
implementation of ZFS root or not.  Either way it would have to wait for
the hostid stuff to go in.

-- 
Darren Dunham   [EMAIL PROTECTED]
Senior Technical Consultant TAOShttp://www.taos.com/
Got some Dr Pepper?   San Francisco, CA bay area
  This line left intentionally blank to confuse you. 
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Torrey McMahon

James C. McPherson wrote:

Dick Davies wrote:

On 12/10/06, Matthew Ahrens [EMAIL PROTECTED] wrote:

FYI, /etc/zfs/zpool.cache just tells us what pools to open when you 
boot

up.  Everything else (mountpoints, filesystems, etc) is stored in the
pool itself.


Does anyone know of any plans or strategies to remove this dependancy?


What do you suggest in its place?



Directory service hooks perhaps?
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Steven Goldberg




Thanks Matt. So is the config/meta info for the pool that is stored
within the pool kept in a file? Is the file user readable or binary? 

Steve

Matthew Ahrens wrote:
James
McPherson wrote:
  
  On 10/12/06, Steve Goldberg
[EMAIL PROTECTED] wrote:

Where is the ZFS configuration (zpools,
mountpoints, filesystems,
  
etc) data stored within Solaris? Is there something akin to vfstab
  
or perhaps a database?
  



Have a look at the contents of /etc/zfs for an in-filesystem artefact

of zfs. Apart from that, the information required is stored on the

disk itself.


There is really good documentation on ZFS at the ZFS community

pages found via http://www.opensolaris.org/os/community/zfs.

  
  
FYI, /etc/zfs/zpool.cache just tells us what pools to open when you
boot up. Everything else (mountpoints, filesystems, etc) is stored in
the pool itself.
  
  
--matt
  


-- 




  

  
   Steven Goldberg 
Engagement Architect
  
  Sun Microsystems, Inc.
15395 SE 30th PL, Suite 120
Bellevue, WA 98011 USA
Phone +1 425 467 4349
Email [EMAIL PROTECTED]
  

  




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


Re: [zfs-discuss] Where is the ZFS configuration data stored?

2006-10-12 Thread Matthew Ahrens

Steven Goldberg wrote:
Thanks Matt.  So is the config/meta info for the pool that is stored 
within the pool kept in a file?  Is the file user readable or binary? 


It is not user-readable.  See the on-disk format document, linked here:

http://www.opensolaris.org/os/community/zfs/docs/

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


[zfs-discuss] Where is the ZFS configuration data stored?

2006-10-11 Thread Steve Goldberg
Hi All,

Where is the ZFS configuration (zpools, mountpoints, filesystems, etc) data 
stored within Solaris?  Is there something akin to vfstab or perhaps a database?

Thanks,

Steve
 
 
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] Where is the ZFS configuration data stored?

2006-10-11 Thread James McPherson

On 10/12/06, Steve Goldberg [EMAIL PROTECTED] wrote:

Where is the ZFS configuration (zpools, mountpoints, filesystems,
etc) data stored within Solaris?  Is there something akin to vfstab
or perhaps a database?



Have a look at the contents of /etc/zfs for an in-filesystem artefact
of zfs. Apart from that, the information required is stored on the
disk itself.

There is really good documentation on ZFS at the ZFS community
pages found via http://www.opensolaris.org/os/community/zfs.


cheers,
James C. McPherson
--
Solaris kernel software engineer, system admin and troubleshooter
 http://www.jmcp.homeunix.com/blog
Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss