- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: recover pv without vgexport
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
12-26-2005 04:25 PM
12-26-2005 04:25 PM
recover pv without vgexport
I try to find out solution to recover a pv without using vgexport. Example, I have a hard disk from another server, I want to add in a new server as new vg without using vgexport and vgimport. Is it possible?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2005 04:32 PM
12-26-2005 04:32 PM
Re: recover pv without vgexport
u may like to refer to this doc:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2005 04:33 PM
12-26-2005 04:33 PM
Re: recover pv without vgexport
what do u want to do ???
u don't want to use lvm at all or don't want to use vgexport or vgimport.
The other way which i m aware of, is
use vgcfgbackup on one server and use the same configuration file on the other server and restore it with vgcfgrestore on that disk.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2005 04:55 PM
12-26-2005 04:55 PM
Re: recover pv without vgexport
You can use the following method to use hdd of another server.
1. create a directory for new vg in /dev for eg, mkdir /dev/newvg
2. check for free minor no. # ll /dev/* |grep group
3. create a new group file. eg. #mknod /dev/newvg/group c 64 0x040000
4. vgimport /dev/newvg /dev/dsk/cxtydz
5. vgchange -a y newvg
It's not must doing vgexport on the server from where you removed the disk, if you are removing temperorily.
Hope this will do...
Shameer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2005 05:10 PM
12-26-2005 05:10 PM
Re: recover pv without vgexport
What you are trying to achive is quite possible unless you do not want to preserve the data on the disk from the old server. If this is the case you can create new PV on the disk using -f option to override the existing structure. All earlier data in this process will nodoubt will be lost.
#pvcreate -f /dev/rdsk/cxtydz
(Where /dev/dsk/cxtydz is the path of the disk in new server)
Once this is done you can create new VG on the disk.
#mkdir /dev/newvgname
#mknod group c 64 0x0?0000
(Where ? is the unique minor number confirm by listing existing group files by "ll /dev/*/group)
#vgcreate /dev/newvgname /dev/dsk/cxtydz
(Optional parameters can also be specified)
#lvcreate -L ???? /dev/newvgname
#newfs -F vxfs /dev/newvgname/rlvol1
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2005 05:26 PM
12-26-2005 05:26 PM
Re: recover pv without vgexport
You can go as follows:
In new server:
1. create the vgdir
# mkdir /dev/vgname
# ls -l /dev//*/group ( # And choose a unique one)
# cd /dev/vgname
# mknod group c 64 0x0y0000 #(use the minor no, that not used )
# vgimport /dev/vgname /dev/dsk/cXtYdZ
# vgchange -a y vgname
Now you can try to mount the filesystems, as per your convenience;
# vgdisplay -v /dev/vgname
# mkdir newmnt
# mount -F vxfs /dev/vgname/lvol1 /newmnt
Cheers,
Raj.