• 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. How to Configure Existing Lvm Volume Group to Use DM-Multipath
  2. CentOS / RHEL 6 : How to limit memory resources for a specific user using cgroups
  3. macchanger: command not found
  4. sacctmgr Command Examples in Linux
  5. chgrp Command Examples in Linux
  6. fdisk: command not found
  7. nitrogen Command Examples in Linux
  8. “Failed to Synchronize Cache For Repo ‘repo_name’, Ignoring This Repo” – CentOS/RHEL 8 error
  9. pdfxup: command not found
  10. partx: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • “aws s3 ls” Command Examples
  • “aws s3 cp” Command Examples
  • “aws route53” Command Examples
  • “aws rds” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright