Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the pvscan command of linux to list the physical volumes found

Shulou Source: shulou.com Published: 2022-06-02 19:50:57 09月22日 Update

What the editor shares with you today is to use the pvscan command of linux to list the physical volumes found. I believe many people do not know much about it. In order to make you understand better, I have summarized the following contents for you. Let's move on. I'm sure you'll get something.

The pvscan command scans all connected hard drives in the system and lists the physical volumes found. Use the-n option of the pvscan command to display physical volumes on the hard disk that do not belong to any volume group, which are unused.

Syntax format: pvscan [parameters]

Common parameters:

-d debug mode-e displays only physical volumes that belong to the output volume group-n displays only physical volumes that do not belong to any volume group-s short format output-u displays UUID

Reference example

Scan the physical volumes on all hard drives:

[root@linuxcool ~] # pvscan

Only physical volumes that belong to the output volume group are displayed:

[root@linuxcool] # pvscan-e

Only physical volumes that do not belong to any volume group are displayed:

[root@linuxcool ~] # pvscan-n this is the end of the list of physical volumes found using the pvscan command of linux. I hope the above content can be used as a reference for you. If you like this article, you might as well share it for more people to see.

Tags: Physics commands hard drives output content parameters formats references put knowledge into practice value examples commonly used articles more patterns see system grammar Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Information OPPO Reno Docker Xiaomi