Summary
Resizing the N2W cpmdata volume is done like any other ec2 instance.
Note: Before extending a file system that contains valuable data, it is a best practice to create a snapshot of the volume that contains it in case you need to roll back your changes.
Description
Resizing the N2W cpmdata volume is done like any other ec2 instance.
The general procedure can be found here - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html
Note: Before extending a file system that contains valuable data, it is a best practice to create a snapshot of the volume that contains it in case you need to roll back your changes.
Below are the steps for resizing the N2W cpmdata volume:
- Go to EC2 console, Volumes tab.
- Find the ‘N2WS - Data Volume’ volume.
- Click Actions -> Modify Volume and change it to the desired volume size.
- SSH into CPM,
- Run the command lsblk , to see that the volume was modified to the desired size. In the example below it is named as xvdf and it was changed to 10G.
- Run the command df -h, to see the volume named /cpmdata and its filesystem path. You should notice that it is still using the former size.
- Run the command lsblk , to see that the volume was modified to the desired size. In the example below it is named as xvdf and it was changed to 10G.
- To increase the size of fs run the command resize2fs <path of cpmdata>.
In the example that would be sudo resize2fs /dev/xvdf - Run the command df -h again to confirm that size changed to the full volume's size.
Confirmation Steps
Run the command df -h again to confirm that size changed to the full volume's size.
Comments
0 comments
Please sign in to leave a comment.