I had let my external storage sit unattached for quite a while. I had blown away the system that had ZFS support on it, so had to start over. The filesystem was still there, I just didn't have anything to mount it. I had to build a Rocks cluster:
http://www.rocksclusters.org/wordpress/
for another project. Luckily Rocks is based on Centos 6.3. After getting the frontend of the cluster up, I installed the ZFS software. After that, these are the steps I took to get the filesystem back:
[root@cluster ~]# zpool import
pool: NAS
id: 8081959002011209582
state: ONLINE
status: The pool was last accessed by another system.
action: The pool can be imported using its name or numeric identifier and
the '-f' flag.
see: http://www.sun.com/msg/ZFS- 8000-EY
config:
NAS ONLINE
raidz2-0 ONLINE
sdb ONLINE
sdc ONLINE
sdd ONLINE
sde ONLINE
[root@cluster ~]#[root@cluster ~]# zpool import NAS
cannot import 'NAS': pool may be in use from other system, it was last accessed by localhost.localdomain (hostid: 0x7f0100) on Sun Jan 1 18:50:23
use '-f' to import anyway
[root@cluster ~]# zpool import -f NAS
[root@cluster ~]# zfs list
NAME USED AVAIL REFER MOUNTPOINT
NAS 77.8G 2.60T 77.8G /NAS
[root@cluster ~]# ls -larth /NAS
total 13K
-rw-r--r-- 1 root root 0 Nov 16 2011 junk
drwxr-xr-x 7 root root 9 Nov 16 2011 home
drwxr-xr-x 13 501 jboss 13 Nov 19 2011 tools
drwxr-xr-x 5 root root 6 Dec 1 2011 .
drwxr-xr-x 3 root root 3 Dec 1 2011 old-pc
drwxr-xr-x 29 root root 4.0K Jan 20 17:07 ..
[root@cluster ~]#
http://www.rocksclusters.org/wordpress/
for another project. Luckily Rocks is based on Centos 6.3. After getting the frontend of the cluster up, I installed the ZFS software. After that, these are the steps I took to get the filesystem back:
[root@cluster ~]# zpool import
pool: NAS
id: 8081959002011209582
state: ONLINE
status: The pool was last accessed by another system.
action: The pool can be imported using its name or numeric identifier and
the '-f' flag.
see: http://www.sun.com/msg/ZFS-
config:
NAS ONLINE
raidz2-0 ONLINE
sdb ONLINE
sdc ONLINE
sdd ONLINE
sde ONLINE
[root@cluster ~]#[root@cluster ~]# zpool import NAS
cannot import 'NAS': pool may be in use from other system, it was last accessed by localhost.localdomain (hostid: 0x7f0100) on Sun Jan 1 18:50:23
use '-f' to import anyway
[root@cluster ~]# zpool import -f NAS
[root@cluster ~]# zfs list
NAME USED AVAIL REFER MOUNTPOINT
NAS 77.8G 2.60T 77.8G /NAS
[root@cluster ~]# ls -larth /NAS
total 13K
-rw-r--r-- 1 root root 0 Nov 16 2011 junk
drwxr-xr-x 7 root root 9 Nov 16 2011 home
drwxr-xr-x 13 501 jboss 13 Nov 19 2011 tools
drwxr-xr-x 5 root root 6 Dec 1 2011 .
drwxr-xr-x 3 root root 3 Dec 1 2011 old-pc
drwxr-xr-x 29 root root 4.0K Jan 20 17:07 ..
[root@cluster ~]#
No comments:
Post a Comment