• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Store location

    Scheduled Pinned Locked Moved
    General
    3
    5
    455
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Hieuphung
      last edited by

      Hello everyone, I’m new here. Can i change default image store location? How to do that? sorry for my bad english.

      thank you in advance!

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        To answer your question, Yes you can.

        Please tell us a bit more about what your problem is and how you want to solve it.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        1 Reply Last reply Reply Quote 0
        • EduardoTSeoaneE
          EduardoTSeoane
          last edited by

          I mount /images on one disk and /images/dev on another disk and mysql database dir on a ssd and mysql temp dir on the shared memory (/dev/shm) using fstab and adding a custom settings to mysql systemd execution. On tjis way i dont touch fog basic system settings.

          If you are interested tellme and i try to explain it carefully with more details.

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @EduardoTSeoane
            last edited by

            @EduardoTSeoane said in Store location:

            mount /images on one disk and /images/dev on another disk

            For fog, this is not a good idea. The issue comes on image upload. FOG will capture an image to /images/dev directory because that is the only directory that has a share level of read-write. At the end of the upload process the FOS Linux engine connects to the fog server over ftp and issues a mv command to move the files from /images/dev/<mac_name> to /images/<image_name>. The problem is this: If the image is on the same physical disk the only thing that is changed is the file pointers no data is copied anywhere. The raw data files stay on the hard drive where they were uploaded only the directory file pointers are changed. Now if /images/dev are on one disk and /images are on a different disk, the ftp mv command has to copy all the data from one disk to the other disk. This takes time copying a multi-GB file from one disk to the next. Will it work, yes. Will your upload take a long time, yes.

            There is no advantage to splitting /images and /images/dev into two disks, but there are a few disadvantages.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            EduardoTSeoaneE 1 Reply Last reply Reply Quote 0
            • EduardoTSeoaneE
              EduardoTSeoane @george1421
              last edited by EduardoTSeoane

              @george1421 ok i Don’t Think about that. I Will do the corrections tomorrow. What about the rest of mounts?

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              133

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project