LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   File missing on shared raid directory (https://www.linuxquestions.org/questions/linux-server-73/file-missing-on-shared-raid-directory-4175412067/)

iashkan 06-18-2012 10:59 AM

File missing on shared raid directory
 
Hello all
I need help about missing files on my nfs.

server has 8x2TB hard drive.
4 hard in one raid 0 group and 4 others in another raid 0 group.
and finally these 2 raid 0 disk became software mirror (raid 1) on my os (centos 6).

final partition is mounted at /home and users home are located in it.
In some cases users believe they lost their files.

share option is:
/home *(rw,async,no_root_squash)

and
mount option is:
async,rw

what is the problem?!
I forgot somethings:
main usage of this share is for matlab analyzes.
users have some scripts which generate some files, and some times these files are missing in random order!
I say theme put pause(15) in their script and problem rate became very low.

sorry for bad english skills! :D

thank you all
regards

iashkan 07-07-2012 03:07 AM

can anybody help? plz

chrism01 07-08-2012 09:06 PM

Could be various things, but given your 'pause' comment, it may be that the disk is running out of temp space.
I don't know Matlab, but a lot of the more complex tools use intermediate temp files (sometimes of the hidden variety) to store results, before cleaning up at the end.
If several users are running stuff simultaneously, they may be clashing for disk space.

I'd also note that 'no_root_squash' is a dangerous option not only for security, but if a client is running as root on their own system, they may accidentally wipe out someone else's files on the main system.
Ensure user's are properly separated by uid and ideally separate gid as well. Shard groups can lead to accidental overwriting of other people's files.


All times are GMT -5. The time now is 04:36 PM.