fssnap backing-store on an nfs volume.

From: arjan blabliblo (moohkoe@yahoo.com)
Date: Wed Oct 30 2002 - 06:10:20 EST


Hi,

i am having some problems creating fssnaps to a nfs mounted filesystem.
The nfs filesystem is shared by a hp-ux box and mounted on a solaris 8 box.
I have included the details of all the steps i take.

---------------------------------------------------------------------------------

1) I have a hp-ux box wich i use as a file server :
HP-UX xxxxxxxx B.11.00 U 9000/800

2) On this file server there is a filesystem mounted under /usr1 :
/usr1 (/dev/vg01/usr1 ) : 79699912 total allocated Kb
                                                  78557640 free allocated Kb
                                                   1142272 used allocated Kb
                                                         1 % allocation used

3) On the /usr1 filesystem (veritas) i have created a directory called "solaris-fssnap" :
xxxxxxxx:/ -> ls -al /usr1
total 20
drwxr-xr-x 4 root root 96 Oct 10 16:37 .
drwxr-xr-x 21 root root 2048 Oct 10 13:59 ..
drwxr-xr-x 2 root root 96 Oct 9 14:47 lost+found
drwxrwxr-x 2 root sys 8192 Oct 24 11:01 solaris-fssnap

xxxx:/usr/admin -> cat /etc/fstab
# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /var vxfs delaylog 0 2
/dev/vg01/usr1 /usr1 vxfs rw,suid,delaylog,datainlog 0 2
/dev/dsk/c0t6d0 /cdrom cdfs ro,suid 0 0

4) I export this directory through nfs :
xxxxxxx:/ -> cat /etc/exports
/usr1/solaris-fssnap -anon=0,async

5) I mount this nfs share on a solaris box :
xxxxxx:/ -> mount -o vers=3 xxxxxxx:/usr1/solaris-fssnap /mnt/nfs
xxxxxx:/ -> df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t0d0s0 26746214 2957441 23521311 12% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
swap 9166072 8 9166064 1% /var/run
swap 9185760 19696 9166064 1% /tmp
xxxxxxx:/usr1/solaris-fssnap
                     80318464 1142272 78557640 2% /mnt/nfs

6) I test the mounted nfs share :
xxxxxxxxx:/mnt/nfs -> touch testfile1
xxxxxxxxx:/mnt/nfs -> ls -al
total 130
drwxrwxr-x 2 root sys 8192 Oct 29 2002 .
drwxr-xr-x 4 root sys 512 Aug 15 10:56 ..
-rw-r--r-- 1 root nsa 0 Oct 29 2002 testfile1

xxxxxxxxx:/mnt/nfs -> mkfile 1048576000 testfile2
xxxxxxxxx:/mnt/nfs -> ls -al
total 16397314
drwxrwxr-x 2 root sys 8192 Oct 29 10:57 .
drwxr-xr-x 4 root sys 512 Aug 15 10:56 ..
-rw-r--r-- 1 root nsa 0 Oct 29 10:48 testfile1
-rw------T 1 root nsa 1048576000 Oct 29 10:58 testfile2

---------------------------------------------------------------------------------

As you can see, the nfs mount works and i can create files on it.
Next i try to create an actual fssnap of / onto this nfs mounted filesystem.

---------------------------------------------------------------------------------

7) Create an fssnap of the / filesystem (solaris box) to the nfs mounten filesystem :
xxxxxxxxx:/mnt/nfs -> fssnap -o backing-store=/mnt/nfs/fssnapfile /
fssnap: Fatal: close of backing-store (/mnt/nfs/fssnapfile): File too large
Deleted snapshot 0.

8) Create an fssnap of the / (max fssnap size of 500m) filesystem (solaris box) to the nfs mounten filesystem :
xxxxxxxxx:/mnt/nfs -> fssnap -o maxsize=500m,backing-store=/mnt/nfs/fssnapfile /
fssnap: Fatal: close of backing-store (/mnt/nfs/fssnapfile): File too large
Deleted snapshot 0.

---------------------------------------------------------------------------------

File to large? My guess is this has something to do with nfs (since the /usr1 filesystem
on the hp-ux machine is a veritas file system). I understand nfs v3 should support large files.
Even when i say that the max size of the backing-store can be 500m it still gives a "file to large" error.

Do any of the filesystem/nfs guru's out there know what i am doing wrong?

Cheers,
Arjan.
HotJobs - Search new jobs daily now
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:11 EDT