Score:0

resize ext4 volume in amazon linux server : Couldn't find valid filesystem superblock

ru flag

I updated an EBS volume from 30Gb to 40Gb and I'm having hard time to extend it in the system:

root@ip:/home/cpmuser# lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0         7:0    0 55.4M  1 loop /snap/core18/2066
loop1         7:1    0 99.4M  1 loop /snap/core/11316
loop2         7:2    0 32.3M  1 loop /snap/amazon-ssm-agent/2996
loop3         7:3    0 99.4M  1 loop /snap/core/11187
loop4         7:4    0 33.3M  1 loop /snap/amazon-ssm-agent/3552
loop6         7:6    0 55.5M  1 loop /snap/core18/2074
nvme1n1     259:0    0   60G  0 disk /cpmdata
nvme0n1     259:1    0   40G  0 disk
└─nvme0n1p1 259:2    0   30G  0 part /
root@ip:/home/cpmuser# resize2fs /dev/nvme0n1
resize2fs 1.44.1 (24-Mar-2018)
resize2fs: Device or resource busy while trying to open /dev/nvme0n1
Couldn't find valid filesystem superblock.

this is the output of the command df -h:

root@ip-:/home/cpmuser# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             16G     0   16G   0% /dev
tmpfs           3.1G  307M  2.8G  10% /run
/dev/nvme0n1p1   30G   30G     0 100% /
tmpfs            16G     0   16G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/loop0       56M   56M     0 100% /snap/core18/2066
/dev/loop2       33M   33M     0 100% /snap/amazon-ssm-agent/2996
/dev/loop3      100M  100M     0 100% /snap/core/11187
/dev/loop4       34M   34M     0 100% /snap/amazon-ssm-agent/3552
/dev/nvme1n1     59G  1.4G   55G   3% /cpmdata
/dev/loop6       56M   56M     0 100% /snap/core18/2074
/dev/loop1      100M  100M     0 100% /snap/core/11316
tmpfs           3.1G     0  3.1G   0% /run/user/1001

I tried many commands: resize2fs , growpart, none worked.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.