- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- adding PVs to mirror
Operating System - HP-UX
1753948
Members
7324
Online
108811
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
12-09-2009 09:01 AM
12-09-2009 09:01 AM
adding PVs to mirror
Hi,
On an rx2660 Integrity, HP/UX 11.23, I've got two disks for vg00 and mirrored LVs on it. Two other disks are providing another mirror on vg01. I'm adding four disks in view to extend those filesystems :
- /opt on vg00
- /home on vg00
- / on vg00 (don't sure I'll grow that one... see below)
- /somedir on vg01
Since it's an rx2660 I guess hardware RAID was an option, but the system is already in production and I'll let the new disks without hw raid to keep the whole config consistent.
How to add new PVs to that configuration ? As far as I know I need to keep "/" contiguous on vg00, which implies moving the next LV. I guess I'll also need to create partitions on the new disks, copy EFI on it and lvlnboot -r once the "/" filesystem has growed right ?
Now let's just forget the "/" issue. Growing "/opt" "/home" and "/somedir" may be sufficient. In that case may I just use the new disks as PVs w/o creating partitions (idisk) ?
Here's the procedure I imagine, w/o growing "/". Do you think it will work ? Won't it break anything preventing the system to restart ?
Adding new disks 5 and 6 to vg00,
pvcreate /dev/rdsk/c3t4d0
pvcreate /dev/rdsk/c3t5d0
vgextend vg00 /dev/dsk/c3t4d0
vgextend vg00 /dev/dsk/c3t5d0
Adding disks 7 and 8 to vg01,
pvcreate /dev/rdsk/c3t6d0
pvcreate /dev/rdsk/c3t7d0
vgextend vg01 /dev/dsk/c3t6d0
vgextend vg01 /dev/dsk/c3t7d0
Moving wanted volumes to the new disks,
pvmove -n /dev/vg00/lvol5 /dev/dsk/c3t4d0
pvmove -n /dev/vg00/lvol6 /dev/dsk/c3t4d0
pvmove -n /dev/vg01/lvol1 /dev/dsk/c3t6d0
Note. first new disk of vg00 for /home and /opt
Note. first new disk of vg01 for /somedir
Extending LVs,
lvextend -L NOUVELLE_TAILLE_MEGA /dev/vg00/lvol5
lvextend -L NOUVELLE_TAILLE_MEGA /dev/vg00/lvol6
lvextend -L NOUVELLE_TAILLE_MEGA /dev/vg01/lvol1
Growing the filesystems,
fsadm -b NOUVELLE_TAILL_BYTES /home
fsadm -b NOUVELLE_TAILL_BYTES /opt
fsadm -b NOUVELLE_TAILL_BYTES /var/opt/oradata
Note. I need to check OnlineJFS is available
Making mirrors for moved LVs,
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t5d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t5d0
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c3t7d0
Won't that break anything ?
Thanks
-Pierre-Philipp
On an rx2660 Integrity, HP/UX 11.23, I've got two disks for vg00 and mirrored LVs on it. Two other disks are providing another mirror on vg01. I'm adding four disks in view to extend those filesystems :
- /opt on vg00
- /home on vg00
- / on vg00 (don't sure I'll grow that one... see below)
- /somedir on vg01
Since it's an rx2660 I guess hardware RAID was an option, but the system is already in production and I'll let the new disks without hw raid to keep the whole config consistent.
How to add new PVs to that configuration ? As far as I know I need to keep "/" contiguous on vg00, which implies moving the next LV. I guess I'll also need to create partitions on the new disks, copy EFI on it and lvlnboot -r once the "/" filesystem has growed right ?
Now let's just forget the "/" issue. Growing "/opt" "/home" and "/somedir" may be sufficient. In that case may I just use the new disks as PVs w/o creating partitions (idisk) ?
Here's the procedure I imagine, w/o growing "/". Do you think it will work ? Won't it break anything preventing the system to restart ?
Adding new disks 5 and 6 to vg00,
pvcreate /dev/rdsk/c3t4d0
pvcreate /dev/rdsk/c3t5d0
vgextend vg00 /dev/dsk/c3t4d0
vgextend vg00 /dev/dsk/c3t5d0
Adding disks 7 and 8 to vg01,
pvcreate /dev/rdsk/c3t6d0
pvcreate /dev/rdsk/c3t7d0
vgextend vg01 /dev/dsk/c3t6d0
vgextend vg01 /dev/dsk/c3t7d0
Moving wanted volumes to the new disks,
pvmove -n /dev/vg00/lvol5 /dev/dsk/c3t4d0
pvmove -n /dev/vg00/lvol6 /dev/dsk/c3t4d0
pvmove -n /dev/vg01/lvol1 /dev/dsk/c3t6d0
Note. first new disk of vg00 for /home and /opt
Note. first new disk of vg01 for /somedir
Extending LVs,
lvextend -L NOUVELLE_TAILLE_MEGA /dev/vg00/lvol5
lvextend -L NOUVELLE_TAILLE_MEGA /dev/vg00/lvol6
lvextend -L NOUVELLE_TAILLE_MEGA /dev/vg01/lvol1
Growing the filesystems,
fsadm -b NOUVELLE_TAILL_BYTES /home
fsadm -b NOUVELLE_TAILL_BYTES /opt
fsadm -b NOUVELLE_TAILL_BYTES /var/opt/oradata
Note. I need to check OnlineJFS is available
Making mirrors for moved LVs,
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t5d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t5d0
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c3t7d0
Won't that break anything ?
Thanks
-Pierre-Philipp
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2009 01:41 AM
12-26-2009 01:41 AM
Re: adding PVs to mirror
It worked, I just had to disable (-m 0) the existing mirrors before moving their PEs. In brief, it's possible to move non boot/root/dump/swap LVs on other disks without troubles.
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