...
Két óra alatt a szerverhez érve kiderül, hogy nagy a baj, részben el tudott indulni, de a fájlrendszere fura képet mutat:
Code Block |
---|
pool: bpool
state: FAULTED
status: The pool metadata is corrupted and the pool cannot be opened.
action: Destroy and re-create the pool from a backup source.
see: http://www.sun.com/msg/ZFS-8000-CS
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
bpool FAULTED 0 0 6 corrupted data
da0s2 ONLINE 0 0 6
pool: dpool
state: FAULTED
status: The pool metadata is corrupted and the pool cannot be opened.
action: Destroy and re-create the pool from a backup source.
see: http://www.sun.com/msg/ZFS-8000-CS
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
dpool FAULTED 0 0 6 corrupted data
da0s4 ONLINE 0 0 6
|
...
És lőn, a kis méretű pool másodpercek alatt magához tér:
Code Block |
---|
authglaptop:/media/SAMSUNG/backup/test # zpool import -f -F -a -d .
Pool bpool returned to its state as of 2010-11-08.
Discarded approximately 14 seconds of transactions.
cannot mount '/tmp': directory is not empty
cannot mount '/usr': directory is not empty
cannot mount '/usr/local': directory is not empty
cannot mount '/usr/src': directory is not empty
cannot mount '/var': directory is not empty
authglaptop:/media/SAMSUNG/backup/test # zpool status
pool: bpool
state: ONLINE
status: The pool is formatted using an older on-disk format. The pool can
still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'. Once this is done, the
pool will no longer be accessible on older software versions.
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
bpool ONLINE 0 0 0
/media/SAMSUNG/backup/test/bpool ONLINE 0 0 0
errors: No known data errors
|
Megnézve kiderül, hogy minden adat megvan, de úgy gondoltam, sikálja át a ZFS-FUSE, hátha vannak hibák:
Code Block |
---|
authglaptop:/media/SAMSUNG/backup/test # zpool scrub bpool
authglaptop:/media/SAMSUNG/backup/test # zpool status
pool: bpool
state: ONLINE
status: The pool is formatted using an older on-disk format. The pool can
still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'. Once this is done, the
pool will no longer be accessible on older software versions.
scrub: scrub in progress for 0h0m, 0.00% done, 26h2m to go
config:
NAME STATE READ WRITE CKSUM
bpool ONLINE 0 0 0
/media/SAMSUNG/backup/test/bpool ONLINE 0 0 0
errors: No known data errors
|
...
Az átvizsgálás megtörtént, 50 perc alatt talált egy checksum hibát, ami nem vészes:
Code Block |
---|
authglaptop:/media/SAMSUNG/backup/test # zpool status
pool: bpool
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://www.sun.com/msg/ZFS-8000-9P
scrub: scrub completed after 0h51m with 0 errors on Mon Nov 8 16:25:40 2010
config:
NAME STATE READ WRITE CKSUM
bpool ONLINE 0 0 0
/media/SAMSUNG/backup/test/bpool ONLINE 0 0 1 4.50K repaired
errors: No known data errors
|
Megkezdődik a tartalom hálózaton való visszatöltése:
Code Block |
---|
authglaptop:/media/SAMSUNG/backup/test # dd if=bpool | ssh root@javaforum.hu dd of=/dev/da0s2d
|
...
Újabb két óra alatt felmásolódott a megjavított pool, a szerveren is nézzük meg, hogy jó-e:
Code Block |
---|
This module (opensolaris) contains code covered by the
Common Development and Distribution License (CDDL)
see http://opensolaris.org/os/licensing/opensolaris_license/
WARNING: ZFS is considered to be an experimental feature in FreeBSD.
ZFS filesystem version 6
ZFS storage pool version 6
freebsd# zpool import -a
cannot import 'bpool': pool may be in use from other system, it was last accessed by authglaptop (hostid: 0x7f0200) on Mon Nov 8 16:26:04 2010
use '-f' to import anyway
freebsd# zpool import -f -a
freebsd# zpool status
pool: bpool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
bpool ONLINE 0 0 0
da0s2d ONLINE 0 0 0
errors: No known data errors
|
...
A rendszer fájlrendszerek megvannak és működnek, a normál módon el tud indulni a szerver, már csak a 280G méretű adatokkal megrakott pool kell, ehhez hazafelé menet a már említett 320G kapacitású USB HDD-t csatlakoztatom a szerverhez és elkezdem a másolást, amikor nem várt akadályba ütközök:
Code Block |
---|
# mount -t ext2fs /dev/da1s1 /mnt
# cd /mnt
cd: not a directory: /mnt
|
Hopszi, ez így nem lesz jó. Fél óra keresgélés után találtam egy fórumot, ahol kiderült, hogy a 7.x FreeBSD csak és kizárólag a 128 alapszámú inode táblázatot képes kezelni, ezért újra kell formázni a hordozható HDD-t, persze ezt a Linux-os laptopon, mivel a FreeBSD-n nincs telepítve ext2fs fájlrendszer kezeléséhez program, telepíteni meg nem tudok:
Code Block |
---|
# mkfs.ext2 -I 128 /dev/sdb1
# tune2fs -m 0 /dev/sdb1
|
...