Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mirror

Status
Not open for further replies.

uadmin

Technical User
Jun 13, 2001
122
GB
Hi

What i have is a volume group (vg01) which has no space available which is mirrored over two disks /dev/dsk/c5t9d0 and /dev/dsk/c7t9d0 which are both 18Gig.

Now i have a new disk available which is 36Gig and intend to use this to give me the required space.

Henece due to this is a mirror i require to add the new disk to this mirror.

The O/P from lvdisplay :-

--- Logical volumes ---
LV Name /dev/vg01/lvol12
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 17360
Current LE 4340
Allocated PE 8680
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c5t9d0 4340 4340
/dev/dsk/c7t9d0 4340 4340

Can any one advise me on the best practice to complete this..

My Options

1. pvcreate -B /dev/rdsk/<New Disk>
2. mkboot -l /dev/rdsk/<New Disk>
3. mkboot -a &quot;hpux -lq(;0)/stand/vmunix&quot; /dev/rdsk/<New Disk>
4. vgextend /dev/vg00 /dev/dsk/<New Disk>
5. lvextend -m 2 /dev/vg00/lvol6 /dev/dsk/<new disk>
6. lvlnboot -r
7. lvlnboot -s
8. lvlnboot -R
9. lvlnboot -v
10. vgcfgbackup /dev/vg00

Simon Peter Wickham
Email: s.wickham@zoom.co.uk
 
I am not extremely confident with LVM, but I have two concerns

1) you mentioned and provided lvdisplay for vg01, but your commands are for vg00.
2) If you are extending vg00 to include three disks, wouldn't you want to implement Physical Volume Groups to take out the single point of failure, i.e mirror your current 2*18GB disks to the new 36GB disk.

Good Luck
Queenie
 
Hi

Yeah sorry it has taken me a while to get back no that was a typo error it is vg01.

I am under the impression i need to do a vgimport to new 36gig disk then mirror but that just doesn't seem right.


I just wanted to know if i was on the right trak

Thanks

Simon Peter Wickham
Email: s.wickham@zoom.co.uk
 
If you use the mkboot command, you are telling the system it can boot from that physical disk. I don't think that is what you want, is it? Also, lvlnboot is used, I believe, for just preparing a LV to be root, boot, primary swap or dump device. And I think vgcfgbackup is automatic, although it can't hurt to run it.

Here is how I would bring in a new disk to the volumd group vg01:

pvcreate -f /dev/rdsk/cXtXdX
vgextend -f /dev/vg01 /dev/dsk/cXtXdX

Then, I would probably do what unixqueen suggested and use the 36GB disk as a mirror for the 2 18 GB disks, although this may affect performance because that 36 GB disk will be doing a lot of writing to maintain the mirrors of the two 18 GB disks.

You could move the mirror to the 36 GB disk by creating a second mirror on it for an LV and then breaking the mirror to drop the copy that is on the 18 GB disk.
 
Also, the pvcreate -B command also will make the disk bootable, which I don't think is what you want, right?
 
Thanks

Simon Peter Wickham
Email: s.wickham@zoom.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top