Why hostname parameter is not working in the prescript during installation ?

Solution Verified - Updated -


  • Hostname parameter is not working in prescript
  • volume groups are not getting the expected names.
hostname=`hostname -s` 
network --bootproto=static --ip= --netmask --gateway --nameserver --hostname server.example.com part pv.3 --size=2000 volgroup vg_`$hostname` pv.3 logvol /test --vgname=vg_`$hostname` --size=1000 --name=lv_`$hostname` --grow EOF


  • Red Hat Enterprise Linux 6.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content