Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

lvm

How to deactivate a LVM2 physical volume to remove the drive?

September 9, 2023 by Tarik

lvchange -an <lvpath> vgchange -an <vgname> If you also want to remove the device maps you can use dmsetup ls dmsetup remove <name>

Categories linux Tags linux, lvm, volume Leave a comment

resize2fs: Bad magic number in super-block while trying to open

October 15, 2022 by Tarik

After a bit of trial and error… as mentioned in the possible answers, it turned out to require xfs_growfs rather than resize2fs. CentOS 7, fdisk /dev/xvda Create new primary partition, set type as linux lvm. n p 3 t 8e w Create a new primary volume and extend the volume group to the new volume. … Read more

Categories lvm Tags centos7, lvm Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa