I'm attempting to detach Amazon EBS Volume from an Instance, and I can't figure out why the filesystem can't be found/isn't mounted.
On my EBS Volumes, the attachment information shows:
(Instance1):/dev/sdh (attached)
(Instance1):/dev/sdo (attached)
(Instance1):/dev/sdo (attached)
(Instance1):/dev/sdj (attached)
(Instance1):/dev/sdi (attached)
(Instance1):/dev/sdn (attached)
(Instance1):/dev/sdm (attached)
(Instance1):/dev/sda1 (attached)
(Instance1):/dev/sdl (attached)
Running fdisk -l
on the instance, I get:
Disk /dev/xvda: 16.1 GB, 16106127360 bytes
Disk /dev/xvdh: 156.8 GB, 156766306304 bytes
Disk /dev/xvdm: 156.8 GB, 156766306304 bytes
Disk /dev/xvdi: 156.8 GB, 156766306304 bytes
Disk /dev/xvdn: 156.8 GB, 156766306304 bytes
Disk /dev/xvdj: 156.8 GB, 156766306304 bytes
Disk /dev/xvdo: 156.8 GB, 156766306304 bytes
Disk /dev/xvdk: 156.8 GB, 156766306304 bytes
Disk /dev/xvdl: 156.8 GB, 156766306304 bytes
Disk /dev/md127: 1254.1 GB, 1254122061824 bytes
Trying to umount
:
[root@ip-10-0-0-22 ~]# umount -d /dev/xvdm
umount: /dev/xvdm: not mounted
[root@ip-10-0-0-22 ~]# umount -d /dev/sdm
umount: /dev/sdm: not found
mount
:
[root@ip-10-0-0-22 ~]# mount
/dev/xvda1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/md127 on /vertica/data type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
How can I delete the underlying filesystems?
Delete what underlying filesystems? Also, could you cut-and-paste the output of cat /proc/mdstat into your question? – MadHatter
[root@ip-10-0-0-22 ~]# cat /proc/mdstat
Personalities : [raid0]
md127 : active raid0 xvdj[2] xvdn[6] xvdl[4] xvdh[0] xvdm[5] xvdi[1] xvdk[3] xvdo[7]
1224728576 blocks super 1.2 1024k chunks
unused devices: <none>
cat /proc/mdstat
into your question?mdadm
RAID setup. Use those tools to release drives from the array (don't do this unless you know what you're doing!!!!)