- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vg rebuild
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
06-06-2002 03:44 PM
06-06-2002 03:44 PM
vg rebuild
I need to re-build a vg (the max PE per PV is to small). I need to bring in some larger disks into this vg. Can I re-build the vg, and then somehow 'import' the original disks back in?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 04:53 PM
06-06-2002 04:53 PM
Re: vg rebuild
No you would need to create a new VG. You can't add a larger disk to an existing volume group larger than the first disk that was added. You can't actually export/import to a different group name either. The best method would be to create a new volume group and logical volumes of equivalent size or bigger, create new filesystems on them, copy the data and then re-mount the new logical volumes on the old mount point names.
Cheers
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 05:05 PM
06-06-2002 05:05 PM
Re: vg rebuild
a) Backup of all data in vg03.
b) Take note of these ..
- LV configuration
- FS configuration
c) Umount all FS that of vg03.
d) Remove vg03 (using vgexport is the fastest)
# vgchange -a n /dev/vg03
# vgexport /dev/vg03
e) Create back your vg03.
# pvcreate /dev/rdsk/cXtYdZ
# mkdir /dev/vg03
# mknod /dev/vg03/group c 64 0x030000
# vgcreate /dev/vg03 /dev/dsk/cXtYdZ
==> use the largest disk here
# vgextend /dev/vg03 /dev/dsk/cAtBdC
==> repeat for the rest of the disks
# lvcreate -n
==> repeat for the rest
# newfs -F
==> recreate FS
Finally mount them and restore the data.
Having said all that I think it is simply much easier to just use those larger disks and create a separate VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 05:45 PM
06-06-2002 05:45 PM
Re: vg rebuild
# vgchange -a n /dev/vg01
==> umount the FS and deactivate it
# vgexport ???m /tmp/mapfile /dev/vg01
# mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x020000
# vgimport ???m /tmp/mapfile /dev/vg02 /dev/dsk/
# vgchange -a y /dev/vg02
# vgcfgbackup /dev/vg02
To copy file systems I use the following method:
dump 0f - /usr | (cd /mnt; restore xf -)
of vxdump if vxfs
This is in the man page for restore if you can't remember it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2002 09:47 AM
06-07-2002 09:47 AM
Re: vg rebuild
mount /dev/vg0xxx/lvolxx /old_filesystem
cd /old_filesystem
find . -depth | cpio -dumpx /new_mount_point
This way all perms etc. are retained.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2002 10:05 AM
06-07-2002 10:05 AM
Re: vg rebuild
You cannot do that. Maybe this link can explain a few things for you.
http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000054370942
Hope this helps.
Regds