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



  • 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.


  • Moderator

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



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

  • Moderator

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


 

410
Online

41.6k
Users

12.1k
Topics

114.4k
Posts