- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Break Mirror and Mirror it back
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-17-2005 02:23 PM
05-17-2005 02:23 PM
My HP-UX version is 11.11
$ bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 516096 361048 153896 70% /
/dev/vg00/lvol1 298928 112464 156568 42% /stand
/dev/vg00/lvol8 4710400 1244544 3439328 27% /var
/dev/vg00/lvol7 1982464 1446496 531808 73% /usr
/dev/vg00/lvol4 1024000 563992 456464 55% /tmp
/dev/vg00/lvol6 3072000 1808088 1254104 59% /opt
/dev/vg00/lvol5 516096 42584 469832 8% /home
/dev/vg00/lvol9 1024000 1357 958735 0% /extra
/dev/vg02/lvol2 1024000 405241 580106 41% /epics_source
/dev/vg01/lvol2 10240000 92901 9512929 1% /data2
/dev/vg01/lvol4 1024000 318847 661145 33% /data2/epics_sysl
/dev/vg01/lvol1 10240000 5827184 4279020 58% /data1
/dev/vg01/lvol3 5120000 1845625 3069793 38% /II_SYSTEM
/dev/vg02/lvol1 1536000 178940 1272307 12% /II_DATABASE
epics131.SU# lvdisplay -v /dev/vg01/lvol2 |more
--- Logical volumes ---
LV Name /dev/vg01/lvol2
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 10000
Current LE 2500
Allocated PE 5000
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c22t0d2 2500 2500
/dev/dsk/c11t0d0 2500 2500
--- Logical extents ---
epics131.SU# lvdisplay -v /dev/vg02/lvol2 |more
--- Logical volumes ---
LV Name /dev/vg02/lvol2
VG Name /dev/vg02
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 500
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c22t0d3 250 250
/dev/dsk/c11t0d1 250 250
--- Logical extents ---
Standard input
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 03:26 PM
05-17-2005 03:26 PM
Re: Break Mirror and Mirror it back
...
repeat for every mirrored logical volume.
....
Do your work,
lvextend -m 1 /dev/vg02/lvol2 /dev/dsk/c22t0d3
....
repeat for other logical volumes.
....
If you are doing some rearrangement, you may need to change the disk device at the end of that command.
SAM can do this for you, but command line is better, especially for the mirroring with lvextend.
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-17-2005 03:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 04:11 PM
05-17-2005 04:11 PM
Re: Break Mirror and Mirror it back
How do I check which disk is a primary disk for mirror?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 04:17 PM
05-17-2005 04:17 PM
Re: Break Mirror and Mirror it back
Use the lvreduce / lvextend !!!
There is no concept of primary/secondary disks in a mirror. Only your root VG will have the primary / secondary boot path and that is with respect to booting.
the command, setboot will give you the primary and alternate boot disks.
As far as VG01 is concerned there is no primary/secondary disks.
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c22t0d3 250 250
/dev/dsk/c11t0d1 250 250
Perhaps you can call c22tod3 as primary and c11t0d1 as secondary.
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 05:23 PM
05-17-2005 05:23 PM
Re: Break Mirror and Mirror it back
Like Naveej said there is no primary/secondary disk concept here. The best way to accomplish your task will be using lvreduce/lvextend.
assume following disks are in vg01 and you want to replace disk c1t2d0.
vg01
/dev/dsk/c1t1d0
/dev/dsk/c1t2d0
vg01 having following lvols
/dev/vg01/lvol2 10240000 92901 9512929 1% /data2
/dev/vg01/lvol4 1024000 318847 661145 33% /data2/epics_sysl
/dev/vg01/lvol1 10240000 5827184 4279020 58% /data1
/dev/vg01/lvol3 5120000 1845625 3069793 38% /II_SYSTEM
lvreduce -m 0 /dev/vg01/lvol2 /dev/dsk/c1t2d0
#reducing mirror frm disk. Repeat same for other lvols
pvdisplay -v /dev/dsk/c1t2d0
#to ensure no other lvol exists on c1t2d0
vgreduce /dev/vg01 /dev/dsk/c1t2d0
#removing the disk from vg. You can physically remove the old disk at this point
#insert the new disk and configure it to vg01
lvextend -m 1 /dev/vg01/lvol2 /dev/dsk/new_disk
#repeat same for all lvols
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 08:51 PM
05-17-2005 08:51 PM