- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Recovering lost lvol information?
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
07-20-2004 11:45 AM
07-20-2004 11:45 AM
Recovering lost lvol information?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 11:54 AM
07-20-2004 11:54 AM
Re: Recovering lost lvol information?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 12:13 PM
07-20-2004 12:13 PM
Re: Recovering lost lvol information?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 12:36 PM
07-20-2004 12:36 PM
Re: Recovering lost lvol information?
Have a look at this similar problem and decide for yourself whether it is easy enough. Again it is not something I would recommend.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=620723
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 12:44 PM
07-20-2004 12:44 PM
Re: Recovering lost lvol information?
Do I understand you correctly that the lvol is still there, the data is still there?
So of the VG is called vgx and the lvol lvx then you do have /dev/vgx/lvx, but do not have /dev/vgx/rlvx due to an operational error perhaps. Well in that case I think you can just do a mknod using the major and minor number from the lvx.
For example:
[/usr/hein]$ ls -l /dev/*06*/*hein*
brw-r----- 1 root sys 64 0x060003 Jul 20 17:18 /dev/vg_xp06/hein
crw-r----- 1 root sys 64 0x060003 Jul 20 17:11 /dev/vg_xp06/rhein
time dd if=/dev/vg_xp06/rhein bs=1024k | grep -c hein
320+0 records in
320+0 records out
$ rm /dev/vg_xp06/rhein
$ dd if=/dev/vg_xp06/rhein bs=1024k | grep -c hein
/dev/vg_xp06/rhein: No such file or directory
dd: cannot open /dev/vg_xp06/rhein
real 0.0
user 0.0
sys 0.0
0
$ mknod /dev/vg_xp06/rhein b 64 0x060003
$ dd if=/dev/vg_xp06/rhein bs=1024k | grep -c hein
320+0 records in
320+0 records out
299
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 01:02 PM
07-20-2004 01:02 PM
Re: Recovering lost lvol information?
Hmm,
I may have spoken too soon.
Cleaning up from my test makes lvm complain, and I notice a new lvol call xxx/rhein. Odd. Unfortunately it'll be a while before I can follow up I'm afraid, so go easy. (or don't go).
Also, if this is for an Oracle datafile, then you will also want to do a chmod and chown on the mknod result (if you go that route).
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 03:11 PM
07-20-2004 03:11 PM
Re: Recovering lost lvol information?
Ah, ok, I was a touch sloppy. The revoce procedure I outlined does work, but somehow I used mknod 'b' where I darn well knwo it should be 'c' for the raw device as per:
> crw-r----- 1 root sys 64 0x060003 Jul 20 17:11 /dev/vg_xp06/rhein
So the right recovery fro my example was:
$ mknod /dev/vg_xp06/rhein c 64 0x060003
by accidently using the 'b' I created an 'alias' LV which confused lvm of course.
I just used rm on the duplicate block device then created the character/raw device with mknod 'c' and, re-tested, lvchange -a n, lvremove. Clean.
See also 'man 1m mknod'
Btw... I should have known something was smelly because in actuallity I timed the grep and the timing matched a block device, not a raw device. Oh well, so much for trying to help in a hurry.
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 05:05 AM
07-21-2004 05:05 AM
Re: Recovering lost lvol information?
Thanky to everyone who responded.
Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 01:38 PM
07-21-2004 01:38 PM
Re: Recovering lost lvol information?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 02:48 PM
07-21-2004 02:48 PM
Re: Recovering lost lvol information?
The number "0x######" is as same as the lvol device file.