Operating System - HP-UX
1833861 Members
2262 Online
110063 Solutions
New Discussion

LVM - adding alternate paths to disks

 
SOLVED
Go to solution
Ravinder Singh Gill
Regular Advisor

LVM - adding alternate paths to disks

Hi,

I have just created a volume group with logical volumes and filesystems for it. Can someone remind me how to add in alternate paths for the disks I have allocated to that volume group?
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor
Solution

Re: LVM - adding alternate paths to disks

Hi:

Simply 'vgextend' using the alternate path:

# vgextend /dev/vgNN /dev/dsk/cXtYdZ

Regards!

...JRF...
Luk Vandenbussche
Honored Contributor

Re: LVM - adding alternate paths to disks

With the vgextend command

vgextend /dev/vgxx /dev/dsk/cxtydz

You can check the status with

vgdisplay -v vgxx

At the end you see alternate link
Aneesh Mohan
Honored Contributor

Re: LVM - adding alternate paths to disks

Hello Ravinder,

Please do vgextend vgname /dev/dsk/cxtxdx (alrenative paths)

example

IF /dev/dsk/c1t2d0 is the alrenative path for primary path /dev/dsk/c1t0d0 and already u have created VG using the primary disk ,then do the below cmd.

vgextend vg00 /dev/dsk/c1t2d0
Torsten.
Acclaimed Contributor

Re: LVM - adding alternate paths to disks

The system can also help you to find the alternate pathes:

vgscan -p -v

This is preview mode. Watch the results.
Then vgextend the pathes to the VG.
Think about the order!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ravinder Singh Gill
Regular Advisor

Re: LVM - adding alternate paths to disks

Thanks, the first 2 suggestions solved it but I didn't get the chance to close it.

Thanks for your help.
Luk Vandenbussche
Honored Contributor

Re: LVM - adding alternate paths to disks

PS : Points are always appreciated when you close a case ;-)
Avinash Agarkar
Valued Contributor

Re: LVM - adding alternate paths to disks

Hi Ravinder,

After adding the alternate path please check with vgdisplay weather both the disk are their or not if both the disks are their please try to check with reducing the primary path with

vgreduce vgname and disk path

A message with come switching over to alternate path.

If it successfull then it's good

then again extend the path
with vgextend.

This is for your precaution.

Thanks,
Avinash
Great Power Comes With Great Responsibility