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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I identify which pv s are externals in my system?

Status
Not open for further replies.

heitorvital

Programmer
Dec 9, 2010
2
0
0
BR
I was asked to identify which pv s are external in my system and heard that this would be a good approach:

STEP 01. Go to /etc/objrepos
STEP 02. odmget CuAt | grep -p pvid
STEP 03. For each pvid listed ... try to get it´s node_name (odmget CuAt | grep -p node_name).

Solution: If pvid has a valid node_name, then the volume is an external storage.

Does it make sense? It seem to not be working for me (specially when the system has vpath).

Any bether solution to identify wich pv are external?

Many thanks
 
What do you mean by "external"?

If you have vpaths, those are SDD-devices (either ESS, DS6k or DS8k) None of these vpath disks will be internal to your server.

Perhaps lscfg|grep -E 'hdisk|vpath' may help you? Then for every disk run lscfg -vl (diskname)


HTH,

p5wizard
 
I mean ... a SCSI or SCSI over Fibre Channel disk.

Suppose that I´ve added a new drive like following these [] steps:

----------------------------------------------------------
STEP1:prior attaching physical scsi disk ...please run these commands with root account to have crystal clarity of your pv's(physical volume)
#lspv
#lsdev -C -c disk (for existing disk devices list)

STEP2: After adding disk dynamically please run
#cfgmgr (to configure new disk on the system)
for instance hdisk3 is a new scsi disk drive added to system

STEP3:please run 'lspv'command
Now u can see the output something like

hdisk3 none none

STEP4:If u get output as shown in step3
Make the hdisk3 a PV by issuing following command syntax:
#chdev -l hdisk3 -a pv=yes

STEP5:#lspv
Now the output with sysntax as
hdisk3 <hexdecimal pv id> none

Also you can use lsdev -C -c disk to find new scsi disk drive available
----------------------------------------------------------

After that, if I run lspv the hdisk3 is listed. How can I know if hdisk3 is the external one (If in the future I decide to physically remove it from the system).

Thanks!
 
If you document your system properly, you *should* know which is which...

For SDD (ESS/DS susbsystem pseudo-device driver) -- you said vpaths so..., take a look at datapath command like:

datapath query device

Also, lscfg like I said before will give info about all your devices. lscfg -v will also provide vital product data per device.

lsdev -Ccdisk will show all disks with their description, that will give some hints too!

HTH,

p5wizard
 
Code:
hdisk3 Available 08-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk4 Available 04-08-02     EMC Symmetrix FCP MPIO RDF1 Raid5
Fairly easy to determine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top