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

veritas jumpstart problem

Status
Not open for further replies.

mahalingam1

IS-IT--Management
Dec 7, 2007
75
Hi all,

i have the following problem when i try to install a flash image and encapsulate the root disk after jumpstart instalation:

I put this script in /etc/rc3.d directory. this script is done as a part of finish jumpstart script:

#!/usr/bin/sh

echo "forceload: drv/vxgms" >> /etc/system
touch /etc/rc3.d/S99vxmirror
FICHERO=/etc/rc3.d/S99vxmirror
echo "#!/usr/bin/ksh" >> $FICHERO
echo "/etc/vx/bin/vxencap -c -g -f sliced rootdisk=c0t0d0s2" >> $FICHERO

echo "/usr/lib/vxvm/bin/vxdisksetup -i c0t2d0" >>$FICHERO

echo "/opt/VRTS/bin/vxdg adddisk rootmirror=c0t2d0" >> $FICHERO

echo "/usr/lib/vxvm/bin/vxrootmir rootmirror" >> $FICHERO
echo "/opt/VRTS/bin/vxassist mirror swapvol alloc=rootmirror" >> $FICHERO

echo "/opt/VRTS/bin/vxassist mirror space alloc=rootmirror" >> $FICHERO

mv /etc/rc3.d/S99vxmirror /etc/rc3.d/s99vxmirror


I put this script in /etc/rc3.d directory because i read on internet that someone command of veritas dont work fine in jumpstart environment.

As you can see i try to encapsule the root disk and after i try to make a mirror of rootvol, swapvol and space volume


When i boot the system after all i get the following message:


ADDED DISK ARRAY OTHER_DISKS, DATYPE=OTHER_DISKS
DMPNODE 185/oXo HAS MIGRATED FROM ENCLOSURE FAKE_ENCLR TO ENCLOSURE OTHER_DISKS.

Please anyone can help me?

Thanks in advance and regards
 
Have you tried running the commands in S99vxmirror manually after jumpstarting a system? Does it work fine then?

Annihilannic.
 
Hi Annihilannic, sorry for my delay, i Have been ill.

At the end i try to resolv the problem via vxdiskadm.

I was made an script that try to encapsulate de root disk, init the mirror disk and finaly try to mirror the root disk.

The script is the following one:


#!/usr/bin/ksh

BASEDIR=/a

cp ${BASEDIR}/etc/system ${BASEDIR}/etc/system.vxvm







cp ${BASEDIR}/etc/system-INSTALL ${BASEDIR}/etc/system

cp ${BASEDIR}/etc/vfstab ${BASEDIR}/etc/vfstab.vxvm
cp ${BASEDIR}/etc/vfstab-INSTALL ${BASEDIR}/etc/vfstab


################################################################################################
##
## Creamos el script /etc/rc3.d/S99vxvmencap para el encapsulamiento del disco raiz
##
###############################################################################################




cat > ${BASEDIR}/etc/rc3.d/S99vxvmencap <<END

#!/bin/sh

/opt/VRTS/bin/vxdiskadm <<EOF

2
c0t0d0
y
rootdg
y
y
y
65536
n
q

EOF


mv /etc/rc3.d/S99vxvmencap /etc/rc3.d/s99vxvmencap

mv /etc/rc3.d/s99vxvminit /etc/rc3.d/S99vxvminit

/sbin/init 6

END

################################################################################################
##
## Creamos el script /etc/rc3.d/S99vxvminit para inicializar el disco de mirror
##
################################################################################################

cat > ${BASEDIR}/etc/rc3.d/s99vxvminit <<END

#!/bin/sh

/opt/VRTS/bin/vxdiskadm <<EOF

1
c0t2d0
y
rootdg
y
n
n
n
y
n
y
sliced
65536
n
q

EOF

mv /etc/rc3.d/S99vxvminit /etc/rc3.d/s99vxvminit

mv /etc/rc3.d/s99vxvmmirror /etc/rc3.d/S99vxvmmirror


/sbin/init 6

END


################################################################################################
##
## Creamos el script /etc/rc3.d/s99vxvmmirror para crear el mirror de los discos
##
################################################################################################

cat > ${BASEDIR}/etc/rc3.d/s99vxvmmirror <<END

#!/bin/sh

/opt/VRTS/bin/vxdiskadm <<EOF

6
rootdg01
rootdg02
y
n
q

OEF

mv /etc/rc3.d/S99vxvmmirror /etc/rc3.d/s99vxvmmirror

END


As you can see i made three scripts, the first to encapsulate the root disk, the second to init the mirror disk and the last to made the mirror, but i dont know why the first scripts fails.


I tell you the news


Thank you very much and regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top