newfs using SAM
commands only:
# Tue Sep 30 23:43:13 1997: Began creating a new file system on logical volume
# /dev/vg06/db20.
/usr/bin/mkdir -p /db20
/usr/sbin/newfs -F vxfs /dev/vg06/rdb20
/usr/sbin/mount -u -o rw,suid,delaylog -F vxfs /dev/vg06/db20 /db20
/usr/bin/cp /etc/fstab /etc/fstab.old
# Tue Sep 30 23:43:16 1997: Completed creating a new file system on logical
# volume /dev/vg06/db20.
/usr/sbin/mount|/usr/bin/sed -n 's,^[^ ]* on \([^ :]*\):\([^ ]*\).*,\1 \2,p'
/usr/bin/grep '^/' /etc/exports
ps -ef | awk '/[ \/]automount[ \t].*$/ { for (i=1; i<=NF; ++i){ if \
(substr($i,1,2) == "-f") if (length($i)>2) print substr($i,3); else print \
$(i+1); }}' -
/etc/auto_master \
# Tue Sep 30 23:43:17 1997: Began initializing the File Systems sub-area.
/usr/sbin/mount -u
tmpfile=/var/tmp/bdf.err; rc=0; /usr/bin/bdf -b 2> $tmpfile | awk ' { if (flag \
== 1) { print saved_df, $1, $2, $3, $4, $5; flag = 0 } else if ($2 == "") { \
saved_df = $1; flag = 1 } else print $1, $2, $3, $4, $5, $6 }' ; if [[ -s \
$tmpfile ]]; then rc=1; cat $tmpfile 1>&2 ; fi; rm $tmpfile ; exit $rc
/usr/sbin/swapinfo -fdmrt
/sbin/lvlnboot -v vg00 2> /dev/null | awk '$1=="Swap:" { if ( substr( $2, 1, 1 \
) == "/" ) { print substr( $2, 2 ) } else { print $2 } }'
if [ -f /etc/auto_master ]; then /usr/sam/lbin/autoopt -l -f/etc/auto_master ; \
fi;
-hosts|/net||||soft||| \
# Tue Sep 30 23:43:18 1997: Completed initializing the File Systems sub-area.
all the verbose and gory details
----- Tue Sep 30 23:43:13 1997: Began creating a new file system on logical
volume /dev/vg06/db20.
* Creating the directory /db20.
* Performing task "Make new directory.": Creating directory /db20.
* Executing the following command:
/usr/bin/mkdir -p /db20
* Command completed with exit status 0.
* Performing task "Create a new file system.": New file system being
created on /dev/vg06/rdb20.
* Executing the following command:
/usr/sbin/newfs -F vxfs /dev/vg06/rdb20
* Command completed with exit status 0.
* Performing task "Mount a file system.": Mounting file system at /db20.
* Executing the following command:
/usr/sbin/mount -u -o rw,suid,delaylog -F vxfs /dev/vg06/db20 /db20
* Command completed with exit status 0.
* Performing task "Make safe copy of /etc/fstab.".
* Executing the following command:
/usr/bin/cp /etc/fstab /etc/fstab.old
* Command completed with exit status 0.
* Adding the following entry to "/etc/fstab":
/dev/vg06/db20 /db20 vxfs rw,suid,delaylog 0 2
----- Tue Sep 30 23:43:16 1997: Completed creating a new file system on
logical volume /dev/vg06/db20.
* Performing task "Checks if any remote file systems are mounted.".
* Executing the following command:
/usr/sbin/mount|/usr/bin/sed -n 's,^[^ ]* on \([^ :]*\):\([^ \
]*\).*,\1 \2,p'
* Command completed with exit status 0.
* Task: "Checks if any remote file systems are mounted." succeeded.
* Performing task "Check if /etc/exports exists and contains entries.".
* Executing the following command:
/usr/bin/grep '^/' /etc/exports
* Command completed with exit status 1.
ERROR - it does not
* Performing task "Get the name of the current NFS Automounter master map
from the current automount process.".
* Executing the following command:
ps -ef | awk '/[ \/]automount[ \t].*$/ { for (i=1; i<=NF; ++i){ if \
(substr($i,1,2) == "-f") if (length($i)>2) print substr($i,3); \
else print $(i+1); }}' -
* Command completed with exit status 0.
* The command wrote the following to stdout:
/etc/auto_master \
----- Tue Sep 30 23:43:17 1997: Began initializing the File Systems sub-area.
* Performing task "Updating /etc/mnttab.".
* Executing the following command:
/usr/sbin/mount -u
* Command completed with exit status 0.
* Performing task "Get all currently mounted file systems.".
* Executing the following command:
tmpfile=/var/tmp/bdf.err; rc=0; /usr/bin/bdf -b 2> $tmpfile | awk ' \
{ if (flag == 1) { print saved_df, $1, $2, $3, $4, $5; flag = 0 } \
else if ($2 == "") { saved_df = $1; flag = 1 } else print $1, $2, \
$3, $4, $5, $6 }' ; if [[ -s $tmpfile ]]; then rc=1; cat $tmpfile \
1>&2 ; fi; rm $tmpfile ; exit $rc
* Command completed with exit status 0.
* Performing task "Getting all current swap information.".
* Executing the following command:
/usr/sbin/swapinfo -fdmrt
* Command completed with exit status 0.
* Performing task "Check if a volume group has a logical volume which is
the primary swap device.".
* Executing the following command:
/sbin/lvlnboot -v vg00 2> /dev/null | awk '$1=="Swap:" { if ( \
substr( $2, 1, 1 ) == "/" ) { print substr( $2, 2 ) } else { print \
$2 } }'
* Command completed with exit status 0.
* Performing task "Get the list of NFS Automounter file systems.".
* Executing the following command:
if [ -f /etc/auto_master ]; then /usr/sam/lbin/autoopt -l \
-f/etc/auto_master ; fi;
* Command completed with exit status 0.
* The command wrote the following to stdout:
-hosts|/net||||soft||| \
----- Tue Sep 30 23:43:18 1997: Completed initializing the File Systems
sub-area.
|