• 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

lvscan Command Examples in Linux

by admin

Logical volumes (LVs) are block device units that we can use locally. We create LVs using the lvcreate command. An example is as follows:

# lvcreate -n web -L 100M iscsi

In order to display information about LVs on a system, we can use lvs or lvscan. The output of the sudo lvscan command is shown in the following screenshot:

lvscan command examples in Linux

lvscan Command Examples

1. To include information in the output about internal Logical Volumes:

# lvscan -a
# lvscan --all 

2. To Adds the device major and minor numbers to the display of each logical volume:

# lvscan -b
# lvscan --blockdevice 

3. To include debug info:

# lvscan -d
# lvscan --debug 

4. To get the help info:

# lvscan -h
# lvscan -?
# lvscan --help 

5. To ignore locking failure:

# lvscan --ignorelockingfailure 

6. To be verbose:

# lvscan -v
# lvscan --verbose 

7. To get the version:

# lvscan --version 

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to (Correctly) Change the UID and GID of a user/group in Linux
  2. nmcli agent Command Examples in Linux
  3. Using vmstat to troubleshoot performance issues in Linux
  4. mkpasswd Command Examples in Linux
  5. CentOS / RHEL : How to find the creation time of LVM volume
  6. How to Disable or set SELinux to Permissive mode
  7. file: command not found
  8. coredumpctl: command not found
  9. groupmems Command Examples in Linux
  10. How Passwordless SSH works in Linux / UNIX

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright