![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||
Solution Type Technical Instruction Sure Solution 1006816.1 : Performing and understanding the fsck procedure on the SunStorageTek[TM] 5000 Series NAS arrays to recover from a filesystem crash
PreviouslyPublishedAs 209471 Oracle Confidential (INTERNAL). Do not distribute to customers Reason: Migrated distribution from Sun Description There are instances when the NAS filesystem may suffer from a crash. In such cases, fsck must be run on the filesystem that has crashed. To run a fsck on the affected volume, the user needs to understand the way the fsck works on the SunStorEdge[TM] 5210 and 5310 NAS arrays.
Steps to Follow The first step in filesystem repair is to ensure that you have a complete, tested backup. The filesystem check carries some risk. Directories, files and filenames may be lost. A tested backup means that the data has been restored from tape, and checked for validity. Fsck must be started on volumes which are already mounted. The volumes could be mounted with errors (like offline / error), read-only etc. The volume against which the filesystem check is being run will be unavailable for the duration of the filesystem check. Care must be taken when you start fsck on a live volume. It freezes the volume during the process of checking the volume. This means that all I/Os will fail if they have been initiated on the volume being checked. If this is a volume containing the /etc directory then all the volumes will be unavailable for the duration of the filesystem repair process. The fsck procedure is run from the SunStorEdge CLI. At the CLI, enter "fsck <volumename>" You will then be asked whether repairs should be Atleast two fsck runs back to back are required to get the filesystem in order. Sometimes even more than 2 runs to get the filesystem back in order will be required. When the filesystem has been repaired, the following message is displayed: sfs2ck vol1: no errors This is how the fsck works on the SunStorEdge [TM] 5210 and 5310 NAS arrays. First run of fsck will do the following : If the FSOLF_ERROR error flag is set, it then detects the number of error counts, temporarily disables the error flag, re-initializes the error counts and then initializes the stat on the SFS2 volume. At this time, it sets the volume error flag back again. Second fsck will do the following: Check the errors again. If errors still exists, the above step is re-done. If there are no more errors, then the error flag is reset and it aligns the journal. If the volume was mounted read only, it remounts it as read write. So, as it can be seen, if there are errors, we really need to run fsck at least two times '''back to back''' Fsck is a single threaded utility and it can be pre-empted just like any other process. It is also possible, but very rare, that the above message will never be seen. This can occur in extreme cases where the filesystem check is unable to completely repair a volume. In these cases, the volume should be deleted and restored from tape. An example of a failed fsck run on a filesystem that has crashed is shown below, followed by an example of fscks run on the same filesystem to repair it. jukebox > fsck /home jukebox > df jukebox > umount /home As seen above, the filesystem is still not repaired after the first run. Unmounting and mounting jukebox > df jukebox > fsck /home Should repairs be needed, do you want them made? jukebox > df jukebox > fsck /home As can be seen above, the df command shows the filesystem as OFFLINE after the first run of the fsck. NOTE: Unmounting and mounting the filesystem between the fsck runs causes the errors to be set again after the first run and interferes with the fsck procedures. Another run of fsck after the unmounting and mounting of the filesystem , does not repair the affected volume. Product Sun StorageTek 5310 NAS Gateway/Cluster System Sun StorageTek 5320 NAS Gateway/Cluster System Sun StorageTek 5320 NAS Appliance Sun StorageTek 5310 NAS Gateway System Sun StorageTek 5310 NAS Appliance Sun StorageTek 5210 NAS Appliance Sun StorageTek 5320 NAS Appliance Sun StorageTek 5220 NAS Appliance Internal Comments This document contains normalized content and is managed by the the Domain Lead(s) of the respective domains. To notify content owners of a knowledge gap contained in this document, and/or prior to updating this document, please contact the domain engineers that are managing this document via the “Document Feedback” alias(es) listed below: storage-nas-domain@sun.com The Knowledge Work Queue for this article is KNO-STO-NAS. fsck, NAS, 5210, 5310, 5310C, 5320, 5320C, filesystem, 5220, audited Previously Published As 85250 Change History Date: 2007-10-01 User Name: 71396 Action: Approved Comment: Performed final review of article. Check for Currency 05-MAR-2018 No changes required. Attachments This solution has no attachment |
||||||||||||
|