• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

pvremove Command Examples in Linux

by admin

pvremove wipes the label on a device so that LVM will no longer recognise it as a PV. A PV cannot be removed from a VG while it is used by an active LV.

Syntax:

# pvremove PV [options]

pvremove Command Examples

1. To remove a physical volumes:

# pvremove /dev/sda2

2. To set to debuf mode:

# pvremove -d
# pvremove --debug

3. To force the pv remove:

# pvremove -f /dev/sda2
# pvremove --force /dev/sda2

4. To get the pvremove help:

# pvremove --help

5. To test the pvremove:

# pvremove -t /dev/sda2
# pvremove -t /dev/sda2

6. To set to verbose mode:

# pvremove -v
# pvremove --verbose

7. To get the pvremove version:

# pvremove --version
Note: Repeat the force option (-ff) to forcibly remove a PV belonging to an existing VG. Normally, vgreduce should be used instead.

Filed Under: Linux

Some more articles you might also be interested in …

  1. fallocate: command not found
  2. Allow cronjobs to run by pam even if user password is expired
  3. CentOS / RHEL 7 : How to disable Transparent Huge pages (THP)
  4. How to find docker storage device and its size (device mapper storage driver)
  5. How to Change Default Port of Apache On RHEL/CentOS 7
  6. UNIX / Linux : how to force user to change their password on next login after password has reset
  7. atool: command not found
  8. dstat: command not found
  9. How to install rsyslog7 when rsyslog5 is already installed in CentOS/RHEL
  10. chsh Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright