I created a btrfs file system (for an Oracle database) on two disks and now I'd like to delete the file system and remove (take out) devices.
I created the btrfs filesystem using the command.
mkfs.btrfs /dev/xvde /dev/xvdf
I already removed all sub volumes and snapshots, and now would like to remove the file system and those two devices.
[root@airfscdbsprd ~]# blkid -o list
device fs_type label mount point UUID
-------------------------------------------------------------------------------
/dev/xvdb1 ext4 /boot 770112e8-9d82-4de3-938b-bf754950e0d7
/dev/xvdb2 LVM2_member (in use) uUyv6i-PVuW-45cW-RXuv-wqRg-v4F2-YhDnod
/dev/xvdc1 LVM2_member (in use) IK0A3c-GRwx-srUE-GQBM-NrVj-sYij-hAY73J
/dev/mapper/vg_ol65uekbase-lv_root
btrfs (in use) 394ccaa7-7138-4704-9919-ec34b8b0b39e
/dev/mapper/vg_ol65uekbase-lv_swap
swap (not mounted) 0c3262f9-adf0-4a3e-bd20-c7c69880c7ce
/dev/mapper/vg_lvm-swap
swap <swap> 9242b6cf-293c-46e4-8d3a-b06ba4f073b8
/dev/xvde btrfs (in use) 60038dad-08dc-4209-8b00-2a6ba3ce1ef4
/dev/xvdf btrfs (in use) 60038dad-08dc-4209-8b00-2a6ba3ce1ef4
/dev/xvdd btrfs (in use) dbbd847d-c6f6-45fc-aef4-d62f18d9a834
[root@airfscdbsprd ~]#
Do I need to remove the btrfs filesystem or can I just shutdown the machine, take out the two disks and restart?
Or do I need to run other commands to clean up btrfs and the device references before taking out the disks?
Thanks for your help.