- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to mirror the lvol without database shut down
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
10-21-2003 09:32 PM
10-21-2003 09:32 PM
Thanks & Best regards,
Cat
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 09:34 PM
10-21-2003 09:34 PM
Re: How to mirror the lvol without database shut down
So you can do:
lvextend -m 1 /dev/vg02/lvol1
while the database is running. Though it could slow down the database, it keeps on running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 09:57 PM
10-21-2003 09:57 PM
Re: How to mirror the lvol without database shut down
You can mirror can existing lvol to a new pv using
lvextend -m 1 /dev/vg02/lvol1 /dev/dsk/cNtNdN
HTH
aparna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 09:58 PM
10-21-2003 09:58 PM
Re: How to mirror the lvol without database shut down
Then you can extend the lvol with a mirror copy.
lvextend -m 1 /dev/vg02/lvol?
Normal the database wil not have a problem with this. Only your system will be busy for some minutes sync the data to the other disk. (you need to have MirrorDisk/UX installed on the system)
Ps. No system reboot is needed!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 10:33 PM
10-21-2003 10:33 PM
Re: How to mirror the lvol without database shut down
1. pvcreate the 18GB disk.
2. vgextend /dev/vg02 /dev/dsk/<18GB disk>
3. lvextend -m 1 /dev/vg02/lvol? /dev/dsk/<18GB disk>
Thats it..and verify the mirror by having a look at
lvdisplay -v /dev/vg02/lvol?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 11:18 PM
10-21-2003 11:18 PM
Re: How to mirror the lvol without database shut down
1 - You can mirror the lvol ON-LINE IF you have Mirror/UX. Once mirrored it will maintain the data between the two disks or PVs.
2 - if you DO NOT HAVE mirror/UX, then you will NOT be able to mirror the lvol. You can take a "snapshot" or backup of it by dding the lvol to another (off-line). But once the database comes backup & is written to they will be inconsistent.
I would not advise doing a "dd" or copy to another disk/lvol. I would back it up to tape, which is essentally all you are doing, but with a different media!
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 01:30 AM
10-22-2003 01:30 AM
SolutionI see another problem here. Your PE per PV
in the VG02 may be limited with 9GB disks.
If you add 18GB to this VG then you can access only 9GB. PE per PV connot be modified
When you recreate VG add higher capcity
first or use -e option in vgcreate.
Backup first !!!!
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2003 03:25 PM
10-26-2003 03:25 PM
Re: How to mirror the lvol without database shut down
Yes, exactly this is my problem here.
Objectives :
I just want to mirror my only lvol of VG02.
However, this VG got only 9GB PE per PV. I asked the peer in previous and they suggest me to re-create the vg but I can't stop my machine... so, what should I do ?
Cat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2003 03:39 PM
10-26-2003 03:39 PM
Re: How to mirror the lvol without database shut down
But i am affraid, thats the only way.
If you want to utilize the full 18GB disk then either,
1. take backup, re-create VG using 18GB disk and restore the data, and add 9gb disk also to it and mirror.
2. Create another VG with a different name, copy all data from this Vg to new one and blow off this VG
these are the only 2 options with you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2003 04:42 PM
10-26-2003 04:42 PM
Re: How to mirror the lvol without database shut down
If absolutely it's possible to shutdown the VG, then you may
add 2*9GB disks instead of 1*18GB and do the mirroring.
That is the only workaround.
Regards
TT