1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
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
Contenus pertinents
- demandé il y a 7 mois
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
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.