Re: ZFS-Pool is lost after reboot ( amd64 )

2008-04-11 Thread Peter Schuller
> If I run zpool import x1 it works. But as you say it should do it by its
> own. Maybe it whould be the best to open a bugreport ?

In addition to what has already been mentioned by Ivan Voras, make sure 
your /boot is not the subject to strangeness. Specifically, imported pools 
are kept track of in /boot/zfs/zpool.cache. If you somehow have multiple 
versions of your /boot, or it is read-only somehow, you may see problems like 
this.

(For example, if your real /boot during boot is different from the location 
actually at /boot once the system has mounted all filesystems, and ZFS is 
loaded at boot due to loader variable.)

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller <[EMAIL PROTECTED]>'
Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org



signature.asc
Description: This is a digitally signed message part.


Re: ZFS-Pool is lost after reboot ( amd64 )

2008-04-11 Thread Toni Schmidbauer
At Fri, 11 Apr 2008 09:12:55 +0200,
Norman Maurer wrote:
> Am Donnerstag, den 10.04.2008, 22:50 +0200 schrieb Toni Schmidbauer:
> If I run zpool import x1 it works. But as you say it should do it by its
> own. Maybe it whould be the best to open a bugreport ?

i had problems importing a zpool when /etc/rc.d/hostid did not
start. zfs stores this unique id on the disks to identify the system
which had the pool imported most recently.

when the on disk host id and the system host id differ you have force
the import (zpool import -f). which is dangerous if your pool is on
shared storage...

hth,
toni
-- 
If you understand what you're doing, you're | toni at stderror dot at
not learning anything.  | Toni Schmidbauer
-- Anonymous|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ZFS-Pool is lost after reboot ( amd64 )

2008-04-11 Thread Ivan Voras
Norman Maurer wrote:

> If I run zpool import x1 it works. But as you say it should do it by its
> own. Maybe it whould be the best to open a bugreport ?

Do you have zfs_enabled="YES" in rc.conf ? If you upgraded FreeBSD from
an earlier release, remember to run mergemaster.




signature.asc
Description: OpenPGP digital signature


Re: ZFS-Pool is lost after reboot ( amd64 )

2008-04-11 Thread Norman Maurer
Am Donnerstag, den 10.04.2008, 22:50 +0200 schrieb Toni Schmidbauer:
> At Thu, 10 Apr 2008 21:22:42 +0200,
> Norman Maurer wrote:
> > All is fine till I reboot. The pool is just disappearing :-/
> 
> have you tried to import the pool?
> 
> zpool import x1
> 
> or just
> 
> zpool import
> 
> to list pools available to import.
> 
> maybe the pool isn't imported on boot, which should not happen, but
> who knows...
> 
> zfs should remember the import/export status of the pool, so if the
> pool is imported and you reboot, it should also get imported on the
> subsequent boot.
> 
> hth
> toni

Well thats not the case.. I think thats why it is called
experimental ;-)

If I run zpool import x1 it works. But as you say it should do it by its
own. Maybe it whould be the best to open a bugreport ?

Cheers,
Norman


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ZFS-Pool is lost after reboot ( amd64 )

2008-04-10 Thread Toni Schmidbauer
At Thu, 10 Apr 2008 21:22:42 +0200,
Norman Maurer wrote:
> All is fine till I reboot. The pool is just disappearing :-/

have you tried to import the pool?

zpool import x1

or just

zpool import

to list pools available to import.

maybe the pool isn't imported on boot, which should not happen, but
who knows...

zfs should remember the import/export status of the pool, so if the
pool is imported and you reboot, it should also get imported on the
subsequent boot.

hth
toni
-- 
If you understand what you're doing, you're | toni at stderror dot at
not learning anything.  | Toni Schmidbauer
-- Anonymous|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ZFS-Pool is lost after reboot ( amd64 )

2008-04-10 Thread Norman Maurer
Am Donnerstag, den 10.04.2008, 20:07 + schrieb Christian Walther:
> On 10/04/2008, Norman Maurer <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> [...]
> >  All is fine till I reboot. The pool is just disappearing :-/
> 
> Did you try to import the pool?
> 
> # zpool import x1

hmm this works, but shouldn't it work with run import manually after
reboot ? I just miss something ?

Cheers,
Norman


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ZFS-Pool is lost after reboot ( amd64 )

2008-04-10 Thread Norman Maurer
Hi all,

we want to use ZFS ( raidz2 without spares ) for store big amount of
data on it. It's just a mirror so we don't give at damn if zfs is
experimental ;-)

I created some pool with the command:
# zpool create x1 raidz2 aacd0 aacd1 aacd2 aacd3 aacd4 aacd5

It shows up correctly:
# zpool status
  pool: x1
  state: ONLINE
  scrub: none requested
  config:

NAMESTATE READ WRITE CKSUM
x1  ONLINE   0 0 0
  raidz2ONLINE   0 0 0
aacd0   ONLINE   0 0 0
aacd1   ONLINE   0 0 0
aacd2   ONLINE   0 0 0
aacd3   ONLINE   0 0 0
aacd4   ONLINE   0 0 0
aacd5   ONLINE   0 0 0

errors: No known data errors

]# zpool list 
NAMESIZEUSED   AVAILCAP  HEALTH ALTROOT
x1  816G230K816G 0%  ONLINE -

All is fine till I reboot. The pool is just disappearing :-/
Here are the relevant config stuff:

# grep "zfs" /etc/rc.conf 
zfs_enable="YES"

# cat /boot/loader.conf 
geom_mirror_load="YES"
zfs_load="YES"
vm.kmem_size_max="512M"
vm.kmem_size="512M"
vfs.zfs.zil_disable=1


After reboot the module is loaded:

# kldstat | grep zfs
 21 0x80bc7000 f5a40zfs.ko

But the pool is loast:
# zpool list
no pools available


Some more infos about the system:
# uname -v
FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC 

Some parts of dmesg:

WARNING: ZFS is considered to be an experimental feature in FreeBSD.
Timecounters tick every 1.000 msec
hptrr: no controller detected.
aacd0:  on aac0
aacd0: 139890MB (286494720 sectors)
aacd1:  on aac0
aacd1: 139890MB (286494720 sectors)
aacd2:  on aac0
aacd2: 139890MB (286494720 sectors)
aacd3:  on aac0
aacd3: 139890MB (286494720 sectors)
aacd4:  on aac0
aacd4: 139890MB (286494720 sectors)
aacd5:  on aac0
aacd5: 139890MB (286494720 sectors)
aacd6:  on aac0
aacd6: 139890MB (286494720 sectors)
aacd7:  on aac0
aacd7: 139890MB (286494720 sectors)
ZFS filesystem version 6
ZFS storage pool version 6
GEOM_MIRROR: Device mirror/gm0 launched (2/2).
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #4 Launched!
SMP: AP CPU #6 Launched!
SMP: AP CPU #7 Launched!


Cheers,
Norman




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"