HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVM disk contains data .... how to recover
Operating System - HP-UX
1833589
Members
3630
Online
110061
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-02-2005 01:16 PM
06-02-2005 01:16 PM
LVM disk contains data .... how to recover
Hi,
I have a PV which was part of an unknown vg from a server that no longer exist. The PV contains data and I want to recover it. There exists no backups.
Please help...
I have a PV which was part of an unknown vg from a server that no longer exist. The PV contains data and I want to recover it. There exists no backups.
Please help...
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 02:08 PM
06-02-2005 02:08 PM
Re: LVM disk contains data .... how to recover
Import a VG that contains the one PV w/ your data and try to salvage what is there, if anything,
# mkdir /dev/vgtest01
# mknod /dev/vgtest01/group c 64 0x040000
where "0x04" is unique to anyother existying VG's. (ll /dev/*/group to check)
# vgimport /dev/vgtest01 /dev/dsk/cXtXdX
The import could complain VG contains X PVs but only 1 specified...
# vgchange -a y -q n /dev/vgtest01
# ll /dev/vgtest01 -> is there an lvol? (lvol1)
If there's and lvol,
what type of filesystem...
# fstyp /dev/vgtest01/rlvol1
# fsck -F vxfs /dev/vgtest01/rlvol1
you should get the idea of where I'm going w/ this... If you're lucky any lvols on that PV wouldn't have spanned multiple PV's in the original VG.
When you're done, unmount the filesystem, deactivate the Vg and vgexport /dev/vgtest01 (if/when you won't need it on there anymore)
Hope this helps and good luck,
-denver
# mkdir /dev/vgtest01
# mknod /dev/vgtest01/group c 64 0x040000
where "0x04" is unique to anyother existying VG's. (ll /dev/*/group to check)
# vgimport /dev/vgtest01 /dev/dsk/cXtXdX
The import could complain VG contains X PVs but only 1 specified...
# vgchange -a y -q n /dev/vgtest01
# ll /dev/vgtest01 -> is there an lvol? (lvol1)
If there's and lvol,
what type of filesystem...
# fstyp /dev/vgtest01/rlvol1
# fsck -F vxfs /dev/vgtest01/rlvol1
you should get the idea of where I'm going w/ this... If you're lucky any lvols on that PV wouldn't have spanned multiple PV's in the original VG.
When you're done, unmount the filesystem, deactivate the Vg and vgexport /dev/vgtest01 (if/when you won't need it on there anymore)
Hope this helps and good luck,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 07:18 PM
06-02-2005 07:18 PM
Re: LVM disk contains data .... how to recover
That's the way but you could also do it by sam :
Disks and File Systems -> Volume groups
Action -> Import
and it shows you what he found onto PV...
Stf ;-)
Disks and File Systems -> Volume groups
Action -> Import
and it shows you what he found onto PV...
Stf ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2005 04:13 AM
06-05-2005 04:13 AM
Re: LVM disk contains data .... how to recover
Hi,
You should do it through command line. Reason being that you do not know this VG has how many disks and SAM will give quorum error if this VG has more that one disks.
HTH,
Devender
You should do it through command line. Reason being that you do not know this VG has how many disks and SAM will give quorum error if this VG has more that one disks.
HTH,
Devender
Impossible itself mentions "I m possible"
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP