Here is the appropriate script: #!/bin/sh ODSINIT=/etc/rc2.d/S78disksuite METABIN=/usr/opt/SUNWmd/sbin DISK1=c0t0d0 DISK2=c0t2d0 echo "" echo "###Creating the file $ODSINIT for configuring ODS###" echo "" echo "#!/sbin/sh if test -f /config.ods.1 then $METABIN/metadb -a -f -c 3 ${DISK1}s7 ${DISK2}s7 echo \"Preparing the / partition\" $METABIN/metainit -f d10 1 1 ${DISK1}s0 $METABIN/metainit d20 1 1 ${DISK2}s0 $METABIN/metainit d0 -m d10 $METABIN/metaroot d0 echo \"Preparing the swap partition\" $METABIN/metainit -f d11 1 1 ${DISK1}s1 $METABIN/metainit d21 1 1 ${DISK2}s1 $METABIN/metainit d1 -m d11 echo \"Preparing the /var partition\" $METABIN/metainit -f d12 1 1 ${DISK1}s3 $METABIN/metainit d22 1 1 ${DISK2}s3 $METABIN/metainit d2 -m d12 echo \"Preparing /etc/vfstab. Backup in /etc/vfstab.orig\" cp /etc/vfstab /etc/vfstab.orig echo \"#device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # #/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes - fd - /dev/fd fd - no - /proc - /proc proc - no - /dev/md/dsk/d1 - - swap - no - /dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no logging /dev/md/dsk/d2 /dev/md/rdsk/d2 /var ufs 1 no logging,nosuid swap - /tmp tmpfs - yes nosuid \" > /etc/vfstab.meta lockfs -fa if [ -r /dev/md/dsk/d0 ]; then cp /etc/vfstab.meta /etc/vfstab fi touch /config.ods.2 rm /config.ods.1 reboot fi if test -f /config.ods.2 then rm /config.ods.1 reboot fi if test -f /config.ods.2 then echo\"\" echo \"Meta Attaching ODS devices...\" echo\"\" $METABIN/metattach d0 d20 $METABIN/metattach d1 d21 $METABIN/metattach d2 d22 rm /config.ods.2 fi " > /a/$ODSINIT -----Original Message----- From: Blair Rampling [mailto:brampling@radiant.net] Sent: Wednesday, August 29, 2001 9:59 AM To: sunmanagers@sunmanagers.org Subject: Jumpstart with Disksuite Mirroring *** PGP Signature Status: good *** Signer: Blair Rampling <brampling@radiant.net> *** Signed: 8/29/2001 9:58:58 AM *** Verified: 8/31/2001 12:56:15 PM *** BEGIN PGP VERIFIED MESSAGE *** Is it possible to create a jumpstart configuration which automatically installs disksuite and mirrors the two hard disks in a system? I figure I could do it by adding the meta commands in a finish script, but I was wondering if other people have done it so I can minimize the amount of pain I have to experience. Thanks! - -- Blair Rampling Senior Systems Administrator Radiant Communications *** END PGP VERIFIED MESSAGE ***Received on Wed Sep 5 18:30:45 2001
This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:32:30 EDT