Files missing after folder rename.

Barkus
Posts: 6
Joined: Sun Dec 30, 2012 9:06 pm

Files missing after folder rename.

Postby Barkus » Tue Jan 29, 2013 6:17 pm

I renamed a folder on my HDA using regular explorer on a Windows 7 machine. After the rename, most of the files in the folder disappeared, several did not however, which I suspect is because they are stored on another drive. If you need info on those files, let me know. I tried letting it sit awhile, which didn't help and I also tried running "greyhole -fsck", which also didn't help.

I then ran a debug query on the file and got the following:

Code: Select all

[root@MediaServer ~]# greyhole --debug="Alvin and the Chipmunks - Chipwrecked [Blu-ray]/title00.mkv" Debugging file operations for file named "Alvin and the Chipmunks - Chipwrecked [Blu-ray]/title00.mkv" From DB ======= [2012-04-25 07:12:11] Task ID 1150999: write Movies/Alvin and the Chipmunks - Chipwrecked [Blu-ray]/title00.mkv [2012-12-20 18:32:13] Task ID 25035276: fsck_file Movies/Alvin and the Chipmunks - Chipwrecked [Blu-ray]/title00.mkv [2012-12-20 23:11:20] Task ID 25123351: fsck_file Movies/Alvin and the Chipmunks - Chipwrecked [Blu-ray]/title00.mkv [2012-12-20 23:11:26] Task ID 25126600: fsck_file Movies/Alvin and the Chipmunks - Chipwrecked [Blu-ray]/title00.mkv From logs ========= grep: Invalid range end gzip: stdout: Broken pipe grep: Invalid range end gzip: stdout: Broken pipe grep: Invalid range end gzip: stdout: Broken pipe grep: Invalid range end gzip: stdout: Broken pipe grep: Invalid range end gzip: stdout: Broken pipe grep: Invalid range end gzip: stdout: Broken pipe grep: Invalid range end gzip: stdout: Broken pipe grep: Invalid range end From filesystem =============== Landing Zone: ls: cannot access /var/hda/files/movies/Alvin and the Chipmunks - Chipwrecked [Blu-ray]/title00.mkv: No such file or directory Metadata Store: File copies: -rwxrw-r-- 1 tim users 7026474906 Mar 9 2012 /var/hda/drives/drive4/gh/Movies/Alvin and the Chipmunks - Chipwrecked [Blu-ray]/tit le00.mkv
Checking the directory, does indeed show the files still exist:

Code: Select all

[root@MediaServer ~]# cd "/var/hda/drives/drive4/gh/Movies/Alvin and the Chipmunks - Chipwrecked [Blu-ray]" [root@MediaServer Alvin and the Chipmunks - Chipwrecked [Blu-ray]]# ls Alvin and the Chipmunks - Chipwrecked [Blu-ray].tbn mymovies-back.jpg mymovies.xml title00.dvdid.xml title00.mkv folder.jpg mymovies-front.jpg Thumbs.db title00.jpg
The folder was originally named "Alvin and the Chipmunks - Chipwrecked [Blu-ray][DL]" and was changed to "Alvin and the Chipmunks - Chipwrecked [Blu-ray]", dropping the "[DL]" part.

Would running another fsck with the "-o, --find-orphaned-files" option pick up the missing files again?

Standard greyhole troubleshooting info below:

uname -r; rpm -q samba hda-greyhole

Code: Select all

2.6.35.14-106.fc14.x86_64 samba-3.5.11-79.fc14.x86_64 hda-greyhole-0.9.25-1.x86_64
http://fpaste.org/P8ax/
http://fpaste.org/hVYo/

mount

Code: Select all

/dev/sda2 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) /dev/sda1 on /boot type ext4 (rw) /dev/sda5 on /var/hda/files type ext4 (rw) /dev/sda6 on /var/hda/files/media type ext4 (rw) /dev/sdb1 on /var/hda/drives/drive1 type ext4 (rw) /dev/sdc1 on /var/hda/drives/drive2 type ext4 (rw) /dev/sdd1 on /var/hda/drives/drive3 type ext4 (rw) /dev/sde1 on /var/hda/drives/drive4 type ext4 (rw) /dev/sdf1 on /var/hda/drives/drive5 type ext4 (rw) /dev/sdg1 on /var/hda/drives/drive6 type ext4 (rw) /dev/sdh1 on /var/hda/drives/drive7 type ext4 (rw) /dev/sdi1 on /var/hda/drives/drive8 type ext4 (rw) /dev/sdk1 on /var/hda/drives/drive9 type ext4 (rw) /dev/sdj1 on /var/hda/drives/drive10 type ext4 (rw) /dev/sdl1 on /var/hda/drives/drive11 type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fdisk -l

Code: Select all

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x7b6f20a7 Device Boot Start End Blocks Id System /dev/sda1 * 2048 1026047 512000 83 Linux /dev/sda2 1026048 205826047 102400000 83 Linux /dev/sda3 205826048 209922047 2048000 82 Linux swap / Solaris /dev/sda4 209922048 1953523711 871800832 5 Extended /dev/sda5 209924096 721924095 256000000 83 Linux /dev/sda6 721926144 1953523711 615798784 83 Linux Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x6acf062c Device Boot Start End Blocks Id System /dev/sdb1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x96273669 Device Boot Start End Blocks Id System /dev/sdc1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x7b6f20bb Device Boot Start End Blocks Id System /dev/sdd1 63 3907029167 1953514552+ 83 Linux Disk /dev/sde: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sde1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdf: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xf8cf7c9f Device Boot Start End Blocks Id System /dev/sdf1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdg: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x6c102885 Device Boot Start End Blocks Id System /dev/sdg1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdh: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdh1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdi: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdi1 63 3907029167 1953514552+ 83 Linux WARNING: GPT (GUID Partition Table) detected on '/dev/sdj'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdj: 3000.6 GB, 3000592982016 bytes 255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdj1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. WARNING: GPT (GUID Partition Table) detected on '/dev/sdk'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdk: 3000.6 GB, 3000592982016 bytes 255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdk1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. WARNING: GPT (GUID Partition Table) detected on '/dev/sdl'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdl: 3000.6 GB, 3000592982016 bytes 255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdl1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary.
df -h

Code: Select all

Filesystem Size Used Avail Use% Mounted on /dev/sda2 97G 6.0G 86G 7% / tmpfs 2.0G 0 2.0G 0% /dev/shm /dev/sda1 485M 48M 412M 11% /boot /dev/sda5 241G 1.1G 228G 1% /var/hda/files /dev/sda6 579G 571G 8.1G 99% /var/hda/files/media /dev/sdb1 1.8T 1.8T 4.1G 100% /var/hda/drives/drive1 /dev/sdc1 1.8T 1.8T 22G 99% /var/hda/drives/drive2 /dev/sdd1 1.8T 1.8T 12G 100% /var/hda/drives/drive3 /dev/sde1 1.8T 1.8T 37G 98% /var/hda/drives/drive4 /dev/sdf1 1.8T 1.8T 8.6G 100% /var/hda/drives/drive5 /dev/sdg1 1.8T 1.8T 18G 100% /var/hda/drives/drive6 /dev/sdh1 1.8T 1.8T 21G 99% /var/hda/drives/drive7 /dev/sdi1 1.8T 1.8T 23G 99% /var/hda/drives/drive8 /dev/sdk1 2.7T 2.7T 21G 100% /var/hda/drives/drive9 /dev/sdj1 2.8T 1021G 1.8T 37% /var/hda/drives/drive10 /dev/sdl1 2.8T 1013G 1.8T 37% /var/hda/drives/drive11
greyhole --stats

Code: Select all

Greyhole Statistics =================== Storage Pool Total - Used = Free + Trash = Possible /var/hda/files/media/gh: 578G - 570G = 8G + 0G = 8G /var/hda/drives/drive1/gh: 1834G - 1830G = 4G + 0G = 4G /var/hda/drives/drive2/gh: 1834G - 1812G = 22G + 4G = 26G /var/hda/drives/drive3/gh: 1834G - 1822G = 11G + 0G = 11G /var/hda/drives/drive4/gh: 1834G - 1797G = 37G + 9G = 45G /var/hda/drives/drive5/gh: 1834G - 1825G = 9G + 4G = 12G /var/hda/drives/drive6/gh: 1834G - 1816G = 18G + 9G = 27G /var/hda/drives/drive7/gh: 1834G - 1813G = 21G + 0G = 21G /var/hda/drives/drive8/gh: 1834G - 1811G = 22G + 0G = 22G /var/hda/drives/drive9/gh: 2751G - 2730G = 20G + 7G = 27G /var/hda/drives/drive10/gh: 2794G - 1021G = 1774G + 0G = 1774G /var/hda/drives/drive11/gh: 2794G - 1012G = 1782G + 32G = 1813G ========================================== Total: 23587G - 19860G = 3727G + 63G = 3791G
mysql -u root -phda -e "select * from disk_pool_partitions" hda_production

Code: Select all

+----+-------------------------+--------------+---------------------+---------------------+ | id | path | minimum_free | created_at | updated_at | +----+-------------------------+--------------+---------------------+---------------------+ | 1 | /var/hda/files/media | 10 | 2012-04-07 02:40:44 | 2012-04-07 02:40:44 | | 2 | /var/hda/drives/drive1 | 10 | 2012-04-09 23:40:03 | 2012-04-09 23:40:03 | | 3 | /var/hda/drives/drive2 | 10 | 2012-04-11 17:10:46 | 2012-04-11 17:10:46 | | 4 | /var/hda/drives/drive3 | 10 | 2012-04-16 02:13:11 | 2012-04-16 02:13:11 | | 5 | /var/hda/drives/drive4 | 10 | 2012-04-18 23:56:21 | 2012-04-18 23:56:21 | | 6 | /var/hda/drives/drive5 | 10 | 2012-04-22 21:08:17 | 2012-04-22 21:08:17 | | 7 | /var/hda/drives/drive6 | 10 | 2012-04-25 15:16:08 | 2012-04-25 15:16:08 | | 8 | /var/hda/drives/drive7 | 10 | 2012-05-15 17:05:24 | 2012-05-15 17:05:24 | | 9 | /var/hda/drives/drive8 | 10 | 2012-05-15 17:05:25 | 2012-05-15 17:05:25 | | 10 | /var/hda/drives/drive9 | 10 | 2012-07-10 21:26:25 | 2012-07-10 21:26:25 | | 11 | /var/hda/drives/drive10 | 10 | 2012-11-30 01:21:22 | 2012-11-30 01:21:22 | | 12 | /var/hda/drives/drive11 | 10 | 2012-11-30 01:21:24 | 2012-11-30 01:21:24 | +----+-------------------------+--------------+---------------------+---------------------+
http://fpaste.org/oaUI/

greyhole --view-queue

Code: Select all

Greyhole Work Queue Statistics ============================== This table gives you the number of pending operations queued for the Greyhole daemon, per share. Write Delete Rename Check Books 0 0 0 0 Docs 0 0 0 0 Movies 0 0 0 0 Music 0 0 0 0 Pictures 0 0 0 0 Recorded TV 0 0 0 0 Software 0 0 0 0 Tim 0 0 0 0 =============================================== Total 0 0 0 0 Write Delete Rename Check The following is the number of pending operations that the Greyhole daemon still needs to parse. Until it does, the nature of those operations is unknown. Spooled operations that have been parsed will be listed above and disappear from the count below. Spooled 0
tail /var/log/greyhole.log

Code: Select all

Jan 29 20:15:45 7 sleep: Nothing to do... Sleeping. Jan 29 20:15:55 7 sleep: Nothing to do... Sleeping. Jan 29 20:16:05 7 sleep: Nothing to do... Sleeping. Jan 29 20:16:15 7 sleep: Nothing to do... Sleeping. Jan 29 20:16:25 7 sleep: Nothing to do... Sleeping. Jan 29 20:16:35 7 sleep: Nothing to do... Sleeping. Jan 29 20:16:45 7 sleep: Nothing to do... Sleeping. Jan 29 20:16:56 7 sleep: Nothing to do... Sleeping. Jan 29 20:17:06 7 sleep: Nothing to do... Sleeping. Jan 29 20:17:16 7 sleep: Nothing to do... Sleeping.

THANKS! :)

ribbles
Posts: 11
Joined: Tue Dec 11, 2012 5:46 pm

Re: Files missing after folder rename.

Postby ribbles » Wed Feb 06, 2013 2:16 pm

I'm wondering if the [xxx][xxx] is confusing the filename parser. Does it happen to directories that don't have that double bracket sequence in them?

Barkus
Posts: 6
Joined: Sun Dec 30, 2012 9:06 pm

Re: Files missing after folder rename.

Postby Barkus » Sun Feb 10, 2013 2:40 pm

I'm wondering if the [xxx][xxx] is confusing the filename parser. Does it happen to directories that don't have that double bracket sequence in them?
No. A very large number of directories have the brackets and I have never had any trouble before.

Who is online

Users browsing this forum: No registered users and 3 guests