- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replace root disk
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
тАО01-10-2009 11:17 PM
тАО01-10-2009 11:17 PM
Replace root disk
i have 72GB*2 mirrored root disks..nowdue to space limitation i have to upgrade to 146GB .what are the possible way to do it..
i know take ignite backup and restore ..any other new fundas ???..
and my useless question is, can we break the mirror and mirror 72GB with one of the 146GB disk ???
rgds
skr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2009 11:53 PM
тАО01-10-2009 11:53 PM
Re: Replace root disk
Assuming that u are talking about the HP-UX MirrorDisk mirror and not the Hardware Raid Mirror.
1)The best method to achieve that is Ignite restore with the desired root disk config on one 146 GB Disk and then mirror the same with another 146 GB Disk.
2) ya u can break the mirror and mirror existing LVs on a new 146GB disk, But then u will get the LVs on the 146 GB disks of the same size as the 73 GB disk.(which u can do an lvextend for size for all the LVs except the stand,root and the Primary Swap LVs that are Contiguous.) Later demirror the 73 GB disk, put in the new 146 GB disk and remirror with the 146 GB disk.
but as stated u shall need to Extend the LVs to newer sizes but u shall be able to etend only thlose LVs that do not have Contiguous Policy set like /var , /home /usr etc.
3)so the best suggested way is to have an ignite backup and restore followed by the mirroring.
4)or u can create another VG say rootvg, add 172 GB disks to that using pvcreate -B ,mkboot -e -l ... , create the same LVs as the root disk has but larger in size for all the LVs say for ex just double in size (with proper policies Contig and Strict Set for root boot ans swap LVs )mirror the LVs in the new VG rootvg.
make newfs on all the LVs of the /dev/rootvg as desired . U need not do newfs on the /dev/rootvg/lvol2 as that will be newswap
mount the LVs as created in the rootvg on directories as /newroot /newboot /newvar /newtmp etc.
like
#mount -F vxfs /dev/rootvg/lvol1 /newboot
#mount -F vxfs /dev/rootvg/lvol3 /newroot
#mount -F vxfs /dev/rootvg/lvol4 /tmp
then do a find cpio from the old root , old tmp etc to the new mt pts
like
#cd /stand
#find . -xdev -depth | cpio -pdmvux /newboot
#cd /
#find . -xdev -depth | cpio -pdmvux /newroot
#cd /tmp
#find . -xdev -depth | cpio -pdmvux /newtmp
after u r done with this sort of copy for all the LVs on the rootvg
do
#lvlnboot -r /dev/rootvg/lvol3
#lvlnboot -b /dev/rootvg/lvol1
#lvlnboot -s /dev/rootvg/lvol2
#lvlnboot -d /dev/rootvg/lvol2
after u did that,
edit /etc/fstab
with new entries like
/dev/rootvg/lvol1 /stand vxfs defaults 0 2
/dev/rootvg/lvol3 / vxfs defaults 0 2
/dev/rootvg/lvol4 /tmp vxfs defaults 0 2
and so on
reboot the system in LVM maintenance mode
#lvrmboot -r /dev/vg00/lvol1
#lvrmboot -s /dev/vg00/lvol2
#lvrmboot -b /dev/vg00/lvol1
#lvrmboot -d /dev/vg00/lvol2
#vgexport /dev/vg00
#mkdir /dev/vg00
#mknod /dev/vg00/group c 64 0x000000
#vgimport /dev/vg00 /dev/dsk/c5t0d0 /dev/dsk/c6t1d0 where the 2 speficed disks are basically the 146 GB disks.
#lvlnboot -r /dev/rootvg/lvol3
#lvlnboot -b /dev/rootvg/lvol1
#lvlnboot -s /dev/rootvg/lvol2
#lvlnboot -d /dev/rootvg/lvol2
#lvlnboot -R
#lvlnboot -v
#vi /etc/bootconf
add the enrties for the disks as
l /dev/dsk/c5t0d0
l /dev/dsk/c6t1d0
save and exit
these are the new 146 GB root disks.
# setboot
set the pry and alt boot paths to the new 146 GB disk.
reboot in normal mode
if all is wkg fine
shutdown
Remove thhe old 72 GB disks.
REgardds
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2009 12:11 AM
тАО01-11-2009 12:11 AM
Re: Replace root disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2009 12:45 AM
тАО01-11-2009 12:45 AM
Re: Replace root disk
yes u can well use that...
if u have 11.31 of HP
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2009 12:48 AM
тАО01-11-2009 12:48 AM
Re: Replace root disk
yes u can well use that...
if u have 11.31 of HP also on 11.23
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2009 10:03 AM
тАО01-11-2009 10:03 AM
Re: Replace root disk
>>and my useless question is, can we break the mirror and mirror 72GB with one of the 146GB disk ???<<<
Yes , Its Possible.
But the Question How can we do that..?
Example:-
Pri-mirror disk 74GB
Alt-mirrir disk 74GB
I would assume that my "Alt-mirror disk " bad so now would like to replace with 146GB
Follow the Example
===================
1) Remove lvol mirrors:
# lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/c2t6d0
# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t6d0
2) Remove faulty drive from vg00:
# vgreduce /dev/vg00 /dev/dsk/c2t6d0
3) replacem of hot-swappable drive c2t6d0 at H/W path 0/0/2/1.6.0: which is 72GB
4) When drive is replaced, add back into vg00 and make bootable:
# pvcreate -B /dev/rdsk/c2t6d0
# vgextend /dev/vg00 /dev/dsk/c2t6d0
# mkboot -l /dev/rdsk/c2t6d0
5) Re-mirror logical volumes, must be done in lvol order:
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t6d0
# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t6d0
# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t6d0
And repeat for remaining logical volumes lvol4 through lvol13.
So Now my alt-mirror disk is 146GB
now i can do the same thing for my "Pri-Disk"
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2009 11:22 AM
тАО01-11-2009 11:22 AM
Re: Replace root disk
What is the actual space limitation that u r facing with the mirrored 73 GB disks?
do u want to increase the stand , root or the first swap ... then the simple bteaking the mirror and resesttablishing the mirror is not going to help... at some point u have to plan how can u increase the three concerned LVs that is boot stand and swap which are generally contigous and have strict policy and after expansion have to be the same as far as being contoguous and strict is required.
However apart from these 3 LVs if u want to increase any other LV then u can simply remove one mirror of 73 GB ,add 146 GB in the root VG,Mirror the LVs on 73 to the 146 GB disks and go ahead to use the additional 73 GB space on the new disk for increasing the Other LVs or create new LVs.
Regards
Sujit