With just adding /rootvg/ to awk you'll get 2 lines as output for every line "lspv" hands over to awk. It's not compact but it works. If you want to use grep not and still only 1 line as output you will have to change the awk part a bit. I was lazy so that's why I was so typing so inefficient
Thank you
But i still have a problem.
I want to know wich hdisk have only one pvid and also display hdisk with two pvid.
hdisk1 00c3fcd4e516183f testvg active
hdisk2 00c3fcd4e516189b testvg active
hdisk3 00c3fcd4e51618ec testvg active
hdisk6 00c3fcd4e51618ec testvg active
hdisk8 00c3fcd4e516183f testvg active