- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Add new disk (mirror)
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
тАО03-01-2010 09:56 PM
тАО03-01-2010 09:56 PM
Add new disk (mirror)
OS:HP-UX 11.11
Server:rp5410
Iam bit new to this mirror disk concept need an expert view upon my below issue.
#This problem of up gradation related to DATA DISK only NOT boot disk's(vg00)
Planned to upgrade mirror data disk (ex 50GB) to new disk (ex 100GB).
Scenario 1:
How to restore old disk data on new disk, Is it possible to insert new disk one by one and later increase VG&LV's for more space requirement.
Scenarios 2:
Forget about restoring old data.
If i remove old disk and insert both new disk, how to MIRROR those disk and rest process will be to make VG & LV as per client requirements.
I appreciate all who contribute a worth info.
Have a nice day :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2010 10:14 PM
тАО03-01-2010 10:14 PM
Re: Add new disk (mirror)
both of you scenarios are posible to do :
1, just simple reduce 1 mirror copy and replace the disk to bigger size, and them if its mirrored, them replace with the same procedure the second disk, of course at the end you can increase the LVOLS/fs size.
offline = extendfs
online = fsadm
2, backup your system via ignite (tape/server),
restore the system to the new disk ( in advanced type of restoration/installation you will be able change the size of LVOLs, and them mirror it together.
i'm using this commands in simple shell script :
#primary disk : c2t0d0 / hwpath : 0/1/1/0.0.0
#for mirroring disk : c2t1d0 / hwpath : 0/1/1/0.1.0
set -x
pvcreate -B -f /dev/rdsk/c2t1d0
mkboot /dev/rdsk/c2t1d0
mkboot -a "hpux -lq" /dev/rdsk/c2t0d0
mkboot -a "hpux -lq" /dev/rdsk/c2t1d0
vgextend /dev/vg00 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t1d0
.....
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t1d0
lvlnboot -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot -a 0/1/1/0.1.0
setboot
Best regards.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2010 10:19 PM
тАО03-01-2010 10:19 PM
Re: Add new disk (mirror)
and i forgot to say :
in the second option, if you do not need the OLD data, just remove the LVOLS, from the vg, and them remove the PVs from VG, remove vg , pvcreate on the new disks, ( pvcreate -f /dev/rdsk/diskx )
create a new VG with all PVs, and them create lvol(s) and mirror it ( maybe you will do PVG groups ).
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2010 10:22 PM
тАО03-01-2010 10:22 PM
Re: Add new disk (mirror)
The problem is if you use a new bigger disk. Most of the times the current configuration does not allow the bigger disk (check vgdisplay -v -> max_PE and PE size).
In such case backup data, re-create the vg, create and mirror the LVOL and restore data.
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
тАО03-01-2010 11:20 PM
тАО03-01-2010 11:20 PM
Re: Add new disk (mirror)
I appreciate your quick response.
I will try to replace the new disk one by one if succeed nothing to worry about data and mirroring,
In case any failure if i opt scenario 2 on normal data disk NOT boot disk (vg00). let sat vgoracle.
to create mirror on two new data disk can i follow below steps.
2, backup your system via ignite (tape/server),
#NO tape drive attach backup not possible.
i'm using this commands in simple shell script :
#primary disk : c2t0d0 / hwpath : 0/1/1/0.0.0
#for mirroring disk : c2t1d0 / hwpath : 0/1/1/0.1.0
set -x
pvcreate -B -f /dev/rdsk/c2t1d0
mkboot /dev/rdsk/c2t1d0
mkboot -a "hpux -lq" /dev/rdsk/c2t0d0 (4 normal disk mkboot ok/not)
mkboot -a "hpux -lq" /dev/rdsk/c2t1d0
vgextend /dev/vgoracle /dev/dsk/c2t1d0
lvextend -m 1 /dev/vgoracle/lvol1 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vgoracle/lvol2 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vgoracle/lvol3 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vgoracle/lvol4 /dev/dsk/c2t1d0
.....
lvextend -m 1 /dev/vgoracle/lvol8 /dev/dsk/c2t1d0
lvlnboot -r /dev/vgoracle/lvol3
lvlnboot -s /dev/vgoracle/lvol2
lvlnboot -d /dev/vgoracle/lvol2
lvlnboot -b /dev/vgoracle/lvol1
lvlnboot -R
lvlnboot -v
setboot -a 0/1/1/0.1.0
Rgd's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2010 04:54 AM
тАО03-02-2010 04:54 AM
Re: Add new disk (mirror)
#vgcfgrestore -n vg00 /dev/rdsk/c1tXdX
#Vgchange -a y vg00
# vgsync vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2010 10:42 PM
тАО03-05-2010 10:42 PM
Re: Add new disk (mirror)
#vgcfgrestore -n /dev/vg03 /dev/rdsk/c2t0d0
#vgchange -n y /dev/vg03
#vgsync vg03
After successful migration of mirror disk from 73GB to 146GB still the FREE PE 0 , how to recover the space to extend LV's.
#vgdisplay vg03
--- Volume groups ---
VG Name /dev/vg03
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 17502
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 8748
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
Rgd's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2010 10:24 PM
тАО03-07-2010 10:24 PM
Re: Add new disk (mirror)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2010 10:32 PM
тАО03-07-2010 10:32 PM
Re: Add new disk (mirror)
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
тАО03-08-2010 11:59 PM
тАО03-08-2010 11:59 PM
Re: Add new disk (mirror)
You replaced the disk with a larger disk and used vgcfgrestore?
#Yes i used #vgcfgrestore #
vgchange -a y vgxx
#vgsync vgxx
Kindly provide me the steps after this to claim new disk space.
Regard's