- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vg disk device file changed
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
тАО10-26-2005 07:29 PM
тАО10-26-2005 07:29 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2005 07:38 PM
тАО10-26-2005 07:38 PM
Re: vg disk device file changed
You need to reimport the VG with new device file.
First find out unique minor number for the new VG using
#ll /dev/*/group
Let us say the sequence goes like
0x010000
0x010000
0x020000
0x030000
0x040000
0x050000
Select next number as your number. Here say 0x060000
Now
#mkdir /dev/newvgname
#mknod /dev/newvgname/group c 64 0x060000
#vgimport /dev/newvgname /dev/dsk/c20t1d2
You will find all file system device files under /dev/newvgname after import.
Mount them on required mount-points and change entries in /etc/fstab to reflect new file system device files.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2005 07:40 PM
тАО10-26-2005 07:40 PM
Re: vg disk device file changed
You can use 'pvmove' command.
For more details, check the manpage of pvmove :
# man pvmove
Hope this information can help you.
Cheers,
AW
PS : it's a good backup also if you backup the LVM configuration with vgcfgbackup command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2005 10:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2005 11:14 PM
тАО10-26-2005 11:14 PM
Re: vg disk device file changed
ll /dev/vgname/group
(take note of the minor#)
I assume the vg is not active at this time...
vgexport -v -s -m /tmp/vgname.map /dev/vgname
mkdir /dev/vgname
mknod /dev/vgname/group c 64 0x??0000
(where 0x??0000 matches the minor# fom ll above)
vgimport -v -s -m /tmp/vgname /dev/vgname
vgchange -a y /dev/vgname
This should do it if the only thing that changed was the device used for the PV.
Hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2005 11:14 PM
тАО10-26-2005 11:14 PM
Re: vg disk device file changed
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2005 11:40 PM
тАО10-26-2005 11:40 PM
Re: vg disk device file changed
if this were a production box w/ a good number of volume groups, I'd probably opt for vgexport/vgimport to fix the one vg.
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2005 11:46 PM
тАО10-26-2005 11:46 PM
Re: vg disk device file changed
I have same problem.
I solve it this way:
Deactivate the vg.
vgexport -m /tmp/vgXY.map /dev/vgXY
mkdir /dev/vgXY
mknod /dev/vgXY/group c 0x0N0000 N is the vg number
vgimport -v /dev/vgXY /dev/dsk/c20t1d2 in your case.
Last command meens that you import the vg definitions from the disk c20t1d2 and you include that disk in the volume group.
You have to activate the vg at last.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2005 02:52 PM
тАО10-27-2005 02:52 PM
Re: vg disk device file changed
Keep up the good work.
Danny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2005 02:53 PM
тАО10-27-2005 02:53 PM