I am trying to find a way to get the disk name that a logical volume resides on. I know the lslv command returns the information I need, but I want to find a command that will only return the disk name.
Here is what I have so far...
$lslv -l dm2t_0128_003 | cut -d" " -f1
dm2t_0128_003:N/A
PV
hdisk11
Can I always be sure that the third line will contain the disk?
Thanks for the help!
Here is what I have so far...
$lslv -l dm2t_0128_003 | cut -d" " -f1
dm2t_0128_003:N/A
PV
hdisk11
Can I always be sure that the third line will contain the disk?
Thanks for the help!