Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run.sh fails with "resize2fs: Bad magic number in super-block while trying to open /dev/nvme0n1p1" #4

Open
brnkrygs opened this issue Jan 22, 2024 · 0 comments

Comments

@brnkrygs
Copy link
Contributor

When running the shell script run.sh, I get the following error from the section that is resizing my Cloud9 instance's partition:

CHANGED: partition=1 start=24576 old: size=20946911 end=20971487 new: size=104832991 end=104857567
resize2fs 1.46.5 (30-Dec-2021)
resize2fs: Bad magic number in super-block while trying to open /dev/nvme0n1p1
Couldn't find valid filesystem superblock.
Time taken to resize EBS Volume: 7 seconds

This seems to be related to the command used to grow the filesystem. Its using resize2fs, but it seems to need xfs_growfs

The script then continues on, but fails to deploy the CDK stack due to disk capacity.

Expected Behavior

I'm able to run run.sh to set up Lab 2.

Current Behavior

I get an error from run.sh, which prevents my system's partition from being resized successfully.

Possible Solution

Comparing to the Cloud9 documentation that includes a resize script, it seems like there's an additional check missing when validating the output of cat /etc/os-release, which may need to be adjusted to match the docs.

Docs are here:
https://docs.aws.amazon.com/cloud9/latest/user-guide/move-environment.html#move-environment-resize

Steps to Reproduce

Follow the steps in the workshop that instruct you to run run.sh:
https://catalog.us-east-1.prod.workshops.aws/event/dashboard/en-US/workshop/pre-requisites/setting-up-cloud9

Context (Environment)

This is blocking me from walking through Lab 2 of the workshop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant