HT200117: Redirected to 202030 [was OS X Server: Software Update Service compatibility]

Learn about Redirected to 202030 [was OS X Server: Software Update Service compatibility]
etxi

Q: OS X Server Mountain Lion: Place of Software Update Files on HDD?

Does anybody know where Mountain Lion OS X Server is saving the update files for his workstation-clients? I could not delete the files via the Server App. I've removed the files in "Library/Server/Software Updates" but I'm still missing 20 GB on my hdd space. Thank you!

MacBook Pro, OS X Mountain Lion (10.8.2)

Posted on Sep 25, 2012 3:37 AM

Close

Q: OS X Server Mountain Lion: Place of Software Update Files on HDD?

  • All replies
  • Helpful answers

  • by Mark23,Solvedanswer

    Mark23 Mark23 Sep 25, 2012 3:47 AM in response to etxi
    Level 3 (975 points)
    Sep 25, 2012 3:47 AM in response to etxi

    Software update storage

    Software updates are stored in the /Library/Server/Software Update/Data/ folder and can easily take a large amount of disk space over time and cause problems with system resources. In a production environment, it is important to prevent the system disk from becoming full and causing instability.

    To eliminate the possibility of software updates filling a volume, system administrators normally limit the type of data being stored on the startup volume and place data that could grow substantially in size on other volumes. For example, you could use a RAID volume to store software updates.

  • by looping_fr,

    looping_fr looping_fr Oct 25, 2012 3:33 AM in response to Mark23
    Level 1 (0 points)
    Oct 25, 2012 3:33 AM in response to Mark23

    ok, it's a good ID, but how can I modify it?

  • by zpjet,

    zpjet zpjet Oct 30, 2012 4:15 AM in response to looping_fr
    Level 1 (0 points)
    Oct 30, 2012 4:15 AM in response to looping_fr

    In ML, there's a lot of use of command serveradmin.

     

    First, sitch the SWUS off. Then, check what is the default path

     

    sudo serveradmin fullstatus swupdate

     

    then set a new path

     

    sudo serveradmin settings swupdate:updatesDocRoot = "/Volumes/Data/SWUS/"

  • by viellencerts,

    viellencerts viellencerts Dec 2, 2013 12:53 PM in response to zpjet
    Level 1 (0 points)
    Dec 2, 2013 12:53 PM in response to zpjet

    I just tried this on a server running 10.9. As soon as I turn the software update service on again the path reverts back to `/Library/Server/Software Update/Data/`. Any ideas on how to correct this?

  • by MrHoffman,

    MrHoffman MrHoffman Dec 2, 2013 5:15 PM in response to viellencerts
    Level 6 (15,612 points)
    Mac OS X
    Dec 2, 2013 5:15 PM in response to viellencerts

    viellencerts wrote:

     

    I just tried this on a server running 10.9. As soon as I turn the software update service on again the path reverts back to `/Library/Server/Software Update/Data/`. Any ideas on how to correct this?

     

    Use Server.app and tell it where you want the service data.  Server.app, connect to the server if necessary, select the server at the top left, select Settings over to the right, and then select Service Data, and tell Server.app where you want the data.

  • by Phil Brown2,

    Phil Brown2 Phil Brown2 Dec 24, 2015 11:04 AM in response to MrHoffman
    Level 1 (69 points)
    Mac OS X
    Dec 24, 2015 11:04 AM in response to MrHoffman

    I know this is an old post, but I wanted to reply here for others who are still searching for this obscure information. The serveradmin command to redirect the updates works on Mavericks Server, but you have to include the Data folder, or the setting will continue to show the default /Library/Server location. Thus:

     

    sudo serveradmin settings swupdate:updatesDocRoot = "/Volumes/Data/SWUS/Data"

     

    will return the new path. ... At least that's how it worked for me. Until I added the Data folder at the end of the command, I got the same results as MrHoffman, that is, the default path.

     

    If you use Server.app to change the volume for the service data storage, it will move everything out of /Library/Server to the new location -- in other words, all the services, not just Software Update.

  • by alexfromwynantskill,

    alexfromwynantskill alexfromwynantskill Jan 11, 2016 10:45 AM in response to Phil Brown2
    Level 1 (0 points)
    Jan 11, 2016 10:45 AM in response to Phil Brown2

    I tried the methods above, none of them worked for me. After entering:

     

    sudo serveradmin settings swupdate:updatesDocRoot = "/mnt/OMV/SoftwareUpdate/Data";

     

    The command would always return:

     

    swupdate:updatesDocRoot = "/Library/Server/Software Update/Data/"

     

    As a work around I am doing the following:

     

    sudo mkdir -p /mnt/OMV/SoftwareUpdate/Data;

    sudo mv /Library/Server/Software\ Update/Data/* /mnt/OMV/SoftwareUpdate/Data;

    sudo rm -r /Library/Server/Software\ Update/Data/;

    sudo ln -s /mnt/OMV/SoftwareUpdate/Data/ /Library/Server/Software\ Update/Data;

     

    The commands above do the following:

     

    • Creates the data data folder, if it does not exist.
    • Move any downloaded updates and content to your desired location.
    • Removes the default data folder.
    • Creates a symbolic link in the default data location that points to your data folder.

     

    It's not as clean but it should work.

  • by Phil Brown2,

    Phil Brown2 Phil Brown2 Jan 11, 2016 11:36 AM in response to alexfromwynantskill
    Level 1 (69 points)
    Mac OS X
    Jan 11, 2016 11:36 AM in response to alexfromwynantskill

    Question: Did you create your target (relocated) "Software Update" folder before trying to run the swupdate:updatesDocRoot command?
    And did you make sure that the permissions on the new folder match those on the default location? The owner and group should both be:

    _softwareupdate

    Eg:

    drwxrwxr-x   6 _softwareupdate  _softwareupdate   204 Dec 24 12:37 Software Update

     

    When the server creates the new software update subfolders, all of them will have _softwareupdate as owner and group as well.

    At least on Mavericks Server.

    Finally, perhaps the OS only lets you move the location to another volume but not another point on the startup volume. That is just speculation on my part.

  • by 3cit,

    3cit 3cit Mar 9, 2016 4:53 PM in response to Phil Brown2
    Level 1 (0 points)
    Mar 9, 2016 4:53 PM in response to Phil Brown2

    "If you use Server.app to change the volume for the service data storage, it will move everything out of /Library/Server to the new location -- in other words, all the services, not just Software Update."

     

    Do you know if this is correct for the netinstall service as well, since by default net installs are located in /Library/NetBoot as opposed to /Library/Server ?

     

    Id like my netinstall to be served from my internal SSD, and the software updates to be served from my larger external drive