Page MenuHomeDevCentral

Drop Docker-flat.vmdk from Dwellers
Closed, ResolvedPublic

Description

We don't currently have space remaining on the hypervisor.

$ cd /vmfs/volumes/datastore1
$ ls -lah * | grep G
-rw-------    1 root     root      200.0G Dec 15 21:28 Docker-flat.vmdk

But this disk isn't currently used.

Event Timeline

Currently, the disk isn't even mounted on Dwellers, /etc/fstab line is commented out.

Procedure is the reverse of T166#824.

Disable the volume group

$ lvchange -an /dev/schwimmsteg/docker-data
$ lvchange -an /dev/schwimmsteg/docker-metadata
$ vgchange -an schwimmsteg
  0 logical volume(s) in volume group "schwimmsteg" now active

Remove the volume group

$ lvremove /dev/schwimmsteg/docker-data
  Logical volume "docker-data" successfully removed
$ lvremove /dev/schwimmsteg/docker-metadata
  Logical volume "docker-metadata" successfully removed
$ vgremove schwimmsteg
  Volume group "schwimmsteg" successfully removed

Remove the volume

Dwellers
$ pvremove /dev/sdb1
  Labels on physical volume "/dev/sdb1" successfully wiped.

We're done on Dwellers.

On the hypervisor, I've removed the disk from VM settings.

Disk files still on the datastore.

Tests successfully done on Docker we can delete the files from the hypervisor.

Stormshear
$ rm /vmfs/volumes/datastore1/Docker-flat.vmdk
$ df -h
VMFS-5     924.0G 724.0G    200.0G  78% /vmfs/volumes/datastore1