<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: creating a boot CD in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852408#M93979</link>
    <description>!/usr/bin/sh&lt;BR /&gt;#script to create a backup boot disk&lt;BR /&gt;#&lt;BR /&gt;print -n "Enter disk to use (c#t#d#) : "&lt;BR /&gt;read disk&lt;BR /&gt;pvcreate -Bf /dev/rdsk/$disk&lt;BR /&gt;if (($? != 0)) ;&lt;BR /&gt;then&lt;BR /&gt; echo "Error $? in pvcreate"&lt;BR /&gt; exit&lt;BR /&gt;fi&lt;BR /&gt;mkboot /dev/rdsk/$disk&lt;BR /&gt;print -n "Enter volume group to create: 1/2/3/...  :"&lt;BR /&gt;read vg&lt;BR /&gt;mkdir /dev/vg0${vg}&lt;BR /&gt;mknod /dev/vg0${vg}/group c 64 0x0${vg}0000&lt;BR /&gt;vgcreate /dev/vg0${vg} /dev/dsk/$disk&lt;BR /&gt;if (($? != 0)) ;&lt;BR /&gt;then&lt;BR /&gt; echo "***** Error $? in vgcreate"&lt;BR /&gt; exit&lt;BR /&gt;fi&lt;BR /&gt;integer count=1&lt;BR /&gt;for i in `vgdisplay -v vg00 | awk '/LV Size/ {print $4}'` ;&lt;BR /&gt;do&lt;BR /&gt; echo ""&lt;BR /&gt; echo ""&lt;BR /&gt; #Create first 3 lvols contiguous&lt;BR /&gt; if ((${count} &amp;lt; 4)) ;&lt;BR /&gt; then&lt;BR /&gt;  lvcreate -L ${i} -C y -r n -A n /dev/vg0${vg}&lt;BR /&gt; else&lt;BR /&gt;  lvcreate -L ${i} -A n /dev/vg0${vg}&lt;BR /&gt; fi&lt;BR /&gt; if (($? != 0)) ;&lt;BR /&gt; then&lt;BR /&gt;  echo "***** Error $? in lvcreate"&lt;BR /&gt;  exit&lt;BR /&gt; fi&lt;BR /&gt; #Do a physical copy of lvol except for swap&lt;BR /&gt; if ((${count} != 2)) ;&lt;BR /&gt; then&lt;BR /&gt;  if ((${count} == 3)) ;&lt;BR /&gt;  then  echo ""&lt;BR /&gt;   echo "Not copying lvol3 yet"&lt;BR /&gt;   count=count+1&lt;BR /&gt;   continue&lt;BR /&gt;  else&lt;BR /&gt;   echo ""&lt;BR /&gt;   echo copying /dev/vg00/rlvol${count} to /dev/vg0&lt;BR /&gt;${vg}/rlvol${count}&lt;BR /&gt;   dd if=/dev/vg00/rlvol${count} of=/dev/vg0&lt;BR /&gt;${vg}/rlvol${count} bs=1024k&lt;BR /&gt;  fi&lt;BR /&gt; fi&lt;BR /&gt; # fsck of disk (hfs for lvol1 and vxfs for lvol 3-n)&lt;BR /&gt; if ((${count} == 1)) ;&lt;BR /&gt; then&lt;BR /&gt;  echo ""&lt;BR /&gt;  echo doing fsck of /dev/vg0${vg}/rlvol1&lt;BR /&gt;  fsck -F hfs /dev/vg0${vg}/rlvol1&lt;BR /&gt; elif ((${count} &amp;gt;2)) ;&lt;BR /&gt; then&lt;BR /&gt;  echo ""&lt;BR /&gt;  echo doing fsck of /dev/vg0${vg}/rlvol${count}&lt;BR /&gt;  fsck -F vxfs /dev/vg0${vg}/rlvol${count}&lt;BR /&gt; fi&lt;BR /&gt; count=count+1&lt;BR /&gt;done&lt;BR /&gt;   echo ""&lt;BR /&gt;   echo copying /dev/vg00/rlvol3 to /dev/vg0${vg}/rlvol3&lt;BR /&gt;   dd if=/dev/vg00/rlvol3 of=/dev/vg0${vg}/rlvol3 bs=1024k&lt;BR /&gt;   fsck -F vxfs /dev/vg0${vg}/rlvol3&lt;BR /&gt;#Fill the BDRA&lt;BR /&gt;#&lt;BR /&gt;echo ""&lt;BR /&gt;echo "Filling the BDRA"&lt;BR /&gt;lvlnboot -b /dev/vg0${vg}/lvol1 /dev/vg0${vg}&lt;BR /&gt;lvlnboot -r /dev/vg0${vg}/lvol3 /dev/vg0${vg}&lt;BR /&gt;lvlnboot -s /dev/vg0${vg}/lvol2 /dev/vg0${vg}&lt;BR /&gt;lvlnboot -d /dev/vg0${vg}/lvol2 /dev/vg0${vg}&lt;BR /&gt;#Modify fstab to use new volume group&lt;BR /&gt;#&lt;BR /&gt;echo ""&lt;BR /&gt;echo "Modifying fstab in new root disk"&lt;BR /&gt;if [ ! -d /tmp_mnt ] ;&lt;BR /&gt;then&lt;BR /&gt; mkdir /tmp_mnt&lt;BR /&gt;fi&lt;BR /&gt;umount /tmp_mnt &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;mount /dev/vg0${vg}/lvol3 /tmp_mnt&lt;BR /&gt;cd /tmp_mnt/etc&lt;BR /&gt;sed "s/vg00/vg0${vg}/" fstab &amp;gt;fstab.out&lt;BR /&gt;mv fstab fstab.bak&lt;BR /&gt;mv fstab.out fstab&lt;BR /&gt;#cd /&lt;BR /&gt;#date&lt;BR /&gt;#Shutdown and boot new backup boot disk&lt;BR /&gt;#&lt;BR /&gt;#Deactivate volume group and then vgexport it if needed in another location.&lt;BR /&gt;#&lt;BR /&gt;#vgchange -a n vg0${vg}&lt;BR /&gt;#vgexport vg0${vg}&lt;BR /&gt;#Transport volume to another machine if required.&lt;BR /&gt;#Create volume group and import into different machine if required&lt;BR /&gt;#&lt;BR /&gt;#mkdir /dev/vg01&lt;BR /&gt;#mkdir /dev/vg01/group c 64 0x010000&lt;BR /&gt;#vgimport /dev/vg01 /dev/dsk/&lt;DISKNAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DISKNAME&gt;</description>
    <pubDate>Tue, 26 Nov 2002 14:36:10 GMT</pubDate>
    <dc:creator>Armin Feller</dc:creator>
    <dc:date>2002-11-26T14:36:10Z</dc:date>
    <item>
      <title>creating a boot CD</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852407#M93978</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm looking for a way to create a boot CD&lt;BR /&gt;which would launch a minimum HPUX system from&lt;BR /&gt;which I would be able to access to some NFS&lt;BR /&gt;shares... Unfortunately, it seems that it&lt;BR /&gt; can't be done from the install CD.&lt;BR /&gt;&lt;BR /&gt;any idea ?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;sylvain</description>
      <pubDate>Tue, 26 Nov 2002 14:33:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852407#M93978</guid>
      <dc:creator>Beragnes</dc:creator>
      <dc:date>2002-11-26T14:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: creating a boot CD</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852408#M93979</link>
      <description>!/usr/bin/sh&lt;BR /&gt;#script to create a backup boot disk&lt;BR /&gt;#&lt;BR /&gt;print -n "Enter disk to use (c#t#d#) : "&lt;BR /&gt;read disk&lt;BR /&gt;pvcreate -Bf /dev/rdsk/$disk&lt;BR /&gt;if (($? != 0)) ;&lt;BR /&gt;then&lt;BR /&gt; echo "Error $? in pvcreate"&lt;BR /&gt; exit&lt;BR /&gt;fi&lt;BR /&gt;mkboot /dev/rdsk/$disk&lt;BR /&gt;print -n "Enter volume group to create: 1/2/3/...  :"&lt;BR /&gt;read vg&lt;BR /&gt;mkdir /dev/vg0${vg}&lt;BR /&gt;mknod /dev/vg0${vg}/group c 64 0x0${vg}0000&lt;BR /&gt;vgcreate /dev/vg0${vg} /dev/dsk/$disk&lt;BR /&gt;if (($? != 0)) ;&lt;BR /&gt;then&lt;BR /&gt; echo "***** Error $? in vgcreate"&lt;BR /&gt; exit&lt;BR /&gt;fi&lt;BR /&gt;integer count=1&lt;BR /&gt;for i in `vgdisplay -v vg00 | awk '/LV Size/ {print $4}'` ;&lt;BR /&gt;do&lt;BR /&gt; echo ""&lt;BR /&gt; echo ""&lt;BR /&gt; #Create first 3 lvols contiguous&lt;BR /&gt; if ((${count} &amp;lt; 4)) ;&lt;BR /&gt; then&lt;BR /&gt;  lvcreate -L ${i} -C y -r n -A n /dev/vg0${vg}&lt;BR /&gt; else&lt;BR /&gt;  lvcreate -L ${i} -A n /dev/vg0${vg}&lt;BR /&gt; fi&lt;BR /&gt; if (($? != 0)) ;&lt;BR /&gt; then&lt;BR /&gt;  echo "***** Error $? in lvcreate"&lt;BR /&gt;  exit&lt;BR /&gt; fi&lt;BR /&gt; #Do a physical copy of lvol except for swap&lt;BR /&gt; if ((${count} != 2)) ;&lt;BR /&gt; then&lt;BR /&gt;  if ((${count} == 3)) ;&lt;BR /&gt;  then  echo ""&lt;BR /&gt;   echo "Not copying lvol3 yet"&lt;BR /&gt;   count=count+1&lt;BR /&gt;   continue&lt;BR /&gt;  else&lt;BR /&gt;   echo ""&lt;BR /&gt;   echo copying /dev/vg00/rlvol${count} to /dev/vg0&lt;BR /&gt;${vg}/rlvol${count}&lt;BR /&gt;   dd if=/dev/vg00/rlvol${count} of=/dev/vg0&lt;BR /&gt;${vg}/rlvol${count} bs=1024k&lt;BR /&gt;  fi&lt;BR /&gt; fi&lt;BR /&gt; # fsck of disk (hfs for lvol1 and vxfs for lvol 3-n)&lt;BR /&gt; if ((${count} == 1)) ;&lt;BR /&gt; then&lt;BR /&gt;  echo ""&lt;BR /&gt;  echo doing fsck of /dev/vg0${vg}/rlvol1&lt;BR /&gt;  fsck -F hfs /dev/vg0${vg}/rlvol1&lt;BR /&gt; elif ((${count} &amp;gt;2)) ;&lt;BR /&gt; then&lt;BR /&gt;  echo ""&lt;BR /&gt;  echo doing fsck of /dev/vg0${vg}/rlvol${count}&lt;BR /&gt;  fsck -F vxfs /dev/vg0${vg}/rlvol${count}&lt;BR /&gt; fi&lt;BR /&gt; count=count+1&lt;BR /&gt;done&lt;BR /&gt;   echo ""&lt;BR /&gt;   echo copying /dev/vg00/rlvol3 to /dev/vg0${vg}/rlvol3&lt;BR /&gt;   dd if=/dev/vg00/rlvol3 of=/dev/vg0${vg}/rlvol3 bs=1024k&lt;BR /&gt;   fsck -F vxfs /dev/vg0${vg}/rlvol3&lt;BR /&gt;#Fill the BDRA&lt;BR /&gt;#&lt;BR /&gt;echo ""&lt;BR /&gt;echo "Filling the BDRA"&lt;BR /&gt;lvlnboot -b /dev/vg0${vg}/lvol1 /dev/vg0${vg}&lt;BR /&gt;lvlnboot -r /dev/vg0${vg}/lvol3 /dev/vg0${vg}&lt;BR /&gt;lvlnboot -s /dev/vg0${vg}/lvol2 /dev/vg0${vg}&lt;BR /&gt;lvlnboot -d /dev/vg0${vg}/lvol2 /dev/vg0${vg}&lt;BR /&gt;#Modify fstab to use new volume group&lt;BR /&gt;#&lt;BR /&gt;echo ""&lt;BR /&gt;echo "Modifying fstab in new root disk"&lt;BR /&gt;if [ ! -d /tmp_mnt ] ;&lt;BR /&gt;then&lt;BR /&gt; mkdir /tmp_mnt&lt;BR /&gt;fi&lt;BR /&gt;umount /tmp_mnt &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;mount /dev/vg0${vg}/lvol3 /tmp_mnt&lt;BR /&gt;cd /tmp_mnt/etc&lt;BR /&gt;sed "s/vg00/vg0${vg}/" fstab &amp;gt;fstab.out&lt;BR /&gt;mv fstab fstab.bak&lt;BR /&gt;mv fstab.out fstab&lt;BR /&gt;#cd /&lt;BR /&gt;#date&lt;BR /&gt;#Shutdown and boot new backup boot disk&lt;BR /&gt;#&lt;BR /&gt;#Deactivate volume group and then vgexport it if needed in another location.&lt;BR /&gt;#&lt;BR /&gt;#vgchange -a n vg0${vg}&lt;BR /&gt;#vgexport vg0${vg}&lt;BR /&gt;#Transport volume to another machine if required.&lt;BR /&gt;#Create volume group and import into different machine if required&lt;BR /&gt;#&lt;BR /&gt;#mkdir /dev/vg01&lt;BR /&gt;#mkdir /dev/vg01/group c 64 0x010000&lt;BR /&gt;#vgimport /dev/vg01 /dev/dsk/&lt;DISKNAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DISKNAME&gt;</description>
      <pubDate>Tue, 26 Nov 2002 14:36:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852408#M93979</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2002-11-26T14:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: creating a boot CD</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852409#M93980</link>
      <description>This document shows examples and assumes the user has a basic understanding of&lt;BR /&gt;Ignite-UX.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------------&lt;BR /&gt;IgniteUX Boot CD Creation Cookbook&lt;BR /&gt;-------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create golden_image:&lt;BR /&gt;--------------------&lt;BR /&gt;&lt;BR /&gt;make_net_recovery -A -v -s (server_name) -a (archive_server:archive_dir)&lt;BR /&gt;on (archive_server): mv "2001-07-10,10:33" (golden_image_name)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create and edit config files:&lt;BR /&gt;-----------------------------&lt;BR /&gt;cp /opt/ignite/data/examples/core11.cfg /var/opt/ignite/bootcd.cfg&lt;BR /&gt;      (--- for 10.20 use core.cfg !!)&lt;BR /&gt;&lt;BR /&gt;chmod u+w /var/opt/ignite/bootcd.cfg&lt;BR /&gt;&lt;BR /&gt;save_config -f /var/opt/ignite/(hostname.hwconf)&lt;BR /&gt;&lt;BR /&gt;chmod u+w /var/opt/ignite/(hostname.hwconf)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Change bootcd.cfg:&lt;BR /&gt;------------------&lt;BR /&gt;- at sw_source "core archive":&lt;BR /&gt;load_order = 0&lt;BR /&gt;source_format = archive&lt;BR /&gt;source_type = "DSK"&lt;BR /&gt;change_media = FALSE&lt;BR /&gt;&lt;BR /&gt;- Comment out everything concerning nfs_source, ftp_source und remsh_source&lt;BR /&gt;&lt;BR /&gt;- At init sw_sel "golden image - 32 bit OS"&lt;BR /&gt; (or init sw_sel "golden image - 64 bit OS"):&lt;BR /&gt;archive_type = gzip tar&lt;BR /&gt;archive_path="(golden_image_name)"&lt;BR /&gt;        (------- only golden_image name, not path !!)&lt;BR /&gt;&lt;BR /&gt;- Put output of "/opt/ignite/lbin/archive_impact -t -g /.../(golden_image_name)&lt;BR /&gt;in place of what is written in the "impacts" part.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create CD image&lt;BR /&gt;---------------&lt;BR /&gt;lvcreate -L XXX /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;(This size may vary depending on golden image size. Check the size of the golden&lt;BR /&gt;image after make_net_recovery and then create a filesystem which is about 50MB&lt;BR /&gt;bigger then the golden image).&lt;BR /&gt;&lt;BR /&gt;newfs -F hfs -f 2048 /dev/vgXX/rlvolXX&lt;BR /&gt;         (------ ensuring that we use 2048 fragment sz !!)&lt;BR /&gt;&lt;BR /&gt;mkdir /image&lt;BR /&gt;&lt;BR /&gt;mount /dev/vgXX/lvolXX /image&lt;BR /&gt;&lt;BR /&gt;cp (golden_image_name) /image&lt;BR /&gt;&lt;BR /&gt;umount /image&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vgXX/rlvolXX of=/.../cd_image bs=1024k&lt;BR /&gt;         (--- here you need a filesystem with enough space, around twice the&lt;BR /&gt;size of the golden image)&lt;BR /&gt;&lt;BR /&gt;make_medialif -f /var/opt/ignite/(hostname.hwconf) -f /var/opt/ignite/bootcd.cfg&lt;BR /&gt;-l /.../uxinstall&lt;BR /&gt;&lt;BR /&gt;              (uxinstall=lifheader)&lt;BR /&gt;&lt;BR /&gt;/opt/ignite/lbin/instl_combine -F /.../uxinstall -C /.../cd_image&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then burn the cd_image to the CD. You can use cdrecord for that on HPUX.</description>
      <pubDate>Tue, 26 Nov 2002 14:38:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852409#M93980</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2002-11-26T14:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: creating a boot CD</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852410#M93981</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try these links,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000058668908" target="_blank"&gt;http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000058668908&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000064128917" target="_blank"&gt;http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000064128917&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This is from itrc. Doc id KBRC00002082 &amp;amp;                                              KBRC00008810.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Nov 2002 15:16:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852410#M93981</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-11-26T15:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: creating a boot CD</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852411#M93982</link>
      <description>Hi Sylvain,&lt;BR /&gt;&lt;BR /&gt;read the documentation about "Ignite/UX", especially about "customized install media":&lt;BR /&gt;&lt;A href="http://software.hp.com/products/IUX/docs/Customized_Install_Media_Paper.pdf" target="_blank"&gt;http://software.hp.com/products/IUX/docs/Customized_Install_Media_Paper.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;IIRC then the biggest problem was the block size of 2048 bytes...&lt;BR /&gt;And if you are using PC-based burning software, well, not all of them can do this (Nero Burning COM can).&lt;BR /&gt;&lt;BR /&gt;FWIW,&lt;BR /&gt;Wodisch&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Nov 2002 20:10:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852411#M93982</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2002-11-28T20:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: creating a boot CD</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852412#M93983</link>
      <description>If you are looking for a diskless (ie, CDROM boot with no hard disk at all) solution, this isn't possible. HP-UX must have a writable swap area as well as writable /var and /tmp and other writable areas in order to run networking. NFS is a complex protocol and only works after full networking is operational.</description>
      <pubDate>Fri, 29 Nov 2002 00:08:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-boot-cd/m-p/2852412#M93983</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-11-29T00:08:31Z</dc:date>
    </item>
  </channel>
</rss>

