OpenVZ Forum


Home » General » Support » sshfs files disapearing (how do I stop files from disapearing)
sshfs files disapearing [message #51854] Sun, 25 January 2015 23:31 Go to next message
spoke2u
Messages: 12
Registered: September 2013
Junior Member
I setup a vm with 200 gb of space and mount it as a extra space for media I link to with sshfs using numerous computers and phones for music and video

vzctl create 10 --ostemplate debian-7.0-amd64-minimal100213
vzctl set 10 --onboot yes --save
vzctl set 10 --hostname data.local.dm --save
vzctl set 10 --ipadd 10.0.0.10 --save
vzctl start 10
vzctl exec 10 passwd


after a bit files start to disappear. i do not know what the heck I would have a 600mb file video and the sub folder would be there but the files are gone

this has been going on now for a long while I started over with this container and did a few things different
:/etc/vz/conf# cat 10.conf
# UBC parameters (in form of barrier:limit)
PHYSPAGES="0:1G"
SWAPPAGES="0:2G"
KMEMSIZE="unlimited"
LOCKEDPAGES="unlimited"
PRIVVMPAGES="unlimited"
SHMPAGES="unlimited"
NUMPROC="unlimited"
VMGUARPAGES="unlimited"
OOMGUARPAGES="unlimited"
NUMTCPSOCK="unlimited"
NUMFLOCK="unlimited"
NUMPTY="unlimited"
NUMSIGINFO="unlimited"
TCPSNDBUF="unlimited"
TCPRCVBUF="unlimited"
OTHERSOCKBUF="unlimited"
DGRAMRCVBUF="unlimited"
NUMOTHERSOCK="unlimited"
DCACHESIZE="unlimited"
NUMFILE="unlimited"
NUMIPTENT="unlimited"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="200G"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair scheduler parameter
CPUUNITS="1000"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="debian-7.0-amd64-minimal100213"
ORIGIN_SAMPLE="unlimited1gb2gbswp"
ONBOOT="yes"
HOSTNAME="data.xxxxxxxxx"
IP_ADDRESS="10.0.0.10"

#UUID: xxxxxxxxxxxxxxxxxxxx


here is the df -h on the HN

10 is for my sharing of data
118 is my zoneminder
110 is a pbx voip system asterisk

/etc/vz/conf# df -h
Filesystem                                              Size  Used Avail Use% Mounted on
udev                                                     10M     0   10M   0% /dev
tmpfs                                                   483M  432K  483M   1% /run
/dev/disk/by-uuid/ccxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxe  455G  240G  193G  56% /
tmpfs                                                   5.0M     0  5.0M   0% /run/lock
tmpfs                                                   1.7G     0  1.7G   0% /run/shm
/vz/private/10                                          200G   92G  109G  46% /vz/root/10
tmpfs                                                   2.4G   28K  2.4G   1% /vz/root/10/run
tmpfs                                                   2.4G     0  2.4G   0% /vz/root/10/run/lock
tmpfs                                                   2.4G     0  2.4G   0% /vz/root/10/run/shm
/vz/private/110                                          20G  9.4G   11G  47% /vz/root/110
/vz/private/118                                          85G   69G   17G  81% /vz/root/118
tmpfs                                                   103M   56K  103M   1% /vz/root/110/run
tmpfs                                                   5.0M     0  5.0M   0% /vz/root/110/run/lock
tmpfs                                                   615M     0  615M   0% /vz/root/110/run/shm
tmpfs                                                   2.4G   40K  2.4G   1% /vz/root/118/run
tmpfs                                                   2.4G     0  2.4G   0% /vz/root/118/run/lock
tmpfs                                                   2.4G   72M  2.3G   3% /vz/root/118/run/shm


whats going on its like its disappearing cause I am running out of space but no? confused HELP! Shocked

I just upgraded kernel uname -r
2.6.32-openvz-042stab102.9-amd64
but this has been going on since the first version that I had going. how and what is the best way to create space that nothing disappears from.




--
I am unable to see

[Updated on: Sun, 25 January 2015 23:35]

Report message to a moderator

Re: sshfs files disapearing [message #51857 is a reply to message #51854] Mon, 26 January 2015 17:57 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
The first thing I notice from the data you've posted is a somewhat low inode limit. Limit of 220000 doesn't seem enough for a busy 200 GB file system. The ext4 defaults for disk inodes equal to 65536 x GiB (1 * 1024 * 1024 / 16). So, for 200 GiB, that would be 13107200. You might not need quite as much, but still... you might very well need more than 220k.

You can check inode usage by running 'df -i' within your VM.

If inodes aren't the cause, are there any other errors / failures in the logs within the VM? Files can't just disappear...
Re: sshfs files disapearing [message #51859 is a reply to message #51857] Tue, 27 January 2015 17:08 Go to previous message
spoke2u
Messages: 12
Registered: September 2013
Junior Member
Wow i have always wondered about that I made the changes. time will see. I think I need to learn more what a inode really is.

Do you think because of a low amount of inodes that a file that was there one day would disappear another.

if anyone else is curious of any other settings let me know I will provide I not sure how to explain how to reproduce. but I can go into detail how and what I did to install.


--
I am unable to see
Previous Topic: xt_NFQUEUE and netfilter_queue inside container not supported?
Next Topic: OpenVZ change size of /dev/simfs
Goto Forum:
  


Current Time: Fri Mar 29 08:32:09 GMT 2024

Total time taken to generate the page: 0.01878 seconds