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

    About the storage for fog server in Ubuntu

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    3
    21
    2.9k
    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.
    • S
      Sebastian Roth Moderator
      last edited by

      @weidongyan Ok, I see, you decided to use ZFS. You should be able to adjust the mount point of that ZFS storage pool following the instructions here: https://docs.oracle.com/cd/E19253-01/819-5461/gaztn/index.html

      As well please run zpool status and post output here.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      W 1 Reply Last reply Reply Quote 0
      • W
        weidongyan @Sebastian Roth
        last edited by

        @Sebastian-Roth

        ~$ zfs get mountpoint storage-pool 
        NAME          PROPERTY    VALUE       SOURCE
        storage-pool  mountpoint  /images     local
        
        
        ~$ zpool status
          pool: storage-pool
         state: ONLINE
          scan: none requested
        config:
        
        	NAME          STATE     READ WRITE CKSUM
        	storage-pool  ONLINE       0     0     0
        	  raidz1-0    ONLINE       0     0     0
        	    sdb       ONLINE       0     0     0
        	    sdc       ONLINE       0     0     0
        	    sdd       ONLINE       0     0     0
        
        errors: No known data errors
        

        Did I succeed to mount the pool?

        1 Reply Last reply Reply Quote 0
        • W
          weidongyan @george1421
          last edited by

          @george1421 Hi, George. Right now I found that the directory /images has been created and fog server has been installed. Is there any way to fix this to use the storage pool that I created? I did not mount the volume before the installation of fog server.

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

            @weidongyan So what does dh -h show at the moment?

            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!

            W 2 Replies Last reply Reply Quote 0
            • W
              weidongyan @george1421
              last edited by

              @george1421

              Filesystem      Size  Used Avail Use% Mounted on
              udev            2.9G     0  2.9G   0% /dev
              tmpfs           597M  2.0M  595M   1% /run
              /dev/sda1       146G  8.5G  130G   7% /
              tmpfs           3.0G   19M  2.9G   1% /dev/shm
              tmpfs           5.0M     0  5.0M   0% /run/lock
              tmpfs           3.0G     0  3.0G   0% /sys/fs/cgroup
              /dev/loop8      3.8M  3.8M     0 100% /snap/gnome-system-monitor/57
              /dev/loop0      2.3M  2.3M     0 100% /snap/gnome-calculator/260
              /dev/loop5      3.8M  3.8M     0 100% /snap/gnome-system-monitor/100
              /dev/loop6       35M   35M     0 100% /snap/gtk-common-themes/818
              /dev/loop1       91M   91M     0 100% /snap/core/6350
              /dev/loop9      4.2M  4.2M     0 100% /snap/gnome-calculator/406
              /dev/loop10      15M   15M     0 100% /snap/gnome-characters/296
              /dev/loop11     1.0M  1.0M     0 100% /snap/gnome-logs/61
              /dev/loop12      13M   13M     0 100% /snap/gnome-characters/139
              /dev/loop15      15M   15M     0 100% /snap/gnome-logs/45
              /dev/loop13      89M   89M     0 100% /snap/core/7270
              /dev/loop14      43M   43M     0 100% /snap/gtk-common-themes/1313
              /dev/loop7      141M  141M     0 100% /snap/gnome-3-26-1604/74
              /dev/loop2      150M  150M     0 100% /snap/gnome-3-28-1804/67
              /dev/loop3       55M   55M     0 100% /snap/core18/1066
              /dev/loop4      141M  141M     0 100% /snap/gnome-3-26-1604/90
              tmpfs           597M   32K  597M   1% /run/user/121
              tmpfs           597M   44K  597M   1% /run/user/1000
              storage-pool    450G     0  450G   0% /image
              
              
              george1421G 1 Reply Last reply Reply Quote 0
              • W
                weidongyan @george1421
                last edited by

                @george1421 I realized that I mounted the storage-pool after the installation of fog server and the /images has some folders there before I mounted. Should I uninstall fog server to start again?

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

                  @weidongyan Well I don’t see your storage pool mounted anywhere.

                  What does lsblk show?

                  Wait you change the post I see the /images mounted now. Rerun the fog installer with the /images mounted now. That should fix the /images directory.

                  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!

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

                    After the fog installer is complete run this command ls -la /images and post the results here.

                    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!

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      weidongyan @george1421
                      last edited by

                      @george1421

                      total 16
                      drwxrwxrwx  4 fogproject root 4096 Aug  1 14:21 .
                      drwxr-xr-x 30 root       root 4096 Aug  2 09:38 ..
                      drwxrwxrwx  4 fogproject root 4096 Aug  1 16:37 dev
                      -rwxrwxrwx  1 fogproject root    0 Aug  1 14:21 .mntcheck
                      drwxrwxrwx  2 fogproject root 4096 Aug  1 14:21 postdownloadscripts
                      
                      
                      george1421G 1 Reply Last reply Reply Quote 0
                      • george1421G
                        george1421 Moderator @weidongyan
                        last edited by

                        @weidongyan ok that’s good. The FOG images directory is setup correctly. Now as long as after a reboot the /images directory is mounted then you should be good to go.

                        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!

                        W 1 Reply Last reply Reply Quote 0
                        • W
                          weidongyan @george1421
                          last edited by

                          @george1421 thank you for the help.

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

                          289

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project