• 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. What’s the difference between locate and find command in Linux
  2. How to enable the automatic extension for a thin LVM volume
  3. How to Setup a sudo Switch to Another User That Has no Password or ssh Key Set in Linux
  4. Linux Network File System (NFS) interview questions
  5. Shopt: Not Found [No Such File Or Directory]
  6. How to copy directories recursively using rsync while excluding specific files
  7. CentOS / RHEL 7 : How to follow the mount order in /etc/fstab
  8. How to find if NUMA configuration is enabled or disabled?
  9. “ntpq -pn” command returns with error “Name or service not known”
  10. logrotate Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright