The grep will filter out the OS VG, vgroot because it starts with the same characters as the excluded VG, vgroot-san. This causes all of the lvcreate lines in the lvm.res file to look like:

Finally, create the LV's (logical volumes).
Not including LV lvrootsan as VG vgroot-san was excluded
Not including LV lvhomesan as VG vgroot-san was excluded
Not including LV lvlhomesan as VG vgroot-san was excluded
Not including LV lvoptsan as VG vgroot-san was excluded
Not including LV lvusrsan as VG vgroot-san was excluded
Not including LV lvvarsan as VG vgroot-san was excluded
Not including LV lvtmpsan as VG vgroot-san was excluded
Not including LV lvroot as VG vgroot was excluded
Not including LV lvhome as VG vgroot was excluded
Not including LV lvlhome as VG vgroot was excluded
Not including LV lvopt as VG vgroot was excluded
Not including LV lvtmp as VG vgroot was excluded
Not including LV lvusr as VG vgroot was excluded
Not including LV lvvar as VG vgroot was excluded
Not including LV lva01 as VG vgroot was excluded
Not including LV lvquest as VG vgroot was excluded
Not including LV lva01 as VG vgapps1 was excluded
Not including LV lva02 as VG vgapps1 was excluded
Not including LV lvquest as VG vgapps1 was excluded