Visit Our UNIX and Linux User Community


Verify two disk pvid with command awk


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Verify two disk pvid with command awk
# 1  
Old 09-16-2009
CPU & Memory Verify two disk pvid with command awk

I do a #lspv |grep rootvg and i got :

hdisk0 0006a81f3efcbe58 rootvg
hdisk1 0006a81fd9ff4014 rootvg

I want to verify for each server if the pvid is the same with use of the command lspv

Can you help to wrote a shell with the command awk for exemple .

Thank you
# 2  
Old 09-16-2009
so you have the lspv command o/p of all server in a file??
I am not able to understand your query fully...
# 3  
Old 09-16-2009
Quote:
Originally Posted by vidyadhar85
so you have the lspv command o/p of all server in a file??
I am not able to understand your query fully...
I want to migrate the virtual vscsi adapter to NPIV.
For that, i have to verify if the pvid of disk are the same in my lpar server.

I have to test if pvid of hdisk0 = pvid of hdisk1 in the same server with awk command.

thank you
# 4  
Old 09-16-2009
as far as i know PVID is unique so i still don't understand why you wanna check it for two different hard disks..
# 5  
Old 09-16-2009
Quote:
Originally Posted by vidyadhar85
as far as i know PVID is unique so i still don't understand why you wanna check it for two different hard disks..
Actually, i have two disk in my server.
hdisk0 et hdisk1

hdisk0 --> vscsi0 & vscsi1
hdisk1 --> fscsi0 & fscsi1

In fact, there is one disk but 4 paths.
I have to erase the hdisk0, vsci0 and vscsi1.
The zoning is realize in my baie SAN ECM for NPIV.

Also, i have to verify for each lpar if the disk have the same pvid before erase hdisk0

thanks for reply

Previous Thread | Next Thread
Test Your Knowledge in Computers #13
Difficulty: Easy
EBCDIC, ASCII, SIXBIT, and ANSI are methods for encoding text characters on a computer.
True or False?

9 More Discussions You Might Find Interesting

1. AIX

clearing PVID

HI admins, I am not able to clear pvid .I am getting below error. chdev -l hdisk273 -a pv=clear Method error (/usr/lib/methods/chgdisk): 0514-047 Cannot access a device. pv The disk is from SAN. I can clear remove the disk using rmdev.But if i run cfgmgr , this disk apperas... (2 Replies)
Discussion started by: newaix
2 Replies

2. Shell Programming and Scripting

Verify File exists and execute command

Hi, I am trying to verify that a file exists within an alternate directory. If the file exists, it will execute a copy command...if it does not, it should exit the script. I tried the <test> command and the but keep coming up with syntax errors. I am coding in C Shell and the file... (5 Replies)
Discussion started by: CKT_newbie88
5 Replies

3. AIX

command to verify number of files

Guy's I have file system called /appspft has millions of files and I want to know exactly how many file under it Pls advice with that command to verify number of files .. (3 Replies)
Discussion started by: Mr.AIX
3 Replies

4. AIX

verify command

Guy's I have script doing many steps as the below ... ############# ## step1# mount all Files system mount all ## step2# Start the application /app/appsh ############# but some time mount points will not be mounted completely so that will give an error if the next step started... (1 Reply)
Discussion started by: Mr.AIX
1 Replies

5. Shell Programming and Scripting

awk command in script gives error while same awk command at prompt runs fine: Why?

Hello all, Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val: > cat getnon0file.sh #!/bin/bash this="getnon0file.sh" USAGE=$this" InFile="xyz.38" Min="0.05" # awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Discussion started by: catalys
4 Replies

6. AIX

Backup with Pax command. How to verify tape?

Dear all experts online, In my environment of AIX 5300-07, I am currently using "pax" command to backup all filesystems that I need to backup and it will take me around 4 hours time with LTO3 tape drive. When I need to verify the tape after backup, I am using "pax" command to list all files in... (2 Replies)
Discussion started by: kwliew999
2 Replies

7. UNIX for Dummies Questions & Answers

How to verify email address using mailx command ?

Is there any way i can verify the email address (before sending the mail) using the mailx command ? I know that sendmail -bv email@address.com can do it but there is a compatibility issues with the version of Unix we have. So mailx is the only command we can used at this point. Any... (1 Reply)
Discussion started by: rak007
1 Replies

8. Solaris

"Error for Command: verify"

I have a raid 5 configuration in a A3500 rack, manager by raid manager. This morning I found this messages in a /vad/adm/messages": Sep 10 04:33:57 zion scsi: WARNING: /sbus@3,0/SUNW,socal@2,0/sf@1,0/ssd@w200200a0b80735d3,4 (ssd11): Sep 10 04:33:57 zion Error for Command: verify ... (1 Reply)
Discussion started by: bonovox
1 Replies

9. Programming

Command to verify library sources in AIX

Hi there, May I know is there a command to verify and check the *.a file contents for AIX 5.2. How can I link the library file ? Thank you (0 Replies)
Discussion started by: chongks
0 Replies

Featured Tech Videos