No, fsck repairs *logical* errors in the file system - not *physical* errors.
A broken disk needs to be replaced then re-mirrored. With the Solaris LVM it is a bit complex because the new disk needs to be partitioned and metadb needs to be recreated, before it can be re-mirrored. But all this can be done on the running system.
Can i run the below commands to fix the logical errors.
Firstly unmount the file system /var
umount /var
Then run fsck
fsck -y -F ufs /var
mount the file system back to online.
mount /var
or do i directly need to boot from the OK prompt using boot -s and then do umount on /var then run fsck and bring the /var online by using mount and then reboot the machine?
Please assist.
If this works you can directly proceed with fsck and mount, as you suggested.
But it will likely fail with "device busy" unless it is in single-user mode.
--
In single-user mode and OK prompt you'll loose remote connection e.g. ssh connection. So make sure you access the system through a console (ILO/ALOM board, serial console, grahical console, etc.).
You can shutdown -y -i 0 -g 0 to the OK prompt and then type boot -s .
I'am not sure if u can run fsck /var with the OS running and i believe you would have to boot from cd and then mount /var, or change the /etc/hosts so it doesn't use /var, then reboot and then fsck var