09-13-2012
Quote:
Originally Posted by
prpkrk
i have several lv (data , data1 , data2) under same volume group,
i just want to test 1 lv for data errors is that possible?
I'm probably missing something.
Do you want to check the filesystem that's on top of lv_data2? So check the filesystem.
Quote:
because lv_data2 is corrupt , but i don't know if this lv uses sdc disk
To know the mapping between physical extents to logical volumes and logical extents, check
man pvdisplay on your system. In linux:
# pvdisplay -m
--
Bye
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I recently checked the output from one of my backup tapes
# tar -tvf /dev/rmt0
tar: directory checksum error (6 != 24439)
The files wont restore , what does this mean ? on aix.
Thanks (3 Replies)
Discussion started by: cubicle^dweller
3 Replies
2. Shell Programming and Scripting
How would I go about an error check within a script. For example, if I have a script that I know might contain an error with a certain command, is there a way to give an alternate command if the first fails?
The best way I can explain it, is from the Mac world, using Applescript. With AS, I can... (1 Reply)
Discussion started by: TheCrunge
1 Replies
3. Shell Programming and Scripting
I have below script to check the word in the driectory /ora_tmp , there are many files in this directory , if the word "error" is exist in any file within 5 day , then send the mail to ora-usr@mydomain.com about which file have this word and the "error" statement , now , if I want
1. if there... (2 Replies)
Discussion started by: ust
2 Replies
4. Shell Programming and Scripting
If I have a script createdb.sh
...
psql -U postgres -c "create database dbname"
...
I want to write something like
if IsErr(psql -U postgres -c "create database dbname")
ehco "OK"
else
ehco "NOT OK"
Thank for any reply first (3 Replies)
Discussion started by: uativan
3 Replies
5. HP-UX
Hi,
I'm new to HP-UX.
I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3
Thanks (4 Replies)
Discussion started by: lamoul
4 Replies
6. Shell Programming and Scripting
Hi,
I am wirting a script to check the informatica services are running.
I am executing a CONFIG FILE before starting the check..
This config file will be having all the ENV Variables..that will be used in the script.
I wanted to first check if the Config file has be executed.
If its... (4 Replies)
Discussion started by: ch33ry
4 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
I m using redhat 6, I have installed root partition as non-LVM .
Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies
8. Shell Programming and Scripting
I have a script is as below , if the output of the script is 0 , then echo abc .
script1
if ]; then
echo abc
fi
Can advise if I would like to change it , check the output , if the output only have the wold "0" , then echo abc , if the output have other word , then do nothing , can... (3 Replies)
Discussion started by: ust3
3 Replies
9. Red Hat
hello guys,
I just had some issues with a script it is giving some errors or warning like LV name root
what do i need to do to remove this directory from the existing logical volume
Thanks (3 Replies)
Discussion started by: DOkuwa
3 Replies
LEARN ABOUT LINUX
pvdisplay
PVDISPLAY(8) System Manager's Manual PVDISPLAY(8)
NAME
pvdisplay - display attributes of a physical volume
SYNOPSIS
pvdisplay [-c|--colon] [-d|--debug] [-h|-?|--help] [--ignorelockingfailure] [--maps] [--nosuffix] [-s|--short] [--units hsbkmgtHKMGT]
[-v[v]|--verbose [--verbose]] [--version] [PhysicalVolumePath [PhysicalVolumePath...]]
pvdisplay --columns | -C [--aligned] [-a|--all] [-d|--debug] [-h|-?|--help] [--ignorelockingfailure] [--noheadings] [--nosuffix]
[-o|--options [+]Field[,Field]] [-O|--sort [+|-]Key1[,[+|-]Key2[,...]]] [--separator Separator] [--unbuffered] [--units hHbBsSkKmMg-
GtTpPeE] [-v[v]|--verbose [--verbose]] [--version] [PhysicalVolumePath [PhysicalVolumePath...]]
DESCRIPTION
pvdisplay allows you to see the attributes of one or more physical volumes like size, physical extent size, space used for the volume group
descriptor area and so on.
pvs (8) is an alternative that provides the same information in the style of ps (1).
OPTIONS
See lvm for common options and pvs for options given with --columns.
-c, --colon
Generate colon separated output for easier parsing in scripts or programs. N.B. pvs (8) provides considerably more control over the
output.
The values are:
* physical volume device name
* volume group name
* physical volume size in kilobytes
* internal physical volume number (obsolete)
* physical volume status
* physical volume (not) allocatable
* current number of logical volumes on this physical volume
* physical extent size in kilobytes
* total number of physical extents
* free number of physical extents
* allocated number of physical extents
-s, --short
Only display the size of the given physical volumes.
-m, --maps
Display the mapping of physical extents to logical volumes and logical extents.
--columns | -C
Display output in columns, the equivalent of pvs (8). See pvs (8) for a description of other options with this form of pvdisplay.
SEE ALSO
lvm(8), pvcreate(8), lvcreate(8), vgcreate(8)
Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) PVDISPLAY(8)