jande2
asked on
Solaris fsck script
I need to have a solution to run fsck and perform a ufsdump on a Solaris 8 Sparc server that includes Oracle 8i 8.1.7. I will use this solution on a monthly basis, or whenever the need arises. I perform this function manually now and would like to automate this process.
How about enabling journaling and doing away with the fsck?
Write down the fsck command you want to run into a shell script file.
Execute this file and verify if this works fine.
Add a cron job to make sure that the sytem will execute this file every 1st day of the month.
read
man fsck.
man cron.
thx.
Execute this file and verify if this works fine.
Add a cron job to make sure that the sytem will execute this file every 1st day of the month.
read
man fsck.
man cron.
thx.
make sure you have the path/to/shell in the first line of your script
#!/usr/bin/ksh
/bin/fsck whatever
/bin/ufsdate whatever
make sure you make the script executeable (chmod +x /path/to/script)
#!/usr/bin/ksh
/bin/fsck whatever
/bin/ufsdate whatever
make sure you make the script executeable (chmod +x /path/to/script)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sagar24
slight typo
/usr/sbin/ufs/dump -0uf /dev/rmt/0 device-name 1> /dev/null
---------------^---------- ---------- ---------- ---------- ---------- ------
should be
/usr/sbin/ufsdump -0uf /dev/rmt/0 device-name 1> /dev/null
--------------^----------- ---------- ---------- ---------- ---------- -----
slight typo
/usr/sbin/ufs/dump -0uf /dev/rmt/0 device-name 1> /dev/null
---------------^----------
should be
/usr/sbin/ufsdump -0uf /dev/rmt/0 device-name 1> /dev/null
--------------^-----------
Hi jande2
Thanks for accepting my answer
Regards
Sagar
Thanks for accepting my answer
Regards
Sagar
liddler thanks for your correction
Regards'
Sagar
Regards'
Sagar