- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FREE ADVICE: HP-UX 11.31 How to change minor numbe...
Operating System - HP-UX
1753359
Members
5225
Online
108792
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
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
11-24-2010 02:25 AM
11-24-2010 02:25 AM
FREE ADVICE: HP-UX 11.31 How to change minor number for vg00
Hello,
Several people asked this question in the past
and earlier today, one of my valuable students
and myself tried the procedure to change minor
numbers for vg00.
Here is the procedure in full. She tested it on
vg00 running VG version 1.0, while I confirmed
the success with vg00 running VG version 2.2.
Here are the details of my procedure (very
similar to hers):
a) Check current LVM setup:
# lvmadm -l
--- Version 2.2 volume groups ---
VG Name /dev/vg00
PV Name /dev/disk/disk6_p2
# setboot -v
Primary bootpath : 0/1/1/1.0x2.0x0 (/dev/rdisk/disk6)
HA Alternate bootpath :
Alternate bootpath : 0/1/1/0.0x1.0x0 (/dev/rdisk/disk4)
Autoboot is ON (enabled)
TEST CURRENT DEFAULT
---- ------- -------
all on on
SELFTESTS on on
early_cpu on on
late_cpu on on
FASTBOOT on on
Platform on on
Full_memory on on
Memory_init on on
IO_HW on on
Chipset on on
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk6_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk6_p2
Root: lvol3 on: /dev/disk/disk6_p2
Swap: lvol2 on: /dev/disk/disk6_p2
Dump: lvol2 on: /dev/disk/disk6_p2, 0
b) Check the current DSFs:
# ll /dev/vg00
total 0
crw-r----- 1 root sys 128 0x000000 Mar 31 2010 group
brw-r----- 1 root sys 128 0x000001 Mar 31 2010 lvol1
brw-r----- 1 root sys 128 0x00000a Mar 31 2010 lvol10
brw-r----- 1 root sys 128 0x000002 Mar 31 2010 lvol2
...
c) Reboot into LVM maintenance mode:
HPUX> boot vmunix -lm
d) Run LVM commands and set new minor number
that is not in use currently:
# vgexport -s -m /vg00.map /dev/vg00
vgexport: Volume group "/dev/vg00" has been
successfully removed.
# mkdir /dev/vg00
# mknod vg00/group c 128 0x010000
e) Run one of these two commands (whichever is
easier for admins):
# vgimport -N -s -m /vg00.map vg00
vgimport: Volume group "/dev/vg00" has been
successfully created.
Warning: A backup of this volume group may not
exist on this machine.
Please remember to take a backup using the
vgcfgbackup command after activating the volume
group.
or
# vgimport -m /vg00.map vg00 /dev/disk/disk6_p2
vgimport: Volume group "/dev/vg00" has been successfully created.
Warning: A backup of this volume group may not
exist on this machine.
Please remember to take a backup using the
vgcfgbackup command after activating the volume
group.
f) Re-activate the volume group:
# vgchange -a y vg00
Activated volume group.
Volume group "vg00" has been successfully
changed.
g) Remove old LVM structures:
# lvlnboot -R vg00
Warning: Logical Volume number "-2147483645"
found on physical volume not found in "vg00".
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
# lvrmboot -r vg00
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
h) Set up the new LVM structures:
# lvlnboot -v
lvlnboot: The Boot Data Area is empty.
# lvlnboot -b /dev/vg00/lvol1
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
# lvlnboot -r /dev/vg00/lvol3
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
# lvlnboot -s /dev/vg00/lvol2
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
# lvlnboot -d /dev/vg00/lvol2
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk6_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk6_p2
Root: lvol3 on: /dev/disk/disk6_p2
Swap: lvol2 on: /dev/disk/disk6_p2
Dump: lvol2 on: /dev/disk/disk6_p2, 0
# lvlnboot -R vg00
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
A final reboot and it all worked.
Cheers,
VK2COT
Several people asked this question in the past
and earlier today, one of my valuable students
and myself tried the procedure to change minor
numbers for vg00.
Here is the procedure in full. She tested it on
vg00 running VG version 1.0, while I confirmed
the success with vg00 running VG version 2.2.
Here are the details of my procedure (very
similar to hers):
a) Check current LVM setup:
# lvmadm -l
--- Version 2.2 volume groups ---
VG Name /dev/vg00
PV Name /dev/disk/disk6_p2
# setboot -v
Primary bootpath : 0/1/1/1.0x2.0x0 (/dev/rdisk/disk6)
HA Alternate bootpath :
Alternate bootpath : 0/1/1/0.0x1.0x0 (/dev/rdisk/disk4)
Autoboot is ON (enabled)
TEST CURRENT DEFAULT
---- ------- -------
all on on
SELFTESTS on on
early_cpu on on
late_cpu on on
FASTBOOT on on
Platform on on
Full_memory on on
Memory_init on on
IO_HW on on
Chipset on on
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk6_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk6_p2
Root: lvol3 on: /dev/disk/disk6_p2
Swap: lvol2 on: /dev/disk/disk6_p2
Dump: lvol2 on: /dev/disk/disk6_p2, 0
b) Check the current DSFs:
# ll /dev/vg00
total 0
crw-r----- 1 root sys 128 0x000000 Mar 31 2010 group
brw-r----- 1 root sys 128 0x000001 Mar 31 2010 lvol1
brw-r----- 1 root sys 128 0x00000a Mar 31 2010 lvol10
brw-r----- 1 root sys 128 0x000002 Mar 31 2010 lvol2
...
c) Reboot into LVM maintenance mode:
HPUX> boot vmunix -lm
d) Run LVM commands and set new minor number
that is not in use currently:
# vgexport -s -m /vg00.map /dev/vg00
vgexport: Volume group "/dev/vg00" has been
successfully removed.
# mkdir /dev/vg00
# mknod vg00/group c 128 0x010000
e) Run one of these two commands (whichever is
easier for admins):
# vgimport -N -s -m /vg00.map vg00
vgimport: Volume group "/dev/vg00" has been
successfully created.
Warning: A backup of this volume group may not
exist on this machine.
Please remember to take a backup using the
vgcfgbackup command after activating the volume
group.
or
# vgimport -m /vg00.map vg00 /dev/disk/disk6_p2
vgimport: Volume group "/dev/vg00" has been successfully created.
Warning: A backup of this volume group may not
exist on this machine.
Please remember to take a backup using the
vgcfgbackup command after activating the volume
group.
f) Re-activate the volume group:
# vgchange -a y vg00
Activated volume group.
Volume group "vg00" has been successfully
changed.
g) Remove old LVM structures:
# lvlnboot -R vg00
Warning: Logical Volume number "-2147483645"
found on physical volume not found in "vg00".
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
# lvrmboot -r vg00
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
h) Set up the new LVM structures:
# lvlnboot -v
lvlnboot: The Boot Data Area is empty.
# lvlnboot -b /dev/vg00/lvol1
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
# lvlnboot -r /dev/vg00/lvol3
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
# lvlnboot -s /dev/vg00/lvol2
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
# lvlnboot -d /dev/vg00/lvol2
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk6_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk6_p2
Root: lvol3 on: /dev/disk/disk6_p2
Swap: lvol2 on: /dev/disk/disk6_p2
Dump: lvol2 on: /dev/disk/disk6_p2, 0
# lvlnboot -R vg00
Volume Group configuration for /dev/vg00 has
been saved in /etc/lvmconf/vg00.conf
A final reboot and it all worked.
Cheers,
VK2COT
VK2COT - Dusan Baljevic
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2010 01:09 AM
11-26-2010 01:09 AM
Re: FREE ADVICE: HP-UX 11.31 How to change minor number for vg00
It was simply a notification for the Forum
members.
No replies were expected.
members.
No replies were expected.
VK2COT - Dusan Baljevic
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP