Moved Albums Folder --Please Help!!?? Moved Albums Folder --Please Help!!??
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Moved Albums Folder --Please Help!!??

Started by Eman2112, September 15, 2013, 01:03:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Eman2112

ok. background.
Linux server - centOS6
cpg15
everything was Fine!
/ partition was 50GB and ran out of space.
I decided to mount a new drive with the intention of having it be the albums folder. 
I am no Linux guru...far closer to the noobish specrum.

I added a drive- 500gb, fdisk and makfs and edit fstab and mount... silly me I called it /Data. I thought I could just make another /albums but, that didn't work out. so I just copied the /var/www/html/domain/albums folder to   /data/ablums.back/    this seemed to work and now I had 44GB of "albums folder on both locations. now I couldn't figure out how to get that /data/albums.back/albums  where I needed it.
so
I added another drive. this one 80GB and fdisk and makfs and mount as /albumsbackup. then I moved the original albums folder to this 80GB drive
then I deleted the /data mount point/partition fidks sdb1 and makefs and this time I created the  mount point as /var/www/html/mcmahons/albums - created the albums folder and mounted it.
now in df -h I see the drive. so I again moved the original contents of the albums folder to the new albums folder and all 44GB moved.

]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       50G  3.1G   44G   7% /
tmpfs                 1.9G     0  1.9G   0% /dev/shm
/dev/sda1             485M   89M  371M  20% /boot
/dev/mapper/VolGroup-lv_home
                      5.5G  140M  5.1G   3% /home
/dev/sdb1             493G   44G  424G  10% /var/www/html/domain/albums
/dev/sdc1              79G  184M   75G   1% /albumtemp
[root@mcmahons ~]#


when I first rebooted the server I got an error at the site about " Failed to find block 'file_line'"  eventually I made my way to phpmyadmin and found that the pictures table was listed as corrupt.
I ran mysqlcheck on it and it repaired it and now I can browse it and  I see thousands of my images there.. as well the site came back up and is functional again.

I have all the images. my site is up as far as I can browse the site and login and all the categories are there.. and the number of views where the images WERE are all there.. I can get into admin everything seems to work!

I just have ZERO images. :'(

I hope this made sense.
the site can be seen at
http://mcmahons.us

I just wanted to move albums to a larger disk
was on sda1
now on sdb1
fstab info:
/dev/mapper/VolGroup-lv_root /                       ext4    defaults        1 1
UUID=b02a303f-afdb-45c3-b50c-06bcebff673c /boot                   ext4    defaults        1 2
/dev/mapper/VolGroup-lv_home /home                   ext4    defaults        1 2
/dev/mapper/VolGroup-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/sdb1               /var/www/html/mcmahons/albums                   ext4    defaults        1 2
/dev/sdc1               /albumtemp              ext4    defaults        1 2


the folder structure appears ok:every folder fits a gallery... ( except -rwxrwxrwx.  1 root     root      3712 Sep 14 16:32 | less   <<  I cannot seem to do anything with this.. dunno )

[root@mcmahons ~]# cd /var/www/html/mcmahons/albums/
[root@mcmahons albums]# ls
2005FordGT  FamilyFunDays             SGT0281  SGT1725  SGT3557  SGT4883
Corral      georgia2013               SGT0289  SGT2031  SGT3658  SGT4936
DellTemp    HolidaysBirthdaysParties  SGT0391  SGT2183  SGT3752  SGT4953
DellTemp1   index.php                 SGT0442  SGT2385  SGT3757  SGT5127
DellTemp2   | less                    SGT0495  SGT2458  SGT3844  SGT5467
DellTemp3   lost+found                SGT0512  SGT2468  SGT3897  SGT5471
Drums       mfmcroundup2013           SGT0514  SGT2662  SGT4073  SGT5531
edit        mitty2013                 SGT0744  SGT3183  SGT4452  userpics
EQL_diag    MobileUploads             SGT0749  SGT3428  SGT4516  videos
Family      Random                    SGT1405  SGT3480  SGT4601  workStuff
[root@mcmahons albums]#

here are the permissions:
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 2005FordGT
drwxrwxrwx. 14 apache   apache    4096 Aug 24 22:09 Corral
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 DellTemp
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 DellTemp1
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 DellTemp2
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 DellTemp3
drwxrwxrwx.  2 apache   apache   20480 Jan 30  2013 Drums
drwxrwxrwx.  2 apache   apache    4096 Jun 27 14:22 edit
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 EQL_diag
drwxrwxrwx.  7 apache   apache    4096 Nov 27  2012 Family
drwxrwxrwx. 14 apache   apache    4096 Sep  5 17:32 FamilyFunDays
drwxrwxrwx.  2 apache   apache   69632 Jul 16 20:55 georgia2013
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 HolidaysBirthdaysParties
-rwxr-xr-x.  1 apache   apache    1172 Nov 26  2012 index.php
-rwxrwxrwx.  1 root     root      3712 Sep 14 16:32 | less
drwxr-xr-x.  2 apache   apache   16384 Sep 14 14:54 lost+found
drwxrwxrwx.  2 apache   apache   28672 Feb 16  2013 mfmcroundup2013
drwxrwxrwx.  2 apache   apache   40960 Apr 30 18:33 mitty2013
drwxrwxrwx.  2 apache   apache   12288 Nov 26  2012 MobileUploads
drwxrwxrwx.  4 apache   apache    4096 Jul 29 12:52 Random
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT0281
drwxrwxrwx.  2 apache   apache    4096 Apr  8 18:58 SGT0289
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT0391
drwxrwxrwx.  2 apache   apache    4096 Apr  8 18:58 SGT0442
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT0495
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT0512
drwxrwxrwx.  2 apache   apache    4096 Jan  6  2013 SGT0514
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT0744
drwxrwxrwx.  2 apache   apache    4096 Apr  8 18:58 SGT0749
drwxrwxrwx.  2 apache   apache   12288 Nov 26  2012 SGT1405
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT1725
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT2031
drwxrwxrwx.  2 apache   apache    4096 Apr  8 19:00 SGT2183
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT2385
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT2458
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT2468
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT2662
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT3183
drwxrwxrwx.  2 apache   apache    4096 Apr  8 18:47 SGT3428
drwxrwxrwx.  2 apache   apache   12288 Nov 26  2012 SGT3480
drwxrwxrwx.  2 apache   apache    4096 Apr  8 19:05 SGT3557
drwxrwxrwx.  2 apache   apache    4096 Apr  8 19:10 SGT3658
drwxrwxrwx.  2 apache   apache   12288 Nov 26  2012 SGT3752
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT3183
drwxrwxrwx.  2 apache   apache    4096 Apr  8 18:47 SGT3428
drwxrwxrwx.  2 apache   apache   12288 Nov 26  2012 SGT3480
drwxrwxrwx.  2 apache   apache    4096 Apr  8 19:05 SGT3557
drwxrwxrwx.  2 apache   apache    4096 Apr  8 19:10 SGT3658
drwxrwxrwx.  2 apache   apache   12288 Nov 26  2012 SGT3752
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT3757
drwxrwxrwx.  2 apache   apache   12288 Nov 26  2012 SGT3844
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT3897
drwxrwxrwx.  2 apache   apache    4096 Apr  8 19:11 SGT4073
drwxrwxrwx.  2 apache   apache    4096 Aug 24 23:29 SGT4452
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT4516
drwxrwxrwx.  2 apache   apache    4096 Aug 28 14:14 SGT4601
drwxrwxrwx.  2 apache   apache    4096 Apr  8 19:16 SGT4883
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT4936
drwxrwxrwx.  2 apache   apache   12288 Apr  8 19:16 SGT4953
drwxrwxrwx.  2 apache   apache    4096 Apr  8 19:17 SGT5127
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT5467
drwxrwxrwx.  2 apache   apache    4096 Nov 26  2012 SGT5471
drwxrwxrwx.  2 apache   apache    4096 Apr  8 19:18 SGT5531
drwxrwxrwx.  3 apache   apache    4096 Jun 27 14:22 userpics
drwxrwxrwx.  2 apache   apache    4096 Jan 29  2013 videos
drwxrwxrwx.  4 apache   apache    4096 May 12 17:47 workStuf


please please please..can anyone help me get the images back in place? i can see them all in the database and the images seem to be in the right place. what am I missing?


Eman2112

in the config table in the DB the "fullpath" entry still says albums/
i still have the DB and all the images- just need the coppermine gallery to acknowledge the location of the albums folder again. tried changing setting in DB and changing back- no luck
i renamed config.inc.php and pit the install.php back and when i ran it it got to step "2" and said 7 things wrong and showed the albums and aldums/edit and such folders as missing.
thought they do physically exist.

i can move to /var/www/html/mcmahons/albums and everything is there.


someone has to have seen this before..  what is the best way to fix.

do i really have to reinstall and upload 9,000 + pics?
their all in the DB and thumbnailed an all, already...
Has to be an easier way.. - please help?!

Eman2112

well,  i figured it out. thanks for all the help, support, suggestions. etc... :-X  couldnt have done it without ya.. :o
oh yea.. nvm... :-X
:o

Αndré

Please mind that this project (including our support forum) is completely maintained by volunteers in their spare time. You cannot expect an answer within 24 hours, especially not on Sundays.

However, please resolve your thread as described in the board rules:
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
Resolve your threads
If you have found an answer to your question, resolve your thread. Don't just post "I have found the answer", but tell others what you actually did to solve your issues. Posting a link to the page where you found the answer might help. Describing what you did might help as well. Finally, you can tag your thread as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.

Eman2112

Quote from: Αndré on September 16, 2013, 02:12:10 PM
Please mind that this project (including our support forum) is completely maintained by volunteers in their spare time. You cannot expect an answer within 24 hours, especially not on Sundays.

However, please resolve your thread as described in the board rules:


totally my fault. i always have high expectations. you'd think i'd learn.

Αndré

Unfortunately you haven't described how you fixed your issue.