Created
December 7, 2018 07:57
-
-
Save sarcasticadmin/7b86f7e9827719d21b15bb024e946797 to your computer and use it in GitHub Desktop.
Growing iohyve vm in bhyve without LVM
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
##### | |
# Growing iohyve vm in bhyve without LVM | |
# Source: | |
# https://vinfrastructure.it/2018/01/resize-linux-filesystem-without-lvm/ | |
##### | |
# Grow disk on Bhyve VM | |
iohyve resize <vm> disk0 80G | |
# Check vm disk info | |
iohyve info -d | |
# Bring up vm | |
iohyve start <vm> | |
# Get on the console | |
iohyve console <vm> | |
# Grow the fs | |
fdisk /dev/sdX | |
# Check the partition table by pressing p (to view partition details) | |
# Delete the partition by pressing d (to delete the partition) | |
# Select the right partition that you want to delete, in most cases will be the only on the disk, so press 1 (to select the partition) | |
# Create a new partition by pressing n (to create a new partition) and select the partition type whether Primary (by pressing p) and the right number | |
# Get the first block from the partition details in point 2 | |
# Press enter to accept the default as the last block. | |
# Check the partition table by pressing p (to list the partition and confirm) | |
# Save your new partition table by pressing w | |
#re-read the partition table | |
partprobe | |
# Resize the device and the particular partition (1 in this case) | |
resize2fs /dev/sdX1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment