I bought a used Dell R430 server from Ebay. It still had the old hostname showing in the system details on the iDrac. Without the OMSA tool installed on the server, it is hard to change the displayed name. The OMSA tool also enables a lot of other admin functionality as well. I read many guides on how to install the tool for my system, so I’m posting it here in hopes this will help someone.
Install the repository. Dell maintains a complete repo for Ubuntu/Debian users at: https://linux.dell.com/repo/community/openmanage
You need to review the support matrix on that repo for your server model, generation, and supported OS. In my case, for my R430 (13th generation) I installed version 10.0.3.0.0. Here’s how I added the repo:
sudo gpg --keyserver keyserver.ubuntu.com --recv-key 1285491434D8786F
sudo gpg -a --export 1285491434D8786F | sudo apt-key add -
echo 'deb http://linux.dell.com/repo/community/openmanage/10300/focal focal main' | sudo tee -a /etc/apt/sources.list.d/linux.dell.com.sources.list
sudo apt update
Once apt was updated to include the repo, all that is left to do is install the tool:
sudo apt install srvadmin-all
After installation, reboot the server (the installation makes many changes) and then start the OMSA service:
Because I have multiple computer systems (servers, desktop/laptops, and embedded home automation devices) I wanted to have a master time source that would work even if my internet connection became unavailable. The best way to achieve this is by using time signals from GPS satellites. Commercial GPS clocks tend to cost upwards in the thousands of dollars. My budget isn’t sized to afford a commercial GPS clock, but I wanted one so I did not have to rely on internet NTP sources should the internet connection fail. Fortunately there are a number of inexpensive GPS modules on the market which allow you to build such a master clock. I had built one of these about 10 years ago but never documented the project, so here I am documenting it now. For this project, you will want a GPS module that offers a PPS (Pulse Per Second) output. This PPS signal allows the NTP server to precisely align the GPS seconds with the rise of the PPS pulse. The PPS signal is read from an available GPIO pin on the Raspberry Pi. Any Raspberry Pi board will do – as long as it is dedicated to this purpose and running no other applications.
Now, wire the GPS module to the RPi as follows: (Note: we’re using GPIO 18)
GPS PPS to RPi pin 12 (GPIO 18)
GPS VIN to RPi pin 2 or 4
GPS GND to RPi pin 6
GPS RX to RPi pin 8
GPS TX to RPi pin 10
Now, make the following config changes:
sudo bash -c "echo 'enable_uart=1' >> /boot/config.txt
# the next 3 lines are for GPS PPS signals
sudo bash -c "echo 'dtoverlay=pps-gpio,gpiopin=18' >> /boot/config.txt
sudo bash -c "echo 'init_uart_baud=9600' >> /boot/config.txt
# load the pps-gpio module on boot
sudo bash -c "echo 'pps-gpio' >> /etc/modules"
Open the following file and edit as shown below:
sudo vim /etc/default/gpsd
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
# Other options you want to pass to gpsd
# Automatically hot add/remove USB GPS devices via gpsdctl
It’s now time to restart the GPS Clock to allow the above changes. You can test the loading of the pps-gpio module by running:
If you see the pps_gpio module returned in the output above, then please proceed. If not, please GO BACK AND CHECK YOUR WIRING!
sudo vim /etc/chrony/chrony.conf
# Include configuration files found in /etc/chrony/conf.d.
# Put in some reliable NTP backups (these will be fallback sources if GPS signal disappears).
# In my case, I had a GPS module fail after 10 years and without these backups, your clocks
# will wonder! Lesson learned!
server time-a-b.nist.gov iburst
# Enter these two statements to tell Chrony to prefer the GPS time.
refclock SHM 0 delay 0.325 refid NMEA
refclock PPS /dev/pps0 refid PPS
# Set this to whatever subnet you wish to allow to query the GPS clock. Replace the below
# with whatever is relevant in your environment! In my example, the following subnet is used
# by my network switches which are NTP peers. Only the switches sync with the GPS clock and
# network endpoints in other subnets/vlans query the nearest switch for time.
# This directive specify the location of the file containing ID/key pairs for
# NTP authentication.
# This directive specify the file into which chronyd will store the rate
# Save NTS keys and cookies.
# Uncomment the following line to turn logging on.
#log tracking measurements statistics
# Log files location.
# Stop bad estimates upsetting machine clock.
# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
# Step the system clock instead of slewing it if the adjustment is larger than
# one second, but only in the first three clock updates.
makestep 1 3
# Get TAI-UTC offset and leap seconds from the system tz database.
# This directive must be commented out when using time sources serving
# leap-smeared time.
Now that you have completed the above, it’s time to restart the Chrony service:
sudo systemctl restart chrony
You can now check to see if the GPS is working:
You should see output like:
Note the “Status” line. Having a 3D GPS fix is good, it indicates a solid fix and therefore reliable time.
If you are getting the above output, your GPS should be working and chrony should be serving time to your network. You can check to see if chrony is getting time from the GPS:
In the above example, the time source with the asterisk (*) is the preferred in-use time source. The hash (#) indicates that the listed time source is a locally attached time source, while the carrot (^) indicates that the time source is remote. Here you can see that the GPS PPS time source has a better accuracy in NANOSECONDS!
Harden The Clock
At this point, it is a good idea to now enable an overlay filesystem to preserve your MicroSD card. This will ensure that no more writing occurs and that if the GPS clock loses power suddenly, that the card will not get corrupted. To do so please do the following:
Select Performance Options:
Then Overlay File System:
Choose YES to enable the overlay filesystem, then YES to make the /boot partition READ ONLY! At this point, you can safely power cycle the GPS clock and it should reboot and continue working automatically. Be sure to place the antenna in view of the sky. If you are using an internal antenna, place the GPS clock near a window.