Category: pgp

  • Part 3: Building the Keystone – Dataproc Custom Images for Secure Boot & GPUs

    Part
    3: Building the Keystone – Dataproc Custom Images for Secure Boot &
    GPUs

    In Part 1, we established a secure, proxy-only network. In Part 2, we
    explored the enhanced install_gpu_driver.sh initialization
    action. Now, in Part 3, we’ll focus on using the LLC-Technologies-Collier/custom-images
    repository (branch proxy-exercise-2025-11) to build the
    actual custom Dataproc images embedded with NVIDIA drivers signed for
    Secure Boot, all within our proxied environment.

    Why Custom Images?

    To run NVIDIA GPUs on Shielded VMs with Secure Boot enabled, the
    NVIDIA kernel modules must be signed with a key trusted by the VM’s EFI
    firmware. Since standard Dataproc images don’t include these
    custom-signed modules, we need to build our own. This process also
    allows us to pre-install a full stack of GPU-accelerated software.

    The
    custom-images Toolkit
    (examples/secure-boot)

    The examples/secure-boot directory within the
    custom-images repository contains the necessary scripts and
    configurations, refined through significant development to handle proxy
    and Secure Boot challenges.

    Key Components & Development Insights:

    • env.json: The central configuration
      file (as used in Part 1) for project, network, proxy, and bucket
      details. This became the single source of truth to avoid configuration
      drift.
    • create-key-pair.sh: Manages the Secure
      Boot signing keys (PK, KEK, DB) in Google Secret Manager, essential for
      the module signing.
    • build-and-run-podman.sh: Orchestrates
      the image build process in an isolated Podman container. This was
      introduced to standardize the build environment and encapsulate
      dependencies, simplifying what the user needs to install locally.
    • pre-init.sh: Sets up the build
      environment within the container and calls
      generate_custom_image.py. It crucially passes metadata
      derived from env.json (like proxy settings and Secure Boot
      key secret names) to the temporary build VM.
    • generate_custom_image.py: The core
      Python script that automates GCE VM creation, runs the customization
      script, and creates the final GCE image.
    • gce-proxy-setup.sh: This script from
      startup_script/ is vital. It’s injected into the temporary
      build VM and runs first to configure the OS, package
      managers (apt, dnf), tools (curl, wget, GPG), Conda, and Java to use the
      proxy settings passed in the metadata. This ensures the entire build
      process is proxy-aware.
    • install_gpu_driver.sh: Used as the
      --customization-script within the build VM. As detailed in
      Part 2, this script handles the driver/CUDA/ML stack installation and
      signing, now able to function correctly due to the proxy setup by
      gce-proxy-setup.sh.

    Layered Image Strategy:

    The pre-init.sh script employs a layered approach:

    1. secure-boot Image: Base image with
      Secure Boot certificates injected.
    2. tf Image: Based on
      secure-boot, this image runs the full
      install_gpu_driver.sh within the proxy-configured build VM
      to install NVIDIA drivers, CUDA, ML libraries (TensorFlow, PyTorch,
      RAPIDS), and sign the modules. This is the primary target image for our
      use case.

    (Note: secure-proxy and proxy-tf layers
    were experiments, but the -tf image combined with runtime
    metadata emerged as the most effective solution for 2.2-debian12).

    Build Steps:

    1. Clone Repos & Configure
      env.json:
      Ensure you have the
      custom-images and cloud-dataproc repos and a
      complete env.json as described in Part 1.

    2. Run the Build:
      bash # Example: Build a 2.2-debian12 based image set # Run from the custom-images repository root bash examples/secure-boot/build-and-run-podman.sh 2.2-debian12
      This command will build the layered images, leveraging the proxy
      settings from env.json via the metadata injected into the
      build VM. Note the final image name produced (e.g.,
      dataproc-2-2-deb12-YYYYMMDD-HHMMSS-tf).

    Conclusion of Part 3

    Through an iterative process, we’ve developed a robust workflow
    within the custom-images repository to build Secure
    Boot-compatible GPU images in a proxy-only environment. The key was
    isolating the build in Podman, ensuring the build VM is fully
    proxy-aware using gce-proxy-setup.sh, and leveraging the
    enhanced install_gpu_driver.sh from Part 2.

    In Part 4, we’ll bring it all together, deploying a Dataproc cluster
    using this custom -tf image within the secure network, and
    verifying the end-to-end functionality.

  • Part 2: Taming the Beast – Deep Dive into the Proxy-Aware GPU Initialization Action

    Part
    2: Taming the Beast – Deep Dive into the Proxy-Aware GPU Initialization
    Action

    In Part 1 of this series, we laid the network foundation for running
    secure Dataproc clusters. Now, let’s zoom in on the core component
    responsible for installing and configuring NVIDIA GPU drivers and the
    associated ML stack in this restricted environment: the
    install_gpu_driver.sh script from the LLC-Technologies-Collier/initialization-actions
    repository (branch gpu-202601).

    This isn’t just any installation script; it has been significantly
    enhanced to handle the nuances of Secure Boot and to operate seamlessly
    behind an HTTP/S proxy.

    The
    Challenge: Installing GPU Drivers Without Direct Internet

    Our goal was to create a Dataproc custom image with NVIDIA GPU
    drivers, sign the kernel modules for Secure Boot, and ensure the entire
    process works seamlessly when the build VM and the eventual cluster
    nodes have no direct internet access, relying solely on an HTTP/S proxy.
    This involved:

    1. Proxy-Aware Build: Ensuring all build steps within
      the custom image creation process (package downloads, driver downloads,
      GPG keys, etc.) correctly use the customer’s proxy.
    2. Secure Boot Signing: Integrating kernel module
      signing using keys managed in GCP Secret Manager, especially when
      drivers are built from source.
    3. Conda Environment: Reliably and speedily installing
      a complex Conda environment with PyTorch, TensorFlow, Rapids, and other
      GPU-accelerated libraries through the proxy.
    4. Dataproc Integration: Making sure the custom image
      works correctly with Dataproc’s own startup, agent processes, and
      cluster-specific configurations like YARN.

    The
    Development Journey: Key Enhancements in
    install_gpu_driver.sh

    To address these challenges, the script incorporates several key
    features:

    • Robust Proxy Handling (set_proxy
      function):

      • Challenge: Initial script versions had spotty proxy
        support. Many tools like apt, curl,
        gpg, and even gsutil failed in proxy-only
        environments.
      • Enhancements: The set_proxy function
        (also used in gce-proxy-setup.sh) was completely overhauled
        to parse various proxy metadata (http-proxy,
        https-proxy, proxy-uri,
        no-proxy). Critically, environment variables
        (HTTP_PROXY, HTTPS_PROXY,
        NO_PROXY) are now set before any network
        operations. NO_PROXY is carefully set to include
        .google.com and .googleapis.com to allow
        direct access to Google APIs via Private Google Access. System-wide
        trust stores (OS, Java, Conda) are updated with the proxy’s CA
        certificate if provided via http-proxy-pem-uri.
        gcloud, apt, dnf, and
        dirmngr are also configured to use the proxy.
    • Reliable GPG Key Fetching (import_gpg_keys
      function):

      • Challenge: Importing GPG keys for repositories
        often failed as keyservers use non-HTTP ports (e.g., 11371) blocked by
        firewalls, and gpg --recv-keys is not proxy-friendly.
      • Solution: A new import_gpg_keys
        function now fetches keys over HTTPS using curl, which
        respects the environment’s proxy settings. This replaced all direct
        gpg --recv-keys calls.
    • GCS Caching is King:
      • Challenge: Repeatedly downloading large files
        (drivers, CUDA, source code) through a proxy is slow and
        inefficient.
      • Solution: Implemented extensive GCS caching for
        NVIDIA drivers, CUDA runfiles, NVIDIA Open Kernel Module source
        tarballs, compiled kernel modules, and even packed Conda environments.
        Scripts now check a GCS bucket (dataproc-temp-bucket)
        before hitting the internet.
      • Impact: Dramatically speeds up subsequent runs and
        init action execution times on cluster nodes after the cache is
        warmed.
    • Conda Environment Stability & Speed:
      • Challenge: Large Conda environments are prone to
        solver conflicts and slow installation times.
      • Solution: Integrated Mamba for faster package
        solving. Refined package lists for better compatibility. Added logic to
        force-clean and rebuild the Conda environment cache on GCS and locally
        if inconsistencies are detected (e.g., driver installed but Conda env
        not fully set up).
    • Secure Boot & Kernel Module Signing:
      • Challenge: Custom-compiled kernel modules must be
        signed to load when Secure Boot is enabled.
      • Solution: The script integrates with GCP Secret
        Manager to fetch signing keys. The build_driver_from_github
        function now includes robust steps to compile, sign (using
        sign-file), install, and verify the signed modules.
    • Custom Image Workflow & Deferred Configuration:
      • Challenge: Cluster-specific settings (like YARN GPU
        configuration) should not be baked into the image.
      • Solution: The install_gpu_driver.sh
        script detects when it’s run during image creation
        (--metadata invocation-type=custom-images). In this mode,
        it defers cluster-specific setups to a systemd service
        (dataproc-gpu-config.service) that runs on the first boot
        of a cluster instance. This ensures that YARN and Spark configurations
        are applied in the context of the running cluster, not at image build
        time.

    Conclusion of Part 2

    The install_gpu_driver.sh initialization action is more
    than just an installer; it’s a carefully crafted tool designed to handle
    the complexities of secure, proxied environments. Its robust proxy
    support, comprehensive GCS caching, refined Conda management, Secure
    Boot signing capabilities, and awareness of the custom image build
    lifecycle make it a critical enabler.

    In Part 3, we’ll explore how the LLC-Technologies-Collier/custom-images
    repository (branch proxy-exercise-2025-11) uses this
    initialization action to build the complete, ready-to-deploy Secure Boot
    GPU custom images.

  • Dataproc GPUs, Secure Boot, & Proxies

    Part
    1: Building a Secure Network Foundation for Dataproc with GPUs &
    SWP

    Welcome to the first post in our series on running GPU-accelerated
    Dataproc workloads in secure, enterprise-grade environments. Many
    organizations need to operate within VPCs that have no direct internet
    egress, instead routing all traffic through a Secure Web Proxy (SWP).
    Additionally, security mandates often require the use of Shielded VMs
    with Secure Boot enabled. This series will show you how to meet these
    requirements for your Dataproc GPU clusters.

    In this post, we’ll focus on laying the network foundation using
    tools from the LLC-Technologies-Collier/cloud-dataproc
    repository (branch proxy-sync-2026-01).

    The Challenge: Network
    Isolation & Control

    Before we can even think about custom images or GPU drivers, we need
    a network environment that:

    1. Prevents direct internet access from Dataproc cluster nodes.
    2. Forces all egress traffic through a manageable and auditable
      SWP.
    3. Provides the necessary connectivity for Dataproc to function and for
      us to build images later.
    4. Supports Secure Boot for all VMs.

    The Toolkit:
    LLC-Technologies-Collier/cloud-dataproc

    To make setting up and tearing down these complex network
    environments repeatable and consistent, we’ve developed a set of bash
    scripts within the gcloud directory of the
    cloud-dataproc repository. These scripts handle the
    creation of VPCs, subnets, firewall rules, service accounts, and the
    Secure Web Proxy itself.

    Key Script:
    gcloud/bin/create-dpgce-private

    This script is the cornerstone for creating the private, proxied
    environment. It automates:

    • VPC and Subnet creation (for the cluster, SWP, and management).
    • Setup of Certificate Authority Service and Certificate Manager for
      SWP TLS interception.
    • Deployment of the SWP Gateway instance.
    • Configuration of a Gateway Security Policy to control egress.
    • Creation of necessary firewall rules.
    • Result: Cluster nodes in this VPC have NO default
      internet route and MUST use the SWP.

    Configuration via env.json

    We use a single env.json file to drive the
    configuration. This file will also be used by the
    custom-images scripts in Part 3. This env.json
    should reside in your custom-images repository clone, and
    you’ll symlink it into the cloud-dataproc/gcloud
    directory.

    Running the Setup:

    # Assuming you have cloud-dataproc and custom-images cloned side-by-side
    # And your env.json is in the custom-images root
    cd cloud-dataproc/gcloud
    # Symlink to the env.json in custom-images
    ln -sf ../../custom-images/env.json env.json
    # Run the creation script, but don't create a cluster yet
    bash bin/create-dpgce-private --no-create-cluster
    cd ../../custom-images

    Node
    Configuration: The Metadata Startup Script for Runtime

    For the Dataproc cluster nodes to function correctly in this proxied
    environment, they need to be configured to use the SWP on boot. We
    achieve this using a GCE metadata startup script.

    The script startup_script/gce-proxy-setup.sh (from the
    custom-images repository) is designed to be run on each
    cluster node at boot. It reads metadata like http-proxy and
    http-proxy-pem-uri (which our cluster creation scripts in
    Part 4 will pass) to configure the OS environment, package managers, and
    other tools to use the SWP.

    Upload this script to your GCS bucket:

    # Run from the custom-images repository root
    gsutil cp startup_script/gce-proxy-setup.sh gs://$(jq -r .BUCKET env.json)/custom-image-deps/

    This script is essential for the runtime behavior of the
    cluster nodes.

    Conclusion of Part 1

    With the cloud-dataproc scripts, we’ve laid the
    groundwork by provisioning a secure VPC with controlled egress through
    an SWP. We’ve also prepared the essential node-level proxy configuration
    script (gce-proxy-setup.sh) in GCS, ready to be used by our
    clusters.

    Stay tuned for Part 2, where we’ll dive into the
    install_gpu_driver.sh initialization action from the
    LLC-Technologies-Collier/initialization-actions repository
    (branch gpu-202601) and how it’s been adapted to install
    all GPU-related software through the proxy during the image build
    process.

  • Upgrading Proxmox 7 to 8

    Some variant of the following[1] worked for me.

    The first line is the start of a for loop that runs on each node in my cluster a command using ssh. The argument -t is passed to attach a controlling terminal to STDIN, STDERR and STDOUT of this session, since there will not be an intervening shell to do it for us. The argument to ssh is a workflow of bash commands. They upgrade the 7.x system to the most recent packages on the repository. We then update the sources.list entries for the system to point at bookworm sources instead of bullseye. The package cache is updated and the proxmox-ve package is installed. Packages which are installed are upgraded to the versions from bookworm, and the installer concludes.

    Dear reader, you might be surprised how many times I saw the word “perl” scroll by during the manual, serial scrolling of this install. It took hours. There were a few prompts, so stand by the keyboard!

    [1]

    gpg: key 1140AF8F639E0C39: public key "Proxmox Bookworm Release Key " imported
    # have your ssh agent keychain running and a key loaded that's installed at 
    # ~root/.ssh/authorized_keys on each node 
    apt-get install -y keychain
    eval $(keychain --eval)
    ssh-add ~/.ssh/id_rsa
    # Replace the IP address prefix (100.64.79.) and  suffixes (64, 121-128)
    # with the actual IPs of your cluster nodes.  Or use hostnames :-)
    for o in 64 121 122 123 124 125 126 127 128 ; do   ssh -t root@100.64.79.$o '
      sed -i -e s/bullseye/bookworm/g /etc/apt/sources.list $(compgen -G "/etc/apt/sources.listd.d/*.list") \
      && echo "deb [signed-by=/usr/share/keyrings/proxmox-release.gpg] http://download.proxmox.com/debian/pve bookworm pve-no-subscription" \
        | dd of=/etc/apt/sources.list.d/proxmox-release.list status=none \
      && echo "deb [signed-by=/usr/share/keyrings/proxmox-release.gpg] http://download.proxmox.com/debian/ceph-quincy bookworm main no-subscription" \
        | dd of=/etc/apt/sources.list.d/ceph.list status=none \
      && proxmox_keyid="0xf4e136c67cdce41ae6de6fc81140af8f639e0c39" \
      && curl "https://keyserver.ubuntu.com/pks/lookup?op=get&search=${proxmox_keyid}" \
        | gpg --dearmor -o /usr/share/keyrings/proxmox-release.gpg  \
      && apt-get -y -qq update \
      && apt-get -y -qq install proxmox-ve \
      && apt-get -y -qq full-upgrade \
      && echo "$(hostname) upgraded"'; done
    
  • Installing a desktop environment on the HP Omen

    `dmidecode | grep -A8 ‘^System Information’`

    tells me that the Manufacturer is HP and Product Name is OMEN Transcend Gaming Laptop 14-fb0xxx

    I’m provisioning a new piece of hardware for my eng consultant and it’s proving more difficult than I expected. I must admit guilt for some of this difficulty. Instead of installing using the debian installer on my keychain, I dd’d the pv block device of the 16 inch 2023 version onto the partition set aside from it. I then rebooted into rescue mode and cleaned up the grub config, corrected the EFI boot partition’s path in /etc/fstab, ran the grub installer from the rescue menu, and rebooted.

    On the initial boot of the system, X or Wayland or whatever is supposed to be talking to this vast array of GPU hardware in this device, it’s unable to do more than create a black screen on vt1. It’s easy enough to switch to vt2 and get a shell on the installed system. So I’m doing that and investigating what’s changed in Trixie. It seems like it’s pretty significant. Did they just throw out Keith Packard’s and Behdad Esfahbod’s work on font rendering? I don’t understand what’s happening in this effort to abstract to a simpler interface. I’ll probably end up reading more about it.

    In an effort to have Debian re-configure the system for Desktop use, I have uninstalled as many packages as I could find that were in the display and human interface category, or were firmware/drivers for devices not present in this Laptop’s SoC. Some commands I used to clear these packages and re-install connamon follow:

    ```
    dpkg -S /etc/X11
    dpkg -S /usr/lib/firmware
    apt-get purge $(dpkg -l | grep -i \
      -e gnome -e gtk -e x11-common -e xfonts- -e libvdpau -e dbus-user-session -e gpg-agent \
      -e bluez -e colord -e cups -e fonts -e drm -e xf86 -e mesa -e nouveau -e cinnamon \
      -e avahi -e gdk -e pixel -e desktop -e libreoffice -e x11 -e wayland -e xorg \
      -e firmware-nvidia-graphics -e firmware-amd-graphics -e firmware-mediatek -e firmware-realtek \
      | awk '{print $2}')
    apt-get autoremove
    apt-get purge $(dpkg -l | grep '^r' | awk '{print $2}')
    tasksel install cinnamon-desktop
    ```

    And then I rebooted. When it came back up, I was greeted with a login prompt, and Trixie looks to be fully functional on this device, including the attached wifi radio, tethering to my android, and the thunderbolt-attached Marvell SFP+ enclosure.

    I’m also installing libvirt and fetched the DVD iso material for Debian, Ubuntu and Rocky in case we have a need of building VMs during the development process. These are the platforms that I target at work with gcp Dataproc, so I’m pretty good at performing maintenance operation on them at this point.

  • Managing HPE SAS Controllers

    Notes to self. And anyone else who might find them useful. Following are some ssacli commands which I use infrequently enough that they fall out of cache. This may repeat information in other blogs, but since I search my posts first when commands slip my mind, I thought I’d include them here, too.

    hpacucli is the wrong command. Use ssacli instead.

    $ KR='/usr/share/keyrings/hpe.gpg'
    $ for fingerprint in \
      882F7199B20F94BD7E3E690EFADD8D64B1275EA3 \
      57446EFDE098E5C934B69C7DC208ADDE26C2B797 \
      476DADAC9E647EE27453F2A3B070680A5CE2D476 ; do \
        curl "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x${fingerprint}" \
          | gpg --no-default-keyring --keyring "${KR}" --import ; \
      done
    $ gpg --list-keys --no-default-keyring --keyring "${KR}" 
    /usr/share/keyrings/hpe.gpg
    ---------------------------
    pub   rsa2048 2012-12-04 [SC] [expired: 2022-12-02]
          476DADAC9E647EE27453F2A3B070680A5CE2D476
    uid           [ expired] Hewlett-Packard Company RSA (HP Codesigning Service)
    
    pub   rsa2048 2014-11-19 [SC] [expired: 2024-11-16]
          882F7199B20F94BD7E3E690EFADD8D64B1275EA3
    uid           [ expired] Hewlett-Packard Company RSA (HP Codesigning Service) - 1
    
    pub   rsa2048 2015-12-10 [SCEA] [expires: 2025-12-07]
          57446EFDE098E5C934B69C7DC208ADDE26C2B797
    uid           [ unknown] Hewlett Packard Enterprise Company RSA-2048-25 
    $ echo "deb [signed-by=${KR}] http://downloads.linux.hpe.com/SDR/repo/mcp bookworm/current non-free" \
      | sudo dd of=/etc/apt/sources.list.d status=none
    $ sudo apt-get update
    $ sudo apt-get install -y -qq ssacli > /dev/null 2>&1
    $ sudo ssacli ctrl all show status
    
    HPE Smart Array P408i-p SR Gen10 in Slot 3
       Controller Status: OK
       Cache Status: OK
       Battery/Capacitor Status: OK
    
    $ sudo ssacli ctrl all show detail
    HPE Smart Array P408i-p SR Gen10 in Slot 3
       Bus Interface: PCI
       Slot: 3
       Serial Number: PFJHD0ARCCR1QM
       RAID 6 Status: Enabled
       Controller Status: OK
       Hardware Revision: B
       Firmware Version: 2.65
       Firmware Supports Online Firmware Activation: True
       Driver Supports Online Firmware Activation: True
       Rebuild Priority: High
       Expand Priority: Medium
       Surface Scan Delay: 3 secs
       Surface Scan Mode: Idle
       Parallel Surface Scan Supported: Yes
       Current Parallel Surface Scan Count: 1
       Max Parallel Surface Scan Count: 16
       Queue Depth: Automatic
       Monitor and Performance Delay: 60  min
       Elevator Sort: Enabled
       Degraded Performance Optimization: Disabled
       Inconsistency Repair Policy: Disabled
       Write Cache Bypass Threshold Size: 1040 KiB
       Wait for Cache Room: Disabled
       Surface Analysis Inconsistency Notification: Disabled
       Post Prompt Timeout: 15 secs
       Cache Board Present: True
       Cache Status: OK
       Cache Ratio: 10% Read / 90% Write
       Configured Drive Write Cache Policy: Disable
       Unconfigured Drive Write Cache Policy: Default
       Total Cache Size: 2.0
       Total Cache Memory Available: 1.8
       Battery Backed Cache Size: 1.8
       No-Battery Write Cache: Disabled
       SSD Caching RAID5 WriteBack Enabled: True
       SSD Caching Version: 2
       Cache Backup Power Source: Batteries
       Battery/Capacitor Count: 1
       Battery/Capacitor Status: OK
       SATA NCQ Supported: True
       Spare Activation Mode: Activate on physical drive failure (default)
       Controller Temperature (C): 53
       Cache Module Temperature (C): 43
       Capacitor Temperature  (C): 40
       Number of Ports: 2 Internal only
       Encryption: Not Set
       Express Local Encryption: False
       Driver Name: smartpqi
       Driver Version: Linux 2.1.18-045
       PCI Address (Domain:Bus:Device.Function): 0000:11:00.0
       Negotiated PCIe Data Rate: PCIe 3.0 x8 (7880 MB/s)
       Controller Mode: Mixed
       Port Max Phy Rate Limiting Supported: False
       Latency Scheduler Setting: Disabled
       Current Power Mode: MaxPerformance
       Survival Mode: Enabled
       Host Serial Number: 2M20040D1Q
       Sanitize Erase Supported: True
       Sanitize Lock: None
       Sensor ID: 0
          Location: Capacitor
          Current Value (C): 40
          Max Value Since Power On: 42
       Sensor ID: 1
          Location: ASIC
          Current Value (C): 53
          Max Value Since Power On: 55
       Sensor ID: 2
          Location: Unknown
          Current Value (C): 43
          Max Value Since Power On: 45
       Sensor ID: 3
          Location: Cache
          Current Value (C): 43
          Max Value Since Power On: 44
       Primary Boot Volume: None
       Secondary Boot Volume: None
    
    $ sudo ssacli ctrl all show config
    
    HPE Smart Array P408i-p SR Gen10 in Slot 3  (sn: PFJHD0ARCCR1QM)
    
    
    
       Internal Drive Cage at Port 1I, Box 2, OK
    
    
    
       Internal Drive Cage at Port 2I, Box 2, OK
    
    
       Port Name: 1I (Mixed)
    
       Port Name: 2I (Mixed)
    
       Array A (SAS, Unused Space: 0  MB)
    
          logicaldrive 1 (1.64 TB, RAID 6, OK)
    
          physicaldrive 1I:2:1 (port 1I:box 2:bay 1, SAS HDD, 300 GB, OK)
          physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS HDD, 1.2 TB, OK)
          physicaldrive 1I:2:3 (port 1I:box 2:bay 3, SAS HDD, 300 GB, OK)
          physicaldrive 1I:2:4 (port 1I:box 2:bay 4, SAS HDD, 1.2 TB, OK)
          physicaldrive 2I:2:5 (port 2I:box 2:bay 5, SAS HDD, 300 GB, OK)
          physicaldrive 2I:2:6 (port 2I:box 2:bay 6, SAS HDD, 300 GB, OK)
          physicaldrive 2I:2:7 (port 2I:box 2:bay 7, SAS HDD, 1.2 TB, OK)
          physicaldrive 2I:2:8 (port 2I:box 2:bay 8, SAS HDD, 1.2 TB, OK)
    
       SEP (Vendor ID HPE, Model Smart Adapter) 379  (WWID: 51402EC013705E88, Port: Unknown)
    
    $ sudo ssacli ctrl slot=3 pd 2I:2:7 show detail
    
    HPE Smart Array P408i-p SR Gen10 in Slot 3
    
       Array A
    
          physicaldrive 2I:2:7
             Port: 2I
             Box: 2
             Bay: 7
             Status: OK
             Drive Type: Data Drive
             Interface Type: SAS
             Size: 1.2 TB
             Drive exposed to OS: False
             Logical/Physical Block Size: 512/512
             Rotational Speed: 10000
             Firmware Revision: U850
             Serial Number: KZGN1BDE
             WWID: 5000CCA01D247239
             Model: HGST    HUC101212CSS600
             Current Temperature (C): 46
             Maximum Temperature (C): 51
             PHY Count: 2
             PHY Transfer Rate: 6.0Gbps, Unknown
             PHY Physical Link Rate: 6.0Gbps, Unknown
             PHY Maximum Link Rate: 6.0Gbps, 6.0Gbps
             Drive Authentication Status: OK
             Carrier Application Version: 11
             Carrier Bootloader Version: 6
             Sanitize Erase Supported: False
             Shingled Magnetic Recording Support: None
             Drive Unique ID: 5000CCA01D247238
    
    

    2024-12-09 update

    I was experiencing a disk failure or predictive failure when I walked into my office this afternoon. I checked this blog post and found the command I used to check the status of the sas array.

    cjac@server0:~$ sudo ssacli ctrl all show config
    
    HPE Smart Array P408i-p SR Gen10 in Slot 3  (sn: PFJHD0ARCCR1QM)
    
    
    
       Internal Drive Cage at Port 1I, Box 2, OK
    
    
    
       Internal Drive Cage at Port 2I, Box 2, OK
    
    
       Port Name: 1I (Mixed)
    
       Port Name: 2I (Mixed)
    
       Array A (SAS, Unused Space: 0  MB)
    
          logicaldrive 1 (1.64 TB, RAID 6, OK)
    
          physicaldrive 1I:2:1 (port 1I:box 2:bay 1, SAS HDD, 300 GB, OK)
          physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS HDD, 1.2 TB, Predictive Failure)
          physicaldrive 1I:2:3 (port 1I:box 2:bay 3, SAS HDD, 300 GB, OK)
          physicaldrive 1I:2:4 (port 1I:box 2:bay 4, SAS HDD, 1.2 TB, OK)
          physicaldrive 2I:2:5 (port 2I:box 2:bay 5, SAS HDD, 300 GB, OK)
          physicaldrive 2I:2:6 (port 2I:box 2:bay 6, SAS HDD, 300 GB, OK)
          physicaldrive 2I:2:7 (port 2I:box 2:bay 7, SAS HDD, 1.2 TB, OK)
          physicaldrive 2I:2:8 (port 2I:box 2:bay 8, SAS HDD, 300 GB, OK)
    
       SEP (Vendor ID HPE, Model Smart Adapter) 379  (WWID: 51402EC013705E88, Port: Unknown)
    

    At this point I engaged the under-study to have the flashing disk replaced

    cjac@server0:~$ sudo ssacli ctrl all show config
    [sudo] password for cjac: 
    
    HPE Smart Array P408i-p SR Gen10 in Slot 3  (sn: PFJHD0ARCCR1QM)
    
    
    
       Internal Drive Cage at Port 1I, Box 2, OK
    
    
    
       Internal Drive Cage at Port 2I, Box 2, OK
    
    
       Port Name: 1I (Mixed)
    
       Port Name: 2I (Mixed)
    
       Array A (SAS, Unused Space: 0  MB)
    
          logicaldrive 1 (1.64 TB, RAID 6, Recovering, 56.43% complete)
    
          physicaldrive 1I:2:1 (port 1I:box 2:bay 1, SAS HDD, 300 GB, OK)
          physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS HDD, 300 GB, Rebuilding)
          physicaldrive 1I:2:3 (port 1I:box 2:bay 3, SAS HDD, 300 GB, OK)
          physicaldrive 1I:2:4 (port 1I:box 2:bay 4, SAS HDD, 1.2 TB, OK)
          physicaldrive 2I:2:5 (port 2I:box 2:bay 5, SAS HDD, 300 GB, OK)
          physicaldrive 2I:2:6 (port 2I:box 2:bay 6, SAS HDD, 300 GB, OK)
          physicaldrive 2I:2:7 (port 2I:box 2:bay 7, SAS HDD, 1.2 TB, OK)
          physicaldrive 2I:2:8 (port 2I:box 2:bay 8, SAS HDD, 300 GB, OK)
    
       SEP (Vendor ID HPE, Model Smart Adapter) 379  (WWID: 51402EC013705E88, Port: Unknown)
    

    In the next and future output, I will elide duplicate lines

    cjac@server0:~$ date ; sudo ssacli ctrl all show config
    Mon Dec  9 07:36:44 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, Recovering, 66.85% complete)...
    Mon Dec  9 07:39:25 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, Recovering, 68.97% complete) ...
    cjac@server0:~$ date ; sudo ssacli ctrl all show config | grep Recovering
    Mon Dec  9 07:43:05 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, Recovering, 71.85% complete)
    Mon Dec  9 07:43:57 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, Recovering, 72.55% complete)
    cjac@server0:~$ sleep 5m ; date ; sudo ssacli ctrl all show config | grep Recovering
    Mon Dec  9 07:49:43 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, Recovering, 77.00% complete)
    cjac@server0:~$ date ; sudo ssacli ctrl all show config | grep -e 1I:2:2 -e logicaldrive
    Mon Dec  9 11:36:14 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, OK)
    physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS HDD, 300 GB, OK)
    
  • False Positive

    wpid-img_20150906_152749.jpg

    Since a bit before my birthday this year, I have been uncertain where I left my notary seal. I have been trying to stay positive about the situation, but I must admit that I spent an unhealthy amount of time obsessing about its location and whether it has been used in my absence. The last time I remember having it was just prior to my birthday, when I was showing its location and combination to someone who had never seen it before. I have since found myself questioning motives and intentions of this person.

    I feel relieved, after two weeks of fretting, to have discovered my seal untouched, where I thought I had left it, and in the same state it was in when last I exposed it to those I think I probably trust. Perhaps I can continue to trust these people with the contents of my REDACTED and the administrative keys to the kingdom. Or republic. Or whatever it’s hip to call this place these days.

  • Trip Report: UW signing-party

    Dear Debian Users,

    I met last night with a friend from many years ago and a number of students of cryptography. I was disappointed to see the prevalence of black hat, anti-government hackers at the event. I was hoping that civilized humanity had come to agree that using cryptography for deception, harm to others and plausible deniability is bad, m’kay? When one speaks of the government as “they,” nobody’s going to get anywhere really quick. Let’s take responsibility for the upkeep of the environment in which we find ourselves, please.

    Despite what I perceived as a negative focus of the presentation, it was good to meet with peers in the Seattle area. I was very pleasantly surprised to find that better than half of the attendees were not male, that many of the socioeconomic classes of the city were represented, as were those of various ethnic backgrounds. I am really quite proud of the progress of our State University, even if I’m not always in agreement with the content that they’re polluting our kids’ brains with. I guess I should roll up my sleeves and get busy, eh?

    V/R,

    C.J.

  • Long Term Stable – 2014.04 @ 20141204T080801

    It’s been one of those nights:

    cjac@ubuntu0:/data/apps/prod$ sudo apt-get upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    cjac@ubuntu0:/data/apps/prod$ sudo apt-get dist-upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    

    All quiet on the Western Front, it seems.

  • Replaced hypervisor

    The system which was hosting this blog had a tendency to go down every few days. I swapped it out for a spare yesterday. Let’s see if it stays up. The hypervisor hosts this web server, a mysql server and an SKS pool member, all of which are built on top of Squeeze.