- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to recreate a vg?
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
01-10-2006 03:08 AM
01-10-2006 03:08 AM
I´m facing the following situation...
I need to increase the max pv size, but I found out that the only way that I can do that is by recreating the vg, so my question is... How I do it? What are the spets should I follow?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 03:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 03:20 AM
01-10-2006 03:20 AM
Re: How to recreate a vg?
Backup your DATA in your volume group on tape or disk.
# ll /dev/vgxx/group
create a list of the current sizes of your logical volumes.
unmount your filesystems in this vg
# vgchange -a n /dev/vgxx
# vgexport /dev/vgxx
# mkdir /dev/vgxx
# mknod /dev/vg01/group c 64 0xyy0000
replace the yy with your current number (above ll)
create the VG with the appropriate MAX PE
use -e option with vgcreate
lvcreate your logical volumes
mount your lvol's.
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 03:40 AM
01-10-2006 03:40 AM
Re: How to recreate a vg?
before you export the VG just do a vgdisplay and note the PV device names cXtYdZ etc. so that you need not search for the unused disks again while reacreating the VG with vgcreate.
Rgds,
Ajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 03:41 AM
01-10-2006 03:41 AM
Re: How to recreate a vg?
beg your pardon but
pay attention on Robert-Jan
steps
it's not
# mknod /dev/vg01/group c 64 0xyy0000
but
# mknod /dev/vgxx/group c 64 0xyy0000
right?
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 03:47 AM
01-10-2006 03:47 AM
Re: How to recreate a vg?
after creating the logical volumes, restore the data from tape or disk :-)
Thanks Piergiacomo!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 03:49 AM
01-10-2006 03:49 AM
Re: How to recreate a vg?
I will follow these steps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 09:25 PM
01-10-2006 09:25 PM
Re: How to recreate a vg?
If your system is under support then you can ask your local HP office to do this without recreation using vgmodify utility. Allthough still before execution you should have a tested backup handy.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 09:38 PM
01-10-2006 09:38 PM
Re: How to recreate a vg?
If the vgmodify option does not work than apparently I assume that you have some spare large capacity disk which you wish to add to this vg. In that case you can create a new VG with requires parameters on the space disk and mount new file system on some other path. After this stop your applications and copy data from existing vg to the new VG LVOL using cpio or cp commands. The advantage of this is that you will have less downtime of application (only during copy and remount)
Suppose current mount points from the VG you wish to recreate are
/data
/data1
/data2
But the total of space used in these file systems should not be more than the capacity of the new disk.
Create new VG on the new disk and mount them on /dataa , /data1a , /data2a respectively.
Now stop applications and copy all data to respective new file systems.
#find /data -name "*" -print|cpio -pdmv /dataa
#find /data1 -name "*" -print|cpio -pdmv /data1a
#find /data2 -name "*" -print|cpio -pdmv /data2a
Now unmount current /data , /data1 & /data2 and mount new LVOLs on the same mount points.
Start applications and check that everything is fine. After some running remove the OLD vg and add the disks to this or any other VG.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 08:38 PM
01-11-2006 08:38 PM
Re: How to recreate a vg?
then create new vg with propriate size
# vgchange -a n /dev/vgxx
# vgexport /dev/vgxx
# mkdir /dev/vgxx
# mknod /dev/vg01/group c 64 0x??0000
#pvcreate /dev/rdsk/cxtxdx
#vgcreate -e number_of_pe -s pe_size_in_MB vgname /dev/dsk/cxtxdx
then restore data to new vg
HTH
tienna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 09:49 PM
01-11-2006 09:49 PM
Re: How to recreate a vg?
Thanks again!