1 Answer
- Newest
- Most votes
- Most comments
2
Hello.
How about synchronizing with rsync command?
rsync -a / /mnt/myNewVolume
Is the purpose of your work to reduce the root EBS size?
In that case, the steps in the blog below may be helpful.
https://medium.com/@m.yunan.helmy/decrease-the-size-of-ebs-volume-in-your-ec2-instance-ea326e951bce
Relevant content
- asked 2 months ago
- asked 3 years ago
- asked a year ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
Initially, I generated an EBS volume2 and created "myNewVolume." directory and mounted that point the volume2. Subsequently, I employed the rsync command to duplicate the contents of the / directory onto "myNewVolume." However, encountering difficulties, I am currently unable to switch volume2 as new root volume. Once this transition is accomplished, my intention is to eliminate the initial volume for the purpose of cost efficiency.
Have you tried the steps mentioned in the blog below? https://medium.com/@m.yunan.helmy/decrease-the-size-of-ebs-volume-in-your-ec2-instance-ea326e951bce
I adhered to the procedures outlined in the blog, but during the "preparing volume" step, I encountered the following message:
"tune2fs 1.44.1 (24-Mar-2018)
This operation necessitates a filesystem that has been recently checked.
Kindly execute e2fsck -f on the filesystem."
I do not know what I am missing.
Also, I encountered that when trying to install grub on a new volume.
"grub-install: warning: File system `ext2' doesn't support embedding."
What if you try the steps in the blog below? https://dev.to/mithlajkn/reduce-ebs-size-of-your-ec2-29p9
e2fsck -f /dev/xvdf that command helped me.