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

How to check if I actually moved my /images/ directory to secondary HDD

Scheduled Pinned Locked Moved Solved
FOG Problems
2
4
491
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
    HowToGravity
    last edited by Jun 18, 2018, 9:30 PM

    I am completely new to FOG and Linux in general. Sorry if don’t understand certain Linux or FOG terms.

    System:
    Debian 9.4
    FOG 1.5.4

    I want to move the directory /images/ to it’s own HDD because I have a 1TB HDD spare that I would like to be dedicated to storing images only and nothing else. I followed the direction https://wiki.fogproject.org/wiki/index.php/Moving_your_images_directory/Adding_Storage_to_the_Images_directory, and I feel like this is what I needed to do and I followed every step that is described on there word for word. How do I check if the directory /images/ have been moved to the second HDD? How do i know that all my future images will be saved to the directory that is on the second HDD?

    This is just a test run for me so any mistake I’ve made and will make will not hurt me. Currently I just have a spare 250 HDD connected to act as the 1TB i described above.

    Any suggestion is appreciated.

    G 1 Reply Last reply Jun 18, 2018, 10:50 PM Reply Quote 0
    • G
      george1421 Moderator @HowToGravity
      last edited by george1421 Jun 18, 2018, 4:51 PM Jun 18, 2018, 10:50 PM

      @howtogravity OK to test if your updates are correct. Please post the output of these commands.

      sudo lsblk
      and
      sudo df -h

      The first command shows the block devices (i.e. storage devices) that your fog server knows about.

      The second command shows how your storage devices are connected.

      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 1
      • H
        HowToGravity
        last edited by HowToGravity Jun 19, 2018, 9:12 AM Jun 19, 2018, 1:12 PM

        @george1421 Okay here are the outputs.

        sudo lsblk
        NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
        sda      8:0    0 232.9G  0 disk
        ├─sda1   8:1    0   512M  0 part /boot/efi
        ├─sda2   8:2    0 224.4G  0 part /
        └─sda3   8:3    0     8G  0 part [SWAP]
        sdb      8:16   0 232.9G  0 disk
        └─sdb1   8:17   0 232.9G  0 part /images
        sr0     11:0    1  1024M  0 rom
        
        sudo df -h
        Filesystem      Size  Used Avail Use% Mounted on
        udev            3.9G     0  3.9G   0% /dev
        tmpfs           795M  9.4M  786M   2% /run
        /dev/sda2       220G   16G  194G   8% /
        tmpfs           3.9G   18M  3.9G   1% /dev/shm
        tmpfs           5.0M  4.0K  5.0M   1% /run/lock
        tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
        /dev/sdb1       229G   11G  207G   5% /images
        /dev/sda1       511M  132K  511M   1% /boot/efi
        tmpfs           795M   16K  795M   1% /run/user/116
        tmpfs           795M   28K  795M   1% /run/user/1000
        
        G 1 Reply Last reply Jun 19, 2018, 6:39 PM Reply Quote 0
        • G
          george1421 Moderator @HowToGravity
          last edited by george1421 Jun 19, 2018, 12:40 PM Jun 19, 2018, 6:39 PM

          @howtogravity OK very good. The lsblk program tells us everything, and your setup is perfect. As long as when you reboot the lsblk gives you the same values you are good to go.

          So if you look at the output of lsblk you can see that /dev/sdb1 (the first partition on the second hard drive) is connected to (mounted on) /images. This means any files written to /images will go to your second hard drive.

          The output of the df -h program tells us how much disk usage you currently have/are using. Those numbers look good too.

          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
          • 1 / 1
          1 / 1
          • First post
            2/4
            Last post

          188

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project