LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-10-2011, 09:45 AM   #1
armchair rambo
Member
 
Registered: Aug 2006
Location: minneapolis
Distribution: Fedora
Posts: 32

Rep: Reputation: 0
Unhappy LVM2 in use, files are disappearing!


I'm running Fedora 15 with LVM2. The contents of whole folders are disappearing after a few days! I put a file somewhere and a week later the folder is cleaned out. If there's a large # of files, they don't necessarily all disappear at once.

Directory structures are left intact. There's nothing in Lost+Found. Running on an Acer Laptop. Have never had a problem like this before, but I always used ext3.

I don't want to reinstall Fedora and use ext3, but the current situation is unnacceptable, even if everything is backed up.

Anyone heard of this or have some advice? I usually hang closer to the newbie forums, so I'd appreciate any help you all can offer.


sda1 is ext4 /boot 500MB
sda2 is lvm2 /tmp 55GB

Running df gets this:
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 48509808 11078976 36938200 24% /
udev 991416 0 991416 0% /dev
tmpfs 998876 340 998536 1% /dev/shm
tmpfs 998876 648 998228 1% /run
/dev/mapper/VolGroup-lv_root
48509808 11078976 36938200 24% /
tmpfs 998876 0 998876 0% /sys/fs/cgroup
tmpfs 998876 0 998876 0% /media
/dev/sda1 495844 71556 398688 16% /boot
/dev/mapper/VolGroup-lv_home
4708880 2039404 2430272 46% /home
/dev/mapper/VolGroup-lv_root
48509808 11078976 36938200 24% /tmp
/dev/mapper/VolGroup-lv_root
48509808 11078976 36938200 24% /var/tmp
/dev/mapper/VolGroup-lv_home
4708880 2039404 2430272 46% /home
 
Old 10-21-2011, 01:39 AM   #2
bluesatbridge
Member
 
Registered: Oct 2010
Location: england
Distribution: debian , redhat
Posts: 36

Rep: Reputation: 2
files from which location are getting deleted and is ur root a lvm too because if thats the case then the system wont work neither will it work if ur home directory is deleting files at random
.. if u can be specific please
 
Old 10-24-2011, 12:56 AM   #3
armchair rambo
Member
 
Registered: Aug 2006
Location: minneapolis
Distribution: Fedora
Posts: 32

Original Poster
Rep: Reputation: 0
it's two partitions on the same drive. All LVM2.
 
Old 10-24-2011, 01:10 AM   #4
armchair rambo
Member
 
Registered: Aug 2006
Location: minneapolis
Distribution: Fedora
Posts: 32

Original Poster
Rep: Reputation: 0
my mistake. partition #1 is ext4 (boot), partition 2 is LVM2. Within that partition #2, there are logical volumes. The only place there is a problem is with the largest volume, mounted at /tmp -- that's the one that loses files.
 
Old 10-24-2011, 04:15 AM   #5
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by armchair rambo View Post
The only place there is a problem is with the largest volume, mounted at /tmp -- that's the one that loses files.
Hi,

the /tmp directory is only for temporary files and normally its contents are being deleted during reboot. Do not store data inside that directory if you want to keep it.
 
Old 10-26-2011, 12:32 AM   #6
armchair rambo
Member
 
Registered: Aug 2006
Location: minneapolis
Distribution: Fedora
Posts: 32

Original Poster
Rep: Reputation: 0
Thank you, a straight answer! It is set up that way because after installing Fedora 15 the volume was mounted at /tmp and /var/tmp -- which I found when I started filling the home folder and running out of room too quickly.

So I'm wondering if maybe I just don't know how to read what's below or if the volume is in fact mounted at /tmp and /var/tmp and I need to change that. I'm looking at the volume labeled lv_root that is most of my 60GB hard drive and df says it's mounted at /tmp.

I will try making some new directories at / and move the files there.

This thread probably belongs in the newbie forum, apologies...


Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 48509808 17258784 30758392 36% /
udev 991416 0 991416 0% /dev
tmpfs 998876 1940 996936 1% /dev/shm
tmpfs 998876 660 998216 1% /run
/dev/mapper/VolGroup-lv_root
48509808 17258784 30758392 36% /
tmpfs 998876 0 998876 0% /sys/fs/cgroup
tmpfs 998876 0 998876 0% /media
/dev/sda1 495844 72799 397445 16% /boot
/dev/mapper/VolGroup-lv_home
4708880 1228780 3240896 28% /home
/dev/mapper/VolGroup-lv_root
48509808 17258784 30758392 36% /tmp
/dev/mapper/VolGroup-lv_root
48509808 17258784 30758392 36% /var/tmp
/dev/mapper/VolGroup-lv_home
4708880 1228780 3240896 28% /home
 
Old 10-26-2011, 12:40 AM   #7
armchair rambo
Member
 
Registered: Aug 2006
Location: minneapolis
Distribution: Fedora
Posts: 32

Original Poster
Rep: Reputation: 0
Smile probably solved

The files copied and, since there's enough room, the problem was my assumptions.

Thanks for the help. I'll wait a couple weeks to make sure no files disappear, then flag this thread as solved.

Thank you
Thank you
Thank you!
 
Old 10-26-2011, 01:03 AM   #8
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
It is best to mount shares under /media or /mnt.

For example,
/mnt/raid
/mnt/share
/mnt/cdrom

Those folder names are arbitrary but you get the idea. You shouldn't mount a filesystem under any tmp directory (that includes /var/tmp) unless it is truly meant to just limit the size available for tmp.
 
  


Reply

Tags
fedora, lvm2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Samba Share and Mac OS X - Files Disappearing? klugenratte Linux - Software 15 12-25-2011 11:58 PM
Recovering lost files on LVM2 + RAID5 following disk failure & re-assembly? cloudon7281 Linux - Server 0 09-21-2010 11:21 AM
[SOLVED] unison/iwatch sync - files disappearing from server edderkop Linux - Networking 2 06-08-2010 07:13 AM
"disappearing" files.... brucen Linux - General 3 06-10-2005 11:33 PM
Lvm2 pritambhavsar Programming 1 03-03-2005 07:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration