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

Store location

Scheduled Pinned Locked Moved
General
3
5
433
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 Sep 21, 2019, 8:28 AM

    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
    • G
      george1421 Moderator
      last edited by Sep 21, 2019, 12:33 PM

      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
      • E
        EduardoTSeoane
        last edited by Sep 22, 2019, 9:22 AM

        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.

        G 1 Reply Last reply Sep 22, 2019, 12:37 PM Reply Quote 0
        • G
          george1421 Moderator @EduardoTSeoane
          last edited by Sep 22, 2019, 12:37 PM

          @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!

          E 1 Reply Last reply Sep 22, 2019, 9:19 PM Reply Quote 0
          • E
            EduardoTSeoane @george1421
            last edited by EduardoTSeoane Sep 23, 2019, 3:20 PM Sep 22, 2019, 9:19 PM

            @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
            1 / 1
            • First post
              1/5
              Last post

            151

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project