- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- recover file system from an lvm disk
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
Discussions
Discussions
Forums
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
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-27-2012 12:08 PM
тАО08-27-2012 12:08 PM
Following a series of unfortunate events, I am left wit an lvm disk which is separated from its original server. There is just one vxfs file system on the disk. If can't be mounted with the typical mount command. Is it possible to retrieve the data from the file system? Perhaps a data recovery utility program?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2012 12:17 PM
тАО08-27-2012 12:17 PM
Re: recover file system from an lvm disk
>>If can't be mounted with the typical mount command
What happened when you tried this?
The usual procedure for doing something like this is to use vgimport to import the disk into its own VG, activate the VG, then mount the LVOL from that disk.
If I were to try to import c1t2d0 into a VG, I would do (assuming an LVM 1 VG):
# mkdir /dev/vgtest
# mknod /dev/vgtest/group c 64 0x050000
(or whatever minor number is available)
# vgimport /dev/vgtest /dev/dsk/c1t2d0
If that is successful, then:
# vgchange -a y /dev/vgtest
# vgdisplay -v /dev/vgtest
to see what LVs are in the VG.
Then try to mount the LV(s).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2012 12:33 PM
тАО08-27-2012 12:33 PM
Re: recover file system from an lvm disk
mount says:
# mount -F vxfs /dev/disk/disk13 /test
UX:vxfs mount: ERROR: V-3-20012: not a valid vxfs file system
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
I will try your method. reply later. thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2012 12:42 PM
тАО08-27-2012 12:42 PM
Re: recover file system from an lvm disk
# mkdir /dev/vgtest
## mknod /dev/vgtest/group c 64 0x050000
#
# vgimport /dev/vgtest /dev/disk/disk13
vgimport: Warning: Volume Group belongs to different CPU ID.
Can not determine if Volume Group is in use on another system. Continuing.
vgimport: Warning: Volume Group contains "2" PVs, "1" specified. Continuing.
vgimport: Volume group "/dev/vgtest" has been successfully created.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.
#
# vgchange -a y /dev/vgtest
vgchange: Activation mode requested for the volume group "/dev/vgtest" conflicts with configured mode.
#
# vgchange -a e /dev/vgtest
vgchange: Volume group "/dev/vgtest" belongs to a different Cluster. Activation failed.
******
Yes it came from a different server and a different vg in that server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2012 01:05 PM
тАО08-27-2012 01:05 PM
Re: recover file system from an lvm disk
OK, do:
# vgchange -c n /dev/vgtest
# vgchange -a y /dev/vgtest
# vgdisplay -v /dev/vgtest
To verify the LV.
Then try mounting your LV.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2012 01:08 PM
тАО08-27-2012 01:08 PM
Re: recover file system from an lvm disk
I just noticed the following WARNING in your output:
>>vgimport: Warning: Volume Group contains "2" PVs, "1" specified.
Since the VG originally had 2 PVs you may need to do:
# vgchange -a y -q n /dev/vgtest
So vgchange will ignore the quorum requirement for the VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2012 01:22 PM
тАО08-27-2012 01:22 PM
SolutionThanks Patrick,
I just made a fix that works.
The VG was marked cluter aware. I deleted that.
A mount declared a corrupt file system on /dev/vgtest - reccommended fsck.
fsck cleaned the root block.
mount is now successful. I can recover the data now.
THANKS. WOW!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2012 01:28 PM
тАО08-27-2012 01:28 PM
Re: recover file system from an lvm disk
Good news!