1753947 Members
7359 Online
108811 Solutions
New Discussion юеВ

vgid & netapp

 
Ludovic Derlyn
Esteemed Contributor

vgid & netapp

Hi

How to change a vgid on netapp after a flexvol restore ?
on HP and EVA i use :

typeset -i indice=0
typeset -i n=0
echo "#INFO /softs/utils/evainfo_hpux11_23_IA"
while [ "${WWLUN_ID[$n]}" != "" ]
do
SPF_RAW[$indice]=$(/softs/utils/evainfo_hpux11_23_IA -w ${WWLUN_ID[$n]} -f csv | cut -f1 -d "," | tail -1)
let n=n+1
let indice=indice+1
done

What is the equal command for a netapp ?

thanks a lot
3 REPLIES 3
TTr
Honored Contributor

Re: vgid & netapp

I don't know much about the EVAs so I don't know what kind of output is generated by evainfo but the NetApp software is usually installed under /opt and the command to get all the information that you need from the LUNs is "sanlun". There are manual pages as well.
Something like
sanlun lun show -v -d /dev/rdsk/cXtYdZ
will give you a lot of information including the WWN.
Ludovic Derlyn
Esteemed Contributor

Re: vgid & netapp

hi

this is the result of my command

sanlun lun show -v -d /dev/rdisk/disk93
filer: lun-pathname device filename adapter protocol lun size lun state
SS-Netapp-B: /vol/FlexVol_Restore/HPUXmyresteredlun /dev/rdisk/disk93 0 FCP 300.0g (322163441664) GOOD
Serial number: W-BvCZSARaOb
Controller FCP nodename:500a0980890acf78 Controller FCP portname:500a0981890acf78
Controller adapter name: 0d
Controller IP address: 55.254.02.05
55.254.03.34
172.16.04.34
172.15.02.02
Controller volume name:FlexVol_Restore FSID:0x796dbc7
Controller qtree name:/vol/FlexVol_Restore ID:0x0
Controller snapshot name: ID:0x0

it is correct ?
TTr
Honored Contributor

Re: vgid & netapp

What kind of information do you need? I think the wwn is shown as portname

You can try the "sanlun lun show all" command to get a listing of the LUNs and then if the WWNs are not in this listing you can rerun the command for each LUN.