Skip to content

Instantly share code, notes, and snippets.

@cardano-apexpool
Created March 7, 2021 14:47
Show Gist options
  • Save cardano-apexpool/6d2299984cb983abcb7ebd98a0bd36a5 to your computer and use it in GitHub Desktop.
Save cardano-apexpool/6d2299984cb983abcb7ebd98a0bd36a5 to your computer and use it in GitHub Desktop.
Online activate memory on a virtual machine after increasing memory size
#!/bin/bash
for i in $(grep offline /sys/devices/system/memory/memory*/state | cut -d\: -f1) ; do echo online > $i ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment