- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to add a newly presented disk do a volume grou...
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
тАО02-08-2008 03:45 AM
тАО02-08-2008 03:45 AM
How to add a newly presented disk do a volume group?
I have one newly presented disk from EVA and need to add it to the existing volume group (EVA00). This disk was for backup purposes and had already been presented to both Production and Development boxes. Now it will stay presented to the Production box. Here the output from "ioscan -funCdisk":
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
...
disk 4 0/3/1/0.1.0.0.0.0.2 sdisk CLAIMED DEVICE HP HSV2 00
/dev/dsk/c4t0d2 /dev/rdsk/c4t0d2
...
disk 5 0/3/1/0.1.1.0.0.0.2 sdisk CLAIMED DEVICE HP HSV2 00
/dev/dsk/c6t0d2 /dev/rdsk/c6t0d2
I already checked that it isn't active/used with "vgscan -pv":
vgscan: Warning: couldn't query physical volume "/dev/dsk/c4t0d2":
The specified path does not correspond to physical volume attached to
this volume group
vgscan: Warning: couldn't query physical volume "/dev/dsk/c6t0d2":
The specified path does not correspond to physical volume attached to
this volume group
vgscan: Warning: couldn't query all of the physical volumes.
vgscan: The physical volume "/dev/dsk/c9t0d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c4t0d1" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c4t0d2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c6t0d1" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c6t0d2" is already recorded in the "/etc/lvmtab" file.
Current path "/dev/dsk/c6t0d1" is an alternate link, skip.
Couldn't stat physical volume "/dev/dsk/c0t0d0":
Invalid argument
Physical Volume "/dev/dsk/c4t0d2" contains no LVM information
Physical Volume "/dev/dsk/c6t0d2" contains no LVM information
/dev/vg00
/dev/dsk/c9t0d0
/dev/EVA00
/dev/dsk/c4t0d1
/dev/dsk/c6t0d1
...
/dev/dsk/c6t0d2 is the alternate path to /dev/dsk/c4t0d2.
Also checked with "pvdisplay -v /dev/dsk/c4t0d2":
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d2":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c6t0d2":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/EVA01".
pvdisplay: Cannot display physical volume "/dev/dsk/c4t0d2".
Now, what is the safe way to add this disk to vg EVA00?
Can I do a "pvcreate -f /dev/rdsk/c4t0d2"? And after this a "vgextend ..."?
Thanks,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2008 03:57 AM
тАО02-08-2008 03:57 AM
Re: How to add a newly presented disk do a volume group?
Why is it there. Did you do another vgcreate on this disks before?
What is in
# strings /etc/lvmtab
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2008 04:37 AM
тАО02-08-2008 04:37 AM
Re: How to add a newly presented disk do a volume group?
Yes, it has already been "pvreated, vgcreated, ..." (on both servers PROD and DEV). The idea was to have a identical configuration for this disk in both servers and use it where it was most needed.
"strings /etc/lvmtab":
strings /etc/lvmtab
/dev/vg00
/dev/dsk/c9t0d0
/dev/EVA00
/dev/dsk/c4t0d1
/dev/dsk/c6t0d1
/dev/EVA01
/dev/dsk/c4t0d2
/dev/dsk/c6t0d2
I may just need to "vgactivate" it? :-)
Thanks,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2008 04:41 AM
тАО02-08-2008 04:41 AM
Re: How to add a newly presented disk do a volume group?
Now you can do a pvcreate -f ... and create the VG again.
But a vgchange -a y ... will probably active the existing VG too.
Consider to unpresent the LUN from your development system to prevent serious problems in the future.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2008 04:48 AM
тАО02-08-2008 04:48 AM
Re: How to add a newly presented disk do a volume group?
"vgchange -a y":
Volume group "/dev/vg00" has been successfully changed.
Volume group "/dev/EVA00" has been successfully changed.
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t0d2":
Cross-device link
vgchange: Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t0d2":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c6t0d2":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/EVA01":
Quorum not present, or some physical volume( s ) are missing.
PS: the LUN has already been unpresented from DEV box.
Thanks,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2008 04:53 AM
тАО02-08-2008 04:53 AM
Re: How to add a newly presented disk do a volume group?
Anyway, time for plan B.
vgexport this VG and start over.
Make sure your deal with the correct disk.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2008 08:38 AM
тАО02-08-2008 08:38 AM
Re: How to add a newly presented disk do a volume group?
"vgexport -m EVA01.mymap -v /dev/EVA01" successful:
Beginning the export process on Volume Group "/dev/EVA01".
/dev/dsk/c4t0d2
/dev/dsk/c6t0d2
Physical volume "/dev/dsk/c4t0d2" has been successfully deleted from
physical volume group "EVA01".
Physical volume "/dev/dsk/c6t0d2" has been successfully deleted from
physical volume group "EVA01".
Volume group "/dev/EVA01" has been successfully removed.
What about now?
"pvcreate /dev/rdsk/c4t0d2"? (do I need -s disk_size?)
Thanks,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2008 08:41 AM
тАО02-08-2008 08:41 AM
Re: How to add a newly presented disk do a volume group?
I don't know how large your vdisk is, so I don't know if you need to use a different PE size.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2008 08:53 AM
тАО02-08-2008 08:53 AM
Re: How to add a newly presented disk do a volume group?
I already did:
"mkdir /dev/EVA01"
"mknod /dev/EVA01/group c 64 0x030000"
The vdisk size is 30Gb.
"pvcreate -f /dev/rdsk/c4t0d2"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2008 09:08 AM
тАО02-08-2008 09:08 AM
Re: How to add a newly presented disk do a volume group?
will create new LVM structure on the disk (data will be lost).
With a default PE size of 4MB you will get ~7500 PEs. The maximum per disk is 65535.
So this should be OK, unless you want a much larger disk to tis VG later.
To use all default values, simply run
vgcreate /dev/EVA01 /dev/dsk/c4t0d2
For detailed information see
http://docs.hp.com/en/B2355-60105/vgcreate.1M.html
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!