- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- accessing a PV
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
08-24-2001 11:19 AM
08-24-2001 11:19 AM
i do not need the data on the LUNs but can see that they are PVs.
how can i see the data on these PVs without having any VG data on the system about them?
...i am just curious to see what the data is
FYI:
# pvdisplay -v /dev/dsk/c0t6d0
pvdisplay: Couldn't find the volume group to which physical volume "/dev/dsk/c0t6d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c0t6d0".
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 11:32 AM
08-24-2001 11:32 AM
Re: accessing a PV
You can run " pvcreate -f /dev/rdsk/cxtxdx" and create new VG on them.
Hope this helps.
Dipak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 11:34 AM
08-24-2001 11:34 AM
Re: accessing a PV
The disks that you are using may have been used once and still have references left to the volume group to which they earlier belonged.
pvcreate them with -f option.
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 11:35 AM
08-24-2001 11:35 AM
Re: accessing a PV
cd /dev
mkdir vgtest
cd vgtest
mknod group c 64 0x0?0000
vgimport -v /dev/vgtest /dev/dsk/c?t?d?
vgchange -a y vgtest
cd /dev/vgtest
ls #look to see lvols are ther
mkdir /test
mount /dev/vgtest/lvol1 /test
cd /test
#take a look around
cd /
umount /test
vgchange -a n vgtest
vgexport /dev/vgtest
This would be fairly quick.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 11:41 AM
08-24-2001 11:41 AM
Re: accessing a PV
You cannot use pvdisplay command if they are not part of a volume group.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 11:59 AM
08-24-2001 11:59 AM
Re: accessing a PV
You can do a vgscan (man vgscan) in preview mode to figure out which disks were part of the same volume group, and then you can import the disks.
Also you can run
echo 2000?8c+8x|adb /dev/dsk/cXtYdZ
If it returns information such as LVMREC then that means that disk belonged to some VG before.
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 01:52 PM
08-24-2001 01:52 PM
Re: accessing a PV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 01:59 PM
08-24-2001 01:59 PM
Re: accessing a PV
Like i said use
vgscan -v -p
(this will run vgscan in preview mode and tell you if there are any single/multiple disks that belong to any VG prior)
Say for eg: you found one disk which belonged a VG before, you could then create a new VG
mkdir /dev/vgtmp
mknod /dev/vgtmp/group c 64 0x??????
where is 0x?????? is a unique minor number, to figure out the next available minor number you could do something like
ls -al /dev/*/group |sort +5
now import the disk into this VG using
vgimport /dev/vgtmp /dev/dsk/cXtYdZ
vgchange -a y /dev/vgtmp
you can then do a vgdisplay on the VG and see how many LVs were defined and if you want mount the filesystems etc
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 01:59 PM
08-24-2001 01:59 PM
SolutionIf so, let's call the disk as c0t0d0.
#mkdir /dev/vgtest
#mknod /dev/vgtest/group c 64 0x0a0000
#vgimport vgtest /dev/dsk/c0t0d0
{here is where you will get the error if that volume group had other disks in addition to this)
If the vgimport is successful, you can see the logical volumes named lvol1, lvol2 etc., in /dev/vgtest
You may want to mount them and see the data.
#vgchange -a y vgtest
#mkdir /test1 /test2 /test3
#mount /dev/vgtest/lvol1 /test
#mount /dev/vgtest/lvol2 /test
depending on how the disk was taken out, you may need to a fsck on each of the logical volumes.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 02:53 PM
08-24-2001 02:53 PM
Re: accessing a PV
...thx joe and sridhar for detailed steps
i needed to fsck some of the LVs! thx sridhar for that tip, i overlooked my mount problems by assuming it had soemthing to to with LVM and not the FS