• 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

pvscan Command Examples in Linux

by admin

To display the LVM physical volume on a system, you can use either the pvs command or the pvscan command as the root user. The output of sudo pvscan is shown in the following screenshot:

pvscan Command Examples in Linux

To implement LVMs, we create three objects:

  • Physical volumes: This represents the raw disk space as disk partitions. When we use partitions, the partition type should be set to Linux LVM with an ID of 8E using the fdisk partitioning tool.
  • Volume groups: This aggregates physical volumes together so that the disk space can be consumed to logical volumes.
  • Logical volumes: This represents the block device that can be shared. It consumes space that is allocated from volume groups.

pvscan Command Examples

1. To scan all disks for physical volumes:

# pvscan 

2. To Only show physical volumes belonging to exported volume groups:

# pvscan -e
# pvscan --exported 

3. To only show physical volumes not belonging to any volume group:

# pvscan -n
# pvscan --novolumegroup 

4. To short listing format:

# pvscan -s
# pvscan --short 

5. To Show UUIDs in addition to device special names:

# pvscan -u
# pvscan --uuid 

6. To set to verbose mode:

# pvscan -v
# pvscan --verbose 

7. To get the pvscan version:

# pvscan --version 

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to create a Python Dictionary
  2. How to Configure rsyslog to Filter/discard Specific IP Address in CentOS/RHEL 6,7
  3. engrampa: command not found
  4. betterlockscreen Command Examples in Linux
  5. How to disable firewalld and and switch to iptables in CentOS / RHEL 7
  6. Archiving Failures with ORA-16038, ORA-19504, ORA-00312
  7. After Reboot RAID1 Disk Gets Removed/Out of Sync (CentOS/RHEL)
  8. Linux Interview Questions – Linux Printing (CUPS)
  9. Kernel Logs Warning Messages “kernel: Possible SYN flooding on port X. Sending cookies” is logged”
  10. CentOS / RHEL 6 : How to extract initramfs image and edit/view it

You May Also Like

Primary Sidebar

Recent Posts

  • fprintd-delete Command Examples in Linux
  • fprintd-delete: command not found
  • foreman: command not found
  • foreman Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright