- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirror copy from local to san
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
05-01-2008 11:08 AM
05-01-2008 11:08 AM
What I need to do is to mirror a secondary local disk to the san, Then break the mirror and format my secondary local disk to mirror to my boot disk. Make sense?
I think I need to run vgextend and "enclose" the san disk in my vg, then create the lvol's on it to match those of the secondary local disk, then run a vgreduce and remove the local vol, causeing the alternate link to the SAN disk to become primary, then format my secondary local disk and mirror it to my boot disk? Make sense? Am I missing steps? Please advise.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2008 11:13 AM
05-01-2008 11:13 AM
Re: Mirror copy from local to san
Mirroring logical volumes is a good way to replicate them from disk to disk.
Yes, mirror a logical volume from the local disk to the SAN; Then 'lvreduce -m 0' the *local* copy leaving the "SAN" copy. When the "local" disk is devoid of all logical volumes, then 'vgreduce' or 'vgremove' it from its volume group and do with it as you wish.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2008 11:14 AM
05-01-2008 11:14 AM
Re: Mirror copy from local to san
You can do it.
But to make it bootable you need a system that can boot of san. Not all models can.
I think its much better to have an alternate local boot disk.
Steps:
pvcreate -B /dev/rdsk/c1t0d0 #use real disk
mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk
# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
If you are running 64-bit OS:
# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0
# real disk. repeat for other lvols
lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2008 11:23 AM
05-01-2008 11:23 AM
Re: Mirror copy from local to san
James, Why do I need to do an lvreduce -m 0 on the local vol, instead of just running a vgreduce? Ok just so we are clear, (i am not overly bright) run it down by command if you would please, if you have a local disk you need to mirror to a san disk, to open the local disk for mirroring from the boot disk. THANKS!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2008 11:30 AM
05-01-2008 11:30 AM
Solution> Why do I need to do an lvreduce -m 0 on the local vol, instead of just running a vgreduce?
The answer is so that you don't leave any orphaned logical volume extent information in the VGRA of the volume. See the 'vgreduce' manpages.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2008 11:34 AM
05-01-2008 11:34 AM