« May 2008
SunMonTueWedThuFriSat
    
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today
XML

Tom Haynes

loghyr.com
excfb.com

Blogs to Gander At

Navigation

Editing

AllMarks

Referers

Today's Page Hits: 294

Powered by Roller Weblogger.

statcounter.com

clustrmaps.com

Locations of visitors to this page

technorati.com

www.alesti.org

Add to Alesti RSS Reader

South Park as I was 10 years ago

South Park Fantasy

South Park today

South Park Reality

I have more hair and it isn't so grey. :->

10 years ago, really

Toon Tom

Today, literally

Tom Today

Site notes

This page validates as XHTML 1.0, and will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device. It was created using techniques detailed at glish.com/css/.

« Kanigix - Some more... | Main | Ubiquitous NFSv4 »
20060321 Tuesday March 21, 2006
Recovering a ZFS filesystem after a reinstall

So last night I reinstalled Nevada b35 on wont. Of course, I didn't bother nuking my ZFS filesystem. And of course it did not show up after the system came up. But that is the same as a UFS filesystem. For UFS you need to add it to /etc/vfstab to get it mounted automatically upon a reboot.

What do I need to do with a ZFS filesystem?

No idea why 'zfs import -f zoo' spit out a warning. Well, it might have to do with the fact that I didn't do a 'zfs export' before I did the reinstall.

And finally, lets make sure we can see the contents across the network on sandman:

# showmount -e wont
export list for wont:
/export/zfs       (everyone)
/export/zfs/tdh   (everyone)
/export/zfs/nfsv3 (everyone)
/export/zfs/nfsv4 (everyone)
/export/zfs/nfsv2 (everyone)
# cd /net/wont/export
# ls -la
total 3
dr-xr-xr-x   2 root     root           2 Mar 21 15:36 .
dr-xr-xr-x   2 root     root           2 Mar 21 15:36 ..
dr-xr-xr-x   1 root     root           1 Mar 21 15:36 zfs
# cd zfs
# ls -la
total 7
drwxr-xr-x   6 root     sys            6 Mar 20 23:12 .
dr-xr-xr-x   2 root     root           2 Mar 21 15:36 ..
dr-xr-xr-x   3 root     root           3 Mar 21 15:35 .zfs
dr-xr-xr-x   1 root     root           1 Mar 21 15:36 nfsv2
dr-xr-xr-x   1 root     root           1 Mar 21 15:36 nfsv3
dr-xr-xr-x   1 root     root           1 Mar 21 15:36 nfsv4
dr-xr-xr-x   1 root     root           1 Mar 21 15:36 tdh
# cd tdh
# ls -la
total 4
drwxr-xr-x   2 1066     staff          2 Mar 20 23:12 .
drwxr-xr-x   6 root     sys            6 Mar 20 23:12 ..
dr-xr-xr-x   3 root     root           3 Mar 21 15:36 .zfs

Obviously, the userid of 1066 has not been added to sandman. Notice that this is a NFSv4 mount and the ID mapping must be working correctly. I.e., if it were not, we would see nobody. A NFSv3 mount would show 1066 regardless of the ID domain settings.


Technorati Tags:
Orginally posted on Kool Aid Served Daily
Copyright (C) 2006, Kool Aid Served Daily

Trackback URL: http://blogs.sun.com/tdh/entry/recovering_a_zfs_filesystem_after
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed
Copyright (C) 2007, Kool Aid Served Daily