[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] NFS filesystem size incorrect on client



Sorry about pestering you guys, let me know if this is not the best list for this type of question.
Anyway, an NFS storage issue ...

-------------------------
SAN/NAS BOX (NFS Server):
-------------------------

/ filesystem on VolGroup00/LogVol00 = 7.6GB
A 20GB filesystem on vg_vm/lv_vm1 is mounted at /srv/vm1
A 100GB filesystem on vg_vm/lv_data1 is mounted at /srv/data1

Output of 'df -h' (extraneous stuff removed):

Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      7.6G  1.8G  5.5G  25% /
/dev/mapper/vg_vm-lv_vm1
                       20G  173M   19G   1% /srv/vm1
/dev/mapper/vg_vm-lv_data1
                       99G  188M   94G   1% /srv/data1


/srv/vm1 and /srv/data1 are mounted with 'mount --bind' to /exports/vm1 and /exports/data1, then exported using NFS:

/exports        192.168.1.28(ro,fsid=0)
/exports/vm1    192.168.1.28(rw,no_root_squash,sync)
/exports/data1  192.168.1.28(rw,no_root_squash,sync)


---------------------
VM HOST (NFS client):
---------------------

On the NFS client, these shares are mounted to /vm/san as follows:

mount -t nfs4 192.168.1.49:/ /vm/san

[root vmhost ~]# ls -al /vm/san/
total 32
drwxrwxrwx 4 nfsnobody nfsnobody 4096 Sep  2 12:12 .
drwxr-xr-x 7 root      root      4096 Sep  2 12:31 ..
drwxr-xr-x 2 nfsnobody nfsnobody 4096 Sep  2 12:59 data1
drwxr-xr-x 2 nfsnobody nfsnobody 4096 Sep  2 12:12 vm1

I can write to these directories so all seems good.

However, 'df -h' on the client side shows (extraneous stuff removed):

Filesystem            Size  Used Avail Use% Mounted on
192.168.1.49:/        7.6G  1.8G  5.5G  25% /vm/san


In other words, the 20GB + 100GB LVs on the NFS server side are now showing up as 7.6GB in size on the client size ... This is the size of the / filesystem on the server side.

Virt-manager of course complains when I try to create a 15GB image file in /vm/sam/vm1, it thinks the entire /vm/san filesystem has only 5.5 GB free.

What am I doing wrong here? I'm guessing my NFS setup is incorrect somehow?

Thanks yet again,

Michael Hall
IT Communications Officer
Alice Springs Town Council
mhall astc nt gov au
(08) 8950 0561


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]