files disapear after fsck [RESOLVED]

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

files disapear after fsck [RESOLVED]

Postby modem7 » Thu Apr 19, 2012 9:56 am

Hey guys,

If I move files from var/hda/files/downloads to var/hda/files/anime and then do an fsck, the files inside the folder of /anime disappear.

Any ideas?

Could it be because /var/hda/files is my LZ (and not pooled)?

Image


Many thanks!
Last edited by modem7 on Mon Apr 23, 2012 5:42 am, edited 1 time in total.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: files disapear after fsck

Postby bigfoot65 » Thu Apr 19, 2012 10:44 am

What do you mean disappear? Are there symlinks left behind? Also is this move being done from a client via Samba or directly on the HDA?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: files disapear after fsck

Postby modem7 » Thu Apr 19, 2012 10:56 am

What do you mean disappear? Are there symlinks left behind? Also is this move being done from a client via Samba or directly on the HDA?
If I move var/hda/files/downloads/HorribleSubs_One_Piece_-_543_360p_mkv which has 3 files inside to var/hda/files/anime/HorribleSubs_One_Piece_-_543_360p_mkv

then do a fsck, the folder structure stays (so HorribleSubs_One_Piece_-_543_360p_mkv folder is there) but there are no files inside it.

I'm doing this via the gui (via VNC)

I'm not sure how to check for symbolic links? (apologies)

Many thanks!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: files disapear after fsck

Postby bigfoot65 » Thu Apr 19, 2012 11:08 am

Ok, so your are moving a folder with files on the HDA then. Did you enable mount shares locally with Greyhole?

http://wiki.amahi.org/index.php/Mount_Shares_Locally

This is the warning on the wiki page:
Important Warnings
You should never change or delete files in the shared directories (/var/hda/files/* by default) directly on the HDA, using the terminal, or the Gnome file browser, for the shares for which you checked the Uses pool option in the Amahi dashboard. If you want to work with files on Greyhole shares on the HDA, you should Mount Shares Locally.

You should be safe reading existing files directly, or adding new files directly, as long as don't care that your new files will only be moved into the storage pool during the next check, which runs automatically at midnight (or manually using greyhole --fsck). Until then, your new files will be stored in your shared directories (normally /var/hda/files/share_name/).

Also, touching anything inside the gh directories that Greyhole creates at the root of your partitions is a recipe for disaster.
When you mess with files in shares on the HDA, you need to have this running.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: files disapear after fsck

Postby modem7 » Thu Apr 19, 2012 11:19 am

Ok, so your are moving a folder with files on the HDA then. Did you enable mount shares locally with Greyhole?

http://wiki.amahi.org/index.php/Mount_Shares_Locally

This is the warning on the wiki page:
Important Warnings
You should never change or delete files in the shared directories (/var/hda/files/* by default) directly on the HDA, using the terminal, or the Gnome file browser, for the shares for which you checked the Uses pool option in the Amahi dashboard. If you want to work with files on Greyhole shares on the HDA, you should Mount Shares Locally.

You should be safe reading existing files directly, or adding new files directly, as long as don't care that your new files will only be moved into the storage pool during the next check, which runs automatically at midnight (or manually using greyhole --fsck). Until then, your new files will be stored in your shared directories (normally /var/hda/files/share_name/).

Also, touching anything inside the gh directories that Greyhole creates at the root of your partitions is a recipe for disaster.
When you mess with files in shares on the HDA, you need to have this running.

Yupyup, all locally mounted.

What I *HAVE* done however, is enabled disk-cache in the BIOS, this SEEMS to be giving me good write speed for now.

I'll keep monitoring, and hopefully everything will be A-OK.

Thank you very much for this! Helpful as always BigFoot.

Who is online

Users browsing this forum: No registered users and 14 guests