1832146 Members
2803 Online
110038 Solutions
New Discussion

disk paths

 
SOLVED
Go to solution
Vogra
Regular Advisor

disk paths

Hi All!
I have some lvols and I need to remove some. I want to know in wich disk the specific lvol is. How can I do that? Thanx.
We are spirits in the material world
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: disk paths

Hi Claudio:

# lvdisplay -v /dev/dsk/lvolX

...will show which physical disks have logical extents for the logical volume in question.

Regards!


...JRF...
S.K. Chan
Honored Contributor
Solution

Re: disk paths

Example :

# lvdisplay -v /dev/vg01/lvol2 | more
harry d brown jr
Honored Contributor

Re: disk paths

Of course in a volume group with multiple disks, you could have lvol's that are one more than one disk, and multiple lvol's can be on a disk.

The first step is to delete (remove) the lvol's you want to remove, then using vgdisplay -v vg## | more (where ## is the volume group number) to see what disks are in your VG. Then using the pvdisplay -v /dev/dsk/name | more (where name is the disk device, like c5t2d0) to see if any lvol's are still using the disk.

live free or die
harry
Live Free or Die
Helen French
Honored Contributor

Re: disk paths

Hi,

Try this:

1) find out which LV's you want to remove.
2) Unmount those file systems ( umount /fs1)
3) Find out LV information ( lvdisplay -v /dev/vg01/lvolx )

In this check the PV names and path to determine the hard disk details.
4) lvremove lvname
5) Remove entries from /etc/fstab.


Also, the specific HDD can be part of other LVs too. For a specific HDD info, do 'pvdisplay -v /dev/dsk/cxtxdx'

HTH,
Shiju
Life is a promise, fulfill it!