Command to see the logical volume path, device mapper path and its corresponding dm device path
Currently I am using this laborious command
Would like to know if there is any shorter method to get this mapping of combined output (lvpath, /dev/mapper/ and /dev/dm/* ), possibly a single command.
hi. Im trying to install a switch.
And the manual says i should type a command including a SerialPortDevicePath. which is the filepath to serial port used for connection.
However.. nothing about how to find this info.
Could anyone help me where to find this path?
thx
mr.T (6 Replies)
# ioscan -f | grep disk
Class I H/W Path Driver S/W State H/W Type Description
disk 3 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC ... (1 Reply)
Hy
I have several logical volumes that are turned into raw devices used by Informix DB. I would like to add some more.
In /dev directory i see logical volumes as block files: lv_name1, lv_name2 ...
and
i see raw devices defined as character files:
rlv_name1, rlv_name2 ...
As i see,... (5 Replies)
Hi:
I have a requirement as below:
I have some standard Unix commands modified and kept them in a directory say /usr/clsh/bin. For example I have a script named "ls" kept here which is modified version of "ls" (say it always gives long listing i.e. ls -l).
When any user logs on and types... (2 Replies)
I have an HP blade with Qlogic HBA's connected to an EVA8000. I have downloaded the latest multipath.conf from HP's website. The drive presented to the server appears to be configured and working except the output of "multipath -l" shows for all paths. What is causing this output?
mpath0... (2 Replies)
Hello friends,
I am building one driver related to wifi. When I am looking its hex dump, I can see that it is including a path to one particular file of kernel headers. It is as under.
6C 75 65 2E 0A 00 00 00 25 64 2E 25 64 2E 25 64 lue.....%d.%d.%d
2D 25 73 00 00 00 00 00 42 45... (4 Replies)
After we upgraded one PW450 machine from (networker 7.2 & solaris 9) to (networker 7.4 and solaris 10) through scratch installation
Only one of two HP tape drives is shown in inquire command
And we are getting strange logs in messages file (attached)
For 2nd drive 1cbn character specific file... (4 Replies)
Hi,
I have a server program that reads data coming in on USB ports. Device paths are in the format: /dev/ttyUSB0
Now, I would like to log data from another device coming in over Ethernet. My first step is trying to track down what the correct device path is which I am unsure of.
Anyone... (9 Replies)
Hi All,
Can you please provide some pointers to move files from Base path to multiple paths in efficient way.Folder Structure is already created.
/Path/AdminUser/User1/1111/Reports/aaa.txt to /Path/User1/1111/Reports/aaa.txt
/Path/AdminUser/User1/2222/Reports/bbb.txt to... (6 Replies)
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies
LEARN ABOUT REDHAT
lvdisplay
LVDISPLAY(8) System Manager's Manual LVDISPLAY(8)NAME
lvdisplay - display attributes of a logical volume
SYNOPSIS
lvdisplay [-c|--colon] [-d|--debug] [-D|--disk] [-h|--help] [-v[v]|--verbose] LogicalVolumePath [LogicalVolumePath...]
DESCRIPTION
lvdisplay allows you to see the attributes of a logical volume like size, read/write status, snapshot information etc.
OPTIONS
-c, --colon
Generate colon seperated output for easier parsing in scripts or programs.
The values are:
* logical volume name
* volume group name
* logical volume access
* logical volume status
* internal logical volume number
* open count of logical volume
* logical volume size in kilobytes
* current logical extents associated to logical volume
* allocated logical extents of logical volume
* allocation policy of logical volume
* read ahead sectors of logical volume
* major device number of logical volume
* minor device number of logical volume
-d, --debug
Enables additional debugging output (if compiled with DEBUG).
-D, --disk
Show attributes of the volume group descriptor array on disk(s). Without this switch they are derived from kernel space. Useful,
if the volume group isn't active.
-h, --help
Print a usage message on standard output and exit successfully.
-v, --verbose
Display the mapping of logical extents to physical volumes and physical extents.
-vv, --verbose --verbose
Like -v with verbose runtime information.
Examples
"lvdisplay -v /dev/vg00/lvol2" shows attributes of that logical volume and its mapping of logical to physical extents. In case snapshot
logical volumes have been created for this original logical volume, this command shows a list of all snapshot logical volumes and their
status (active or inactive) as well.
"lvdisplay /dev/vg00/snapshot" shows the attributes of this snapshot logical volume and also which original logical volume it is associated
with.
DIAGNOSTICS
lvdisplay returns an exit code of 0 for success or > 0 for error:
1 no logical volume name(s) on command line
95 driver/module not in kernel
96 invalid I/O protocol version
97 error locking logical volume manager
98 invalid lvmtab (run vgscan(8))
99 invalid command line
ENVIRONMENT VARIABLES
LVM_VG_NAME
The default Volume Group Name to use. Setting this variable enables you to enter just the Logical Volume Name rather than its com-
plete path.
See alsolvm(8), lvcreate(8), lvscan(8), lvmsadc(8),
lvmsar(8)AUTHOR
Heinz Mauelshagen <Linux-LVM@Sistina.com>
Heinz Mauelshagen LVM TOOLS LVDISPLAY(8)