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

    Deploying to machine with SSD upgrade

    Scheduled Pinned Locked Moved
    General Problems
    deployment ssd hdd automation
    2
    2
    568
    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.
    • C
      cbrherms
      last edited by

      Hi all.

      Been using fog for 2 academic cycles now and very happy with how it’s been working.

      This year I’ve had a very specific issue I’ve had to solve though.

      40 of our computers have had an upgrade, adding in a 240GB SSD as the boot drive with the original 1TB HDD becoming a workspace drive for users.
      The OS aspect has been fine as these computers are in a gpo that pushes user profiles to the larger hard drive, but on the deployment side of things I had to do a number of things manually to get my main base image to install deploy correctly.

      Firstly, I had to wipe the original HDD manually, install the SSD and disconnect the HDD, deploy the image, then reconnect the HDD and format it to NTFS.

      I had a play around with setting the install to drive but to get that to work I’d have to have already wiped the HDD and figured out whether it is seeing the SSD as /Dev/SDA or /Dev/SDB (it wasn’t the same on every machine).

      So, question is, is it possible for fog to figure out which is the SSD by itself?
      If it could, then there could be the option to install to SSD in the host config rather than specify a device that might change, and could potentially then also have a config to format remaining drives in a specific way (i.e. NTFS for a secondary drive…)

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        This is where computer imaging isn’t exactly a smooth process. Unfortunately, machines implement displaying a drive however they see fit, even across the same model of different machines. Typically the channels that an HDD is connected to (SATA 0, SATA 1, etc…) are followed to some level, but sometimes this isn’t the case (as I imagine you’re seeing now).

        It is possible to tell FOG which drive to use, though it doesn’t know if the drive is ssd or hybrid or spinner. This is completely dependent on the machine, and if you can’t rely on which will be populated as what letter (my guess is your machines were setup in RAID mode of sorts?) that isn’t really going to help you much.

        One way you could do this though, is to swap out the /usr/share/fog/lib/funcs.sh file and change the getHardDisk function to detect your drive sizes. (You can do the swap out using postinit scripts.) But then it’s implicit that all machines will follow the same method.

        The steps I would take, albeit more time consuming initially:

        1. Install the SSD to the 1st SATA Channel (if that’s how your machines are setup – I can’t help much in the case of NVMe/MMC builtin controllers as I have nothing to base them on yet).

        2. Move the 1TB to the second SATA Channel.

        3. Ensure the machine’s firmware is updated to the latest and greatest.

        4. Ensure the machine’s SATA operation mode is AHCI.

        If these don’t make your SSD display as /dev/sda then I don’t know else to tell you to try.

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        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

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

        165

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project