Created
March 7, 2021 14:47
-
-
Save cardano-apexpool/6d2299984cb983abcb7ebd98a0bd36a5 to your computer and use it in GitHub Desktop.
Online activate memory on a virtual machine after increasing memory size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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