- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgextend
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
тАО04-23-2008 03:05 AM
тАО04-23-2008 03:05 AM
Hi,
My Requirement is to move two PVтАЩs belonging to two VGтАЩs respectively to a single VG.
To be more clear,
PV -> /dev/dsk/c2t0d0 -> resides in /dev/vg01
PV-> /dev/dsk/c2t0d1 -> resides in /dev/vg02
Currently,
/dev/vg03 -> is having /dev/dsk/c2t0d2.
I want to add the above two PVтАЩs to the vg03.
And for further info, all the 3 VGтАЩs contain only one lvol in it.
I am using the below command sequence.
#lvremove тАУf /dev/vg01/lv01
#vgexport тАУs тАУm /tmp/vg01tmp /dev/vg01
#vgreduce /dev/vg01 /dev/dsk/c2t0d0
#lvremove тАУf /dev/vg02/lv02
#vgexport тАУs тАУm /tmp/vg02tmp /dev/vg02
#vgreduce /dev/vg02 /dev/dsk/c2t0d1
#vgextend /dev/vg03 /dev/dsk/c2t0d0 /dev/dsk/c2t0d1
#
Just let me know whether this sequence of commands will do or not.
If not, tell me what I have missed or what is wrong.
(Note: Not to worry about the data, as all the file systems doesnтАЩt have any data)
Thanks in Advance!!
Sridhar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2008 03:16 AM
тАО04-23-2008 03:16 AM
Re: vgextend
>>#lvremove ├в f /dev/vg01/lv01
>>#vgexport ├в s ├в m /tmp/vg01tmp /dev/vg01
pvmove /dev/dsk/c2t0d2 /dev/dsk/c2t0d0
>>#vgreduce /dev/vg01 /dev/dsk/c2t0d0
>>#lvremove ├в f /dev/vg02/lv02
>>#lvremove ├в f /dev/vg02/lv02
>>#vgexport ├в s ├в m /tmp/vg02tmp /dev/vg02
pvmove /dev/dsk/c2t0d1 /dev/dsk/c2t0d2
>>#vgreduce /dev/vg02 /dev/dsk/c2t0d1
you can additionally reuce the pv using pvmove.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2008 03:18 AM
тАО04-23-2008 03:18 AM
Solution>>#lvremove ├в f /dev/vg01/lv01
>>#vgexport ├в s ├в m /tmp/vg01tmp /dev/vg01
pvmove /dev/dsk/c2t0d2 /dev/dsk/c2t0d0
>>#vgreduce /dev/vg01 /dev/dsk/c2t0d0
>>#lvremove ├в f /dev/vg02/lv02
>>#lvremove ├в f /dev/vg02/lv02
>>#vgexport ├в s ├в m /tmp/vg02tmp /dev/vg02
pvmove /dev/dsk/c2t0d1 /dev/dsk/c2t0d2
>>#vgreduce /dev/vg02 /dev/dsk/c2t0d1
you can additionally reduce the pv using pvmove.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2008 03:24 AM
тАО04-23-2008 03:24 AM
Re: vgextend
You could also blow away vg03 and then recreate as vg01 using all 3 disks.
If you're not going to recreate from scratch. Then after you vgextend vg03 you will still need to extend the lvol using lvextend.
Are these hfs or vxfs filesystems? (check fstab)
Use extendfs or fsadm to extend the filesystem.
If you don't have online JFS you'll have to unmount mountpoint(s) on the disk before you extend.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2008 03:25 AM
тАО04-23-2008 03:25 AM
Re: vgextend
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2008 05:00 AM
тАО04-23-2008 05:00 AM
Re: vgextend
vgexport /dev/vg01
vgexport /dev/vg02
pvcreate -f /dev/rdsk/c2t0d0
pvcreate -f /dev/rdsk/c2t0d1
vgextend /dev/vg03 /dev/dsk/c2t0d0 /dev/dsk/c2t0d1
Regards,
Rasheed Tamton.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2008 03:39 AM
тАО04-24-2008 03:39 AM
Re: vgextend
>>...after a pvmove he'll still have to extend the filesystem correct?
yes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 12:01 AM
тАО04-25-2008 12:01 AM
Re: vgextend
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 12:02 AM
тАО04-25-2008 12:02 AM