- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Find Option & LVM Option
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 06:35 PM
10-26-2004 06:35 PM
1) What is PV Key in case of LVM? What is the importance of the same? How to find the same.
2) What is the meaning of -xdev and -depth in case of cpio command
Rgds
Dinu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 07:00 PM
10-26-2004 07:00 PM
Re: Find Option & LVM Option
see the following link.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1098859781605+28353475&threadId=120276
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 07:11 PM
10-26-2004 07:11 PM
Re: Find Option & LVM Option
1. 'PV Key' is useful if you lose a disk in a VG> It is not quite used in day-to-day operations as we often replace the disk and run 'vgcfgrestore'. If there is no choice, then you can reduce the mirrors on the disk using the 'pvkey' instead of the disk device. To find the pvkey, use 'lvdisplay -v -k /dev/vgxx/lvxx' option. Note the PVKEY corresponding to the PV where the extents are stale. Reduce the mirrors using 'lvreduce -k -m 0 /dev/vgxx/lvxx
2. -xdev and -depth are 'find' option which is often used with cpio command. -xdev means, find will not traverse filesystem undeneath the specified directory. For ex., if there is a filesystem called /usr/local and if you specify 'find /usr -xdev', then all the files under /usr except under /usr/local will be displayed. 'depth' causes find to start at the lowest lowel of the root directory specified with find command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 07:13 PM
10-26-2004 07:13 PM
Re: Find Option & LVM Option
Thanks for the link..
I still need some more details of PV Key.
Is this the sequence in which the LV distribution happens? or just identification?
What is the meaning of -xdev and -depth in case of cpio command
Rgds
Dinu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 07:17 PM
10-26-2004 07:17 PM
Re: Find Option & LVM Option
the find options -depth & -xdev are used with cpio command.
see the man page of find for -depth defenition
A position-independent term which causes
descent of the directory hierarchy to be done
so that all entries in a directory are acted
on before the directory itself. This can be
useful when find is used with cpio(1) to
transfer files that are contained in
directories without write permission.
it preserves the dirextory structure..
for -xdev see the following link
http://www.matilda.com/hacmp/find_tricks.html
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 07:35 PM
10-26-2004 07:35 PM
Re: Find Option & LVM Option
Thanks..
Then the pvkey tricks are used in case of following..If wrong please correct
1) Not able to reduce the morror on dead disk using the disk notation.like
lvreduce -m1 /dev/vg00/lvol7 /dev/dsk/
2) Not able to run the vgcfgrestore command for the replaced disk after removing the dead disk.
Then about find options used for cpio
/* xdev means, find will not traverse filesystem undeneath the specified directory. For ex., if there is a filesystem called /usr/local and if you specify 'find /usr -xdev', then all the files under /usr except under /usr/local will be displayed. */
In the above example 'find /usr -xdev' if there is more than one directoy i.e. something like /usr/local, /usr/test, /usr/123, /usr/test2.. Does this mean that these dirctories also not included in the find option..
Are the files under /usr is backed up?
'depth' causes find to start at the lowest lowel of the root directory specified with find command.
Can you pleas explain the depth also like above eg for xdev
With Rgds
Dinu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 07:56 PM
10-26-2004 07:56 PM
Solutionthe PV key of a disk indicates its order in the VG .the first PV has the key 0,the second has the key 1, etc.this does not necessarily have to be the order of appearance in lvmtab although it is usually like that,at least when a vg is created.
sometimes you will see error messages (usually when using fibre channel connections to connect to disk array) like
PV(X) is POWERFAILED in syslog.in this case X is the PV key.you can easily find the disk by lvdisplay command.
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 08:12 PM
10-26-2004 08:12 PM
Re: Find Option & LVM Option
You are quite right about PV Key now.
Regarding -xdev option, in your case any directory that holds a mount point will not be traversed. But the mount point itself will be reported. For ex., if /usr/local and /usr/123 are filesystems, then find will report about only those two directories and nothing underneath them. Rest of the directories will be reported with their contents.
About -depth option, the lowest level will be printed first. You can test it for yourself. 'test' is a subdirectory under the current directory
$find test
test
test/dir1
test/dir1/subdir
test/dir1/subdir/file
test/dir2
$find test -depth
test/dir1/subdir/file
test/dir1/subdir
test/dir1
test/dir2
test
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 09:16 PM
10-26-2004 09:16 PM
Re: Find Option & LVM Option
Thanks..
Let me to close the thread..
Rgds
Dinu