- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mounting lvm disk that was 2nd disk from another s...
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
01-30-2003 03:29 PM
01-30-2003 03:29 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 03:35 PM
01-30-2003 03:35 PM
Solution# mkdir /dev/vg03
# mknod /dev/vg03/group c 64
# vgimport -v /dev/vg03 /dev/dsk/c?t?d?
# mkdir /mnt1
...
# mkdir /mnt?
Make temporary mount points for the LV's on the disk. The vgimport command should show you which LV's were imported from the disk.
From that point:
# mount /dev/vg03/lvol? /mnt?
And mount the LVs.
This should allow you to see the data on the disk.
The only problem you might have is if both disks were in the same VG. In that case the vgimport may or may not work. All you can do is try it and see what happens. Hopefully the system you have to try this on is a test system. vgimport'ing a disk shouldn't effect a system, but you just never know.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 03:42 PM
01-30-2003 03:42 PM
Re: Mounting lvm disk that was 2nd disk from another system.
If that volume group had both the disks in and if one disk is bad, then it is mostly likely that you will lose the data.
You can atmost cover the filesystems that were only part of disk2 (good one). You cannot get the data for the file systems that were either on disk1 (bad) or sharing disk1 and disk2.
Follow exactly the procedure given by Patrick. However, if disk1 is bad, you will not be able to activate the VG. You will need to use "vgchange -a y -q n vg03" to get it activated. See if you recover data by mounting all the file systems under /dev/vg03.
Try vgimport -v vg03 /dev/dsk/
If it fails, try with only disk2 and then use vgchange as I mentioned above.
Yes. I have real life experience with this situation and I could be able to recover only the data from the file systems that were sitting exclusively on the good disks.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 12:02 AM
01-31-2003 12:02 AM
Re: Mounting lvm disk that was 2nd disk from another system.
i had the same situation once,
basically you should know what all the lvols present on the second disk.
do the vgimport of second disk and mount those lvols on to present OS, if you doesn't know the lvols of the second disk you can't proceed. ask your client to send fstab file print if he has
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 08:54 PM
01-31-2003 08:54 PM
Re: Mounting lvm disk that was 2nd disk from another system.
The comment that you must know the lv names isn't quick on target. The first process recommended to you will create lvol1, lvol2, etc., and you'll just have to figure them out, unless you have available to you a mapping (map file from vgexport) of logical volume numbers to names (handy to store off to tape or email to some remote system just in case, along with mount point permissions and other useful info).
mmmmm...I'm wondering if the mknod command recommended to you above might be missing the minor number? I always specify it, using a number not already used on the system, as shown by a ls -l /dev/vg*/group.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 02:44 PM
02-03-2003 02:44 PM