Страница 1 из 1

Panic: Zfs: allocating allocated segment

Добавлено: 2013-02-16 11:29:49
pezzak
Здравствуйте, господа!
Есть Freebsd 9 с двумя sata дисками, поднят zpool.

Вчера система отказалась загружаться с ошибкой:
Panic: Solaris(panic) Zfs: allocating allocated segment (offset=%llu size=%llu)
В Singlemode загружается, пробовал zpool scrub, восстанавил 20кб и теперь в статусе:

Код: Выделить всё

Zpool status
Pool: zroot
State: online
Status: One or more devices has experienced an unrecoverable error. An attempt was made to correct the error. Applications are unaffected.

Scan: scrub repaired 20k in 1h34m with 0 errors
Притом, что пул онлайн и no known data errors.

Re: Panic: Zfs: allocating allocated segment

Добавлено: 2013-02-16 22:38:44
iZEN
zpool import -F zroot

Re: Panic: Zfs: allocating allocated segment

Добавлено: 2013-02-17 1:01:56
pezzak

Код: Выделить всё

cannot import 'zroot': a pool with that name is already created/imported, and no additional pools with that name were found
zpool import без ключей:

Код: Выделить всё

zfs warning: unable to attach to ada1
No pools available to import
Оба диска поверил на бэды с помощью smartmontools, ошибок не показало. Но какой-то из дисков странно звучит при обращении к файловой системе

Re: Panic: Zfs: allocating allocated segment

Добавлено: 2013-02-17 1:07:51
iZEN
Какими командами был создан пул?

Re: Panic: Zfs: allocating allocated segment

Добавлено: 2013-02-17 11:52:24
pezzak

Код: Выделить всё

zpool create zroot mirror /dev/gpt/disk0 /dev/gpt/disk1
zpool set bootfs=zroot zroot
zfs set checksum=fletcher4 zroot

zfs set mountpoint=/mnt zroot
zfs create zroot/usr
zfs create zroot/usr/home
zfs create zroot/var
zfs create -o compression=on -o exec=on -o setuid=off zroot/tmp
zfs create -o compression=lzjb -o setuid=off zroot/usr/ports
zfs create -o compression=off -o exec=off -o setuid=off zroot/usr/ports/distfiles
zfs create -o compression=off -o exec=off -o setuid=off zroot/usr/ports/packages
zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/usr/src
zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/var/crash
zfs create -o exec=off -o setuid=off zroot/var/db
zfs create -o compression=lzjb -o exec=on -o setuid=off zroot/var/db/pkg
zfs create -o exec=off -o setuid=off zroot/var/empty
zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/var/log
zfs create -o compression=gzip -o exec=off -o setuid=off zroot/var/mail
zfs create -o exec=off -o setuid=off zroot/var/run
zfs create -o compression=lzjb -o exec=on -o setuid=off zroot/var/tmp

zpool export zroot
zpool import -o cachefile=/tmp/zpool.cache zroot

Re: Panic: Zfs: allocating allocated segment

Добавлено: 2013-02-17 12:58:01
iZEN
zroot/usr и zroot/var отдельные файловые системы? Подозреваю, что они не монтируются в свои точки во время загрузки. Их нужно в Single User Mode смонтировать вручную:

Код: Выделить всё

zfs set mountpoint=/usr zroot/usr ; zfs set mountpoint=/var zroot/var
и перезагрузиться.

Re: Panic: Zfs: allocating allocated segment

Добавлено: 2013-02-17 14:06:57
pezzak
Та же ошибка..
Нашел похожую проблему: http://forums.freebsd.org/showthread.php?t=17035
Но там проблема была из за системного диска, который не входил в пул

Re: Panic: Zfs: allocating allocated segment

Добавлено: 2013-03-18 8:14:59
pezzak
Вообщем, помогло отключение/включение диска из пула (detach/attach).