Moving Images and changing image location



  • I have been running FOG on an old Laptop and it doesn’t have much space. I have recently obtained a 1 TB external Drive. I cannot find a process for moving the images from the local HD to the external and telling FOG to look there for images as well as saving new images there.

    I searched the Wiki and found the explanation of Storage Nodes, but it doesn’t really give steps for moving your Main Storage Node from /images to another location.

    Anybody have steps to do this?



  • Tom has fixed the issues and I am 100% up and functioning


  • Senior Developer

    To fix removing vsftpd removed the /etc/rc2.d/20vsftpd link. Removed the original /etc/vsftpd.conf file and then was able to purge vsftpd from the server.

    Added the fstab to make the filesystem boot to the same location everytime.

    Checked all settings and file size is now reporting properly.


  • Senior Developer

    @Tim-Trageser

    I am always trying to help, but I too am busy.

    Hopefully you check messages before you wipe.

    I’m about 99% certain if I can look, I can likely fix it.



  • Well since no one has anything further to try I am going to wipe the system and start over. Thanks for trying all.



  • It is a broken link:

    Type: Link (broken) (inode/symlink)
    Link Target: …/init.d/vsftpd


  • Moderator

    Where does /etc/rc2.d/S20vsftpd link? And does that file exist?



  • If no one else has any ideas I might need to just wipe the system and start over, but I am going to hold off until this afternoon. I have several systems to set up before the end of the week. Thanks for all the work Wayne.


  • Moderator

    Anyone have any ideas on this?


  • Moderator

    Looks like vsftp is a big part of the problem… I have to head home in about 15 minutes…

    Posting this for others to look at.

    I’ve tried several ways to get rid of it so I can reinstall it but none work.

    mj@fog-server:/$ ps -A| grep vsftp
    22728 ?        00:00:00 vsftpd
    mj@fog-server:/$ kill -KILL 22728
    bash: kill: (22728) - Operation not permitted
    mj@fog-server:/$ sudo kill -KILL 22728
    mj@fog-server:/$ sudo apt-get remove vsftpd
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      vsftpd
    0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
    1 not fully installed or removed.
    After this operation, 361 kB disk space will be freed.
    Do you want to continue? [Y/n] y
    (Reading database ... 199852 files and directories currently installed.)
    Removing vsftpd (3.0.2-1ubuntu2.14.04.1) ...
    invoke-rc.d: dangling symlink: /etc/rc2.d/S20vsftpd
    dpkg: error processing package vsftpd (--remove):
     subprocess installed pre-removal script returned error exit status 102
    invoke-rc.d: dangling symlink: /etc/rc2.d/S20vsftpd
    dpkg: error while cleaning up:
     subprocess installed post-installation script returned error exit status 102
    Errors were encountered while processing:
     vsftpd
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    mj@fog-server:/$ sudo aptitude remove vsftpd
    The following packages will be REMOVED:  
      vsftpd 
    0 packages upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
    Need to get 0 B of archives. After unpacking 361 kB will be freed.
    (Reading database ... 199852 files and directories currently installed.)
    Removing vsftpd (3.0.2-1ubuntu2.14.04.1) ...
    invoke-rc.d: dangling symlink: /etc/rc2.d/S20vsftpd
    dpkg: error processing package vsftpd (--remove):
     subprocess installed pre-removal script returned error exit status 102
    invoke-rc.d: dangling symlink: /etc/rc2.d/S20vsftpd
    dpkg: error while cleaning up:
     subprocess installed post-installation script returned error exit status 102
    Errors were encountered while processing:
     vsftpd
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install.  Trying to recover:
                                             
    mj@fog-server:/$
    mj@fog-server:/$ sudo service nfs-kernel-server status
    nfsd running
    mj@fog-server:/$ sudo service nfs-kernel-server restart
     * Stopping NFS kernel daemon                                            [ OK ] 
     * Unexporting directories for NFS kernel daemon...                      [ OK ] 
     * Exporting directories for NFS kernel daemon...                        [ OK ] 
     * Starting NFS kernel daemon                                            [ OK ] 
    mj@fog-server:/$ uname -a
    Linux fog-server 3.16.0-37-generic #51~14.04.1-Ubuntu SMP Wed May 6 15:23:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
    mj@fog-server:/$ sudo apt-get purge vsftpd
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      vsftpd*
    0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
    1 not fully installed or removed.
    After this operation, 361 kB disk space will be freed.
    Do you want to continue? [Y/n] y
    (Reading database ... 199852 files and directories currently installed.)
    Removing vsftpd (3.0.2-1ubuntu2.14.04.1) ...
    invoke-rc.d: dangling symlink: /etc/rc2.d/S20vsftpd
    dpkg: error processing package vsftpd (--purge):
     subprocess installed pre-removal script returned error exit status 102
    invoke-rc.d: dangling symlink: /etc/rc2.d/S20vsftpd
    dpkg: error while cleaning up:
     subprocess installed post-installation script returned error exit status 102
    Errors were encountered while processing:
     vsftpd
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    mj@fog-server:/$ sudo /etc/rc2.d/s20vsftpd stop
    sudo: /etc/rc2.d/s20vsftpd: command not found
    mj@fog-server:/$ sudo apt-get remove --purge --auto-remove vsftpd -y
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      vsftpd*
    0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
    1 not fully installed or removed.
    After this operation, 361 kB disk space will be freed.
    (Reading database ... 199852 files and directories currently installed.)
    Removing vsftpd (3.0.2-1ubuntu2.14.04.1) ...
    invoke-rc.d: dangling symlink: /etc/rc2.d/S20vsftpd
    dpkg: error processing package vsftpd (--purge):
     subprocess installed pre-removal script returned error exit status 102
    invoke-rc.d: dangling symlink: /etc/rc2.d/S20vsftpd
    dpkg: error while cleaning up:
     subprocess installed post-installation script returned error exit status 102
    Errors were encountered while processing:
     vsftpd
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    mj@fog-server:/$ 
    
    

  • Moderator

    via TeamViewer,

    I updated the OS, then ripped out everything that had anything to do with PHP.

    The x.x.x.x/fog/management login screen shows now, at least.

    Going to look at the new image location now.


  • Moderator

    I’m willing to help via TeamViewer if you’re up for it. PM me.



  • Anybody have any other ideas? If I can’t solve both the blank FOG Homepage and having the images in the new location by early next week I will just have to completely redo my FOG machine.



  • MySQL is running and .fogsettings has the password set properly


  • Senior Developer

    Can you check that MySQL is running and if you have a MySQL password that it is properly set in config?


  • Moderator

    Well… What i suggested can easily be un-done by just swapping the directories back.

    You might ought to export your DB before hand.

    backup:

    mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
    

    restore:

    mysql -u root -p[root_password] [database_name] < dumpfilename.sql
    

    Move the db out:

    mv /var/lib/mysql /var/lib/mysqlOLD
    

    Put the db back:

    mv /var/lib/mysqlOLD /var/lib/mysql
    

    After moving the DB out of there, you should be presented with the DB schema updater. Go ahead and do it. It can always be undone later by moving the files back.



  • This is a snippet of the bottom of the log:

    Apache Error Log

    Any more ideas about getting the page to show properly, rather than just white? Should I do what Wayne suggested?


  • Senior Developer

    @Tim.Trageser said:

    Refreshing with Shift+F5 did not work. Just for transparency I did what Tom said and that fixed Apache. I did not do what Wayne suggested.
    Can you get a copy of the Apache error logs



  • Refreshing with Shift+F5 did not work. Just for transparency I did what Tom said and that fixed Apache. I did not do what Wayne suggested.


  • Moderator

    Shift + F5


Log in to reply
 

414
Online

38920
Users

10688
Topics

101407
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.