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

LUNS on Solaris 10

Status
Not open for further replies.

ponetguy2

MIS
Aug 28, 2002
442
US
Our storage team recently added new luns to a solaris 10 database server. i'm trying to label them, but there over 100 disk/luns on the server. is there an easy way to scan through all the disk, and find the disk/luns that are not labeled?

i'm suppose to carve veritas volumes out of these disk/luns. please help. i'd hate to go through all those disk/luns.

"Not all OSs suck, it's just that some OSs suck worse than others"


 
Perhaps for f in /dev/rdsk/*s2 ; do prtvtoc $f ; done > /tmp/prtvtocs and examine the output?

I don't have a Solaris box handy to test with.

Annihilannic.
 
sweet. i'll try that.

i also tried 'format | echo | grep ^c' and that worked. i'll try the command string you gave me :) thank you again annihilannic. you've helped me once again.

"Not all OSs suck, it's just that some OSs suck worse than others"


 
If your SAN team gave you a list of LUNs, they should have given you the target too or if it is fibre, you would have configured the target numbers.

if you have a list of disk names (newdisk.list), then it is easy to use the format command to label them or wipe them clean.

To label them, create a file (format.label) containing these lines:

p
p
l
q

No spaces or no new lines at the end or top.

for iii in `cat newdisk.list`
do
format -f format.label -d $iii
done >> /var/tmp/format.label.out

this will go and label all your disks for you.

-GGR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top