Howdy, I had a box unexpectedly power off, and when it was powered back on the snaptest file system I was testing was no longer visible in the df output: $ df -h Filesystem size used avail capacity Mounted on /dev/dsk/c0t0d0s0 17G 2.1G 15G 13% / /devices 0K 0K 0K 0% /devices ctfs 0K 0K 0K 0% /system/contract proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% /etc/mnttab swap 1.7G 1.0M 1.7G 1% /etc/svc/volatile objfs 0K 0K 0K 0% /system/object fd 0K 0K 0K 0% /dev/fd swap 1.7G 8K 1.7G 1% /tmp swap 1.7G 32K 1.7G 1% /var/run I can successfully cd to the /snaptest directory, and am able to create files without issue: $ cd /snaptest $ pwd /snaptest $ mkfile 100m oof $ ls -la /snaptest total 204932 drwxr-xr-x 2 root root 512 Apr 14 11:37 . drwxr-xr-x 25 root root 1024 Apr 5 18:45 .. -rw------T 1 root root 104857600 Apr 14 11:37 oof The snaptest file system is also visible in ''zfs list'' and ''zpool status'': $ zfs list NAME USED AVAIL REFER MOUNTPOINT snaptest 1.50G 48.6G 1.50G /snaptest $ zpool status pool: snaptest state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM snaptest ONLINE 0 0 0 raidz ONLINE 0 0 0 c1t1d0 ONLINE 0 0 0 c1t2d0 ONLINE 0 0 0 c1t3d0 ONLINE 0 0 0 errors: No known data errors Has anyone bumped into this? This is a b37 host, and was working perfectly fine prior to the power outage. I checked for df bugs on opensolaris.org, but nothing seemed to stand out. Thanks for any insight, - Ryan -- UNIX Administrator http://daemons.net/~matty
Hey Ryan, On Thu, 2006-04-20 at 10:38 -0400, Matty wrote:> I had a box unexpectedly power off, and when it was powered back on > the snaptest file system I was testing was no longer visible in the df > output:> I can successfully cd to the /snaptest directory, and am able to create > files without issue:Weird: I haven''t seen anything like that - are you sure you''re looking at a zfs filesystem, and not just the /snaptest mountpoint in / ?>From the output you posted, I don''t see the .zfs directory (unlessyou''ve explicitly hidden it, which is possible, I''ll admit) Might be interesting to do : $ cd /snaptest $ df -h . to see what filesystem you''re actually looking at. If it''s not zfs, then getting the output of "zfs get mounted snaptest" would be good, and perhaps doing "zfs mount -a" if you find that it''s not mounted. Strange that /lib/method/fs-local didn''t mount that for you on reboot - is there anything in /var/svc/log/system-filesystem-local:default.log that has more info as to what went on? cheers, tim -- Tim Foster, Sun Microsystems Inc, Operating Platforms Group Engineering Operations http://blogs.sun.com/timf
Hello Matty, Thursday, April 20, 2006, 4:38:14 PM, you wrote: M> Howdy, M> I had a box unexpectedly power off, and when it was powered back on M> the snaptest file system I was testing was no longer visible in the df M> output: M> $ df -h M> Filesystem size used avail capacity Mounted on M> /dev/dsk/c0t0d0s0 17G 2.1G 15G 13% / M> /devices 0K 0K 0K 0% /devices M> ctfs 0K 0K 0K 0% /system/contract M> proc 0K 0K 0K 0% /proc M> mnttab 0K 0K 0K 0% /etc/mnttab M> swap 1.7G 1.0M 1.7G 1% /etc/svc/volatile M> objfs 0K 0K 0K 0% /system/object M> fd 0K 0K 0K 0% /dev/fd M> swap 1.7G 8K 1.7G 1% /tmp M> swap 1.7G 32K 1.7G 1% /var/run M> I can successfully cd to the /snaptest directory, and am able to create M> files without issue: M> $ cd /snaptest M> $ pwd M> /snaptest M> $ mkfile 100m oof M> $ ls -la /snaptest M> total 204932 M> drwxr-xr-x 2 root root 512 Apr 14 11:37 . M> drwxr-xr-x 25 root root 1024 Apr 5 18:45 .. M> -rw------T 1 root root 104857600 Apr 14 11:37 oof M> The snaptest file system is also visible in ''zfs list'' and ''zpool status'': M> $ zfs list M> NAME USED AVAIL REFER MOUNTPOINT M> snaptest 1.50G 48.6G 1.50G /snaptest M> $ zpool status M> pool: snaptest M> state: ONLINE M> scrub: none requested M> config: M> NAME STATE READ WRITE CKSUM M> snaptest ONLINE 0 0 0 M> raidz ONLINE 0 0 0 M> c1t1d0 ONLINE 0 0 0 M> c1t2d0 ONLINE 0 0 0 M> c1t3d0 ONLINE 0 0 0 M> errors: No known data errors M> Has anyone bumped into this? This is a b37 host, and was working M> perfectly fine prior to the power outage. I checked for df bugs on M> opensolaris.org, but nothing seemed to stand out. zfs list -o mounted,mountpoint will undoubtly tell you that snaptest isn''t mounted. Try ''zfs mount snaptest'' However maybe default ''zfs list'' should clearly state if given dataset is mounted or not. -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com
On Thu, Apr 20, 2006 at 05:58:33PM +0200, Robert Milkowski wrote:> > zfs list -o mounted,mountpoint > > will undoubtly tell you that snaptest isn''t mounted. > > Try ''zfs mount snaptest'' > > However maybe default ''zfs list'' should clearly state if given dataset > is mounted or not.You can also just to ''zfs mount'' to see what ZFS filesystems are mounted. - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock