To extend a BTRFS volume on Azure, you'll need to follow these steps:
1. Identify the name of the BTRFS volume that you want to extend. You can do this by running the following command:
sudo btrfs filesystem show
This will show you a list of all the BTRFS volumes on your system, along with their names and sizes.
2. Stop any services or applications that are using the BTRFS volume that you want to extend.
3. Use the Azure portal or Azure CLI to extend the size of the Azure disk that the BTRFS volume is on. This will increase the available space on the disk, but not yet on the BTRFS volume itself.
4. Use the following command to resize the BTRFS volume to use the new space:
sudo btrfs filesystem resize max /path/to/mount/point
Replace "/path/to/mount/point" with the actual path to the mount point of the BTRFS volume that you want to extend.
5. Verify that the BTRFS volume has been extended by running the following command:
sudo btrfs filesystem show
This should show that the size of the BTRFS volume has been increased to the same size as the Azure disk.
6. Start any services or applications that were stopped in step 2.
That's it! Your BTRFS volume on Azure should now be extended to use the additional space on the Azure disk.