GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: a lv had been removed. :(
Operating System - HP-UX
1854905
Members
2672
Online
104105
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
back
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
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
04-09-2003 06:38 PM
04-09-2003 06:38 PM
a lv had been removed. :(
Somebody want to change a lv name,so he did it by mv cmd.But it's very unpleasent that another lv's block file had been overwrited.How can I do to recovery the block file?
eg:
brw-r----- 1 root sys 64 0x00000a Mar 3 12:46 patch
crw-r----- 1 root sys 64 0x00000a Mar 3 12:46 rpatch
now,the rpatch is lost.I only have rpatch.
eg:
brw-r----- 1 root sys 64 0x00000a Mar 3 12:46 patch
crw-r----- 1 root sys 64 0x00000a Mar 3 12:46 rpatch
now,the rpatch is lost.I only have rpatch.
Ryan Gu
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 06:45 PM
04-09-2003 06:45 PM
Re: a lv had been removed. :(
See what's in /etc/lvmconf and restore if pleased. To list out:
vgcfgrestore -f /etc/lvmconf/vg##.conf -l
To restore:
vgcfgrestore -n /dev/vg## /dev/rdsk/cXtYdZ
Also see what's still in the lvm header on each disk:
vgexport -v -s -p -m /tmp/vg##_map /dev/vg##
vi /tmp/vg##
If happy then:
vgexport -v -s -p /tmp/vg##_map /dev/vg##
-and-
mkdir /dev/vg##
mknod /dev/vg##/group -c 64 0x0000
vgimport -v -s -m /tmp/vg##_map /dev/vg##
vgcfgrestore -f /etc/lvmconf/vg##.conf -l
To restore:
vgcfgrestore -n /dev/vg## /dev/rdsk/cXtYdZ
Also see what's still in the lvm header on each disk:
vgexport -v -s -p -m /tmp/vg##_map /dev/vg##
vi /tmp/vg##
If happy then:
vgexport -v -s -p /tmp/vg##_map /dev/vg##
-and-
mkdir /dev/vg##
mknod /dev/vg##/group -c 64 0x0000
vgimport -v -s -m /tmp/vg##_map /dev/vg##
Support Fatherhood - Stop Family Law
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 06:46 PM
04-09-2003 06:46 PM
Re: a lv had been removed. :(
That's a typo:
If happy then:
vgexport -s -p -m /tmp/vg##_map /dev/vg##
-p = preview
If happy then:
vgexport -s -p -m /tmp/vg##_map /dev/vg##
-p = preview
Support Fatherhood - Stop Family Law
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 07:47 PM
04-09-2003 07:47 PM
Re: a lv had been removed. :(
You would simply run mknod to recreate that file. Assuming this is in vg01 ..
# cd /dev/vg01
# mknod /dev/vg01/patch b 64 0x00000a
# chmod 640 patch
# cd /dev/vg01
# mknod /dev/vg01/patch b 64 0x00000a
# chmod 640 patch
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 2026 Hewlett Packard Enterprise Development LP