Can I run repair on lot of blocks with single command ?


 
Thread Tools Search this Thread
Operating Systems Solaris Can I run repair on lot of blocks with single command ?
# 1  
Old 02-23-2017
Can I run repair on lot of blocks with single command ?

Hi,

I have Solaris-10 OS on T5220. Both local disks were mirrored under SVM. Somehow when one disk gone bad (c0t1d0), other disk (c0t0d0) also got lot of bad block. We have readable data only on c0t0d0, but as soon as server comes after, it hangs when I run few commands because of read errors, possibly on those bad blocks.

I boot server in failsafe mode and ran format --> analyze --> read. After some reading, it starts giving below error and continued further for other blocks
Code:
WARNING: /pci@0/pci@0/pci@2/scsi@0/sd@0,0 (sd2):
        Error for Command: read(10)                Error Level: Retryable
        Requested Block: 39607175                  Error Block: 39607175
        Vendor: SEAGATE                            Serial Number: 110371NW03
        Sense Key: Media Error
        ASC: 0x11 (unrecovered read error), ASCQ: 0x0, FRU: 0x81

Usually read will correct defects, but it is not correcting. After a while, if I do Ctlr+c, it says 0 defects repair. But if do format --> repair --> 39607175, it is able to correct it. If I run read it, it will not pick same block, so I am assuming that repiring is done on that block. There are total 585912500 blocks on this disk.

Can somebody suggest/help, if I can run a single command or put something in loop on repair command from 39607176 to 585912500 ?
Running manual repair on thousands on blocks is not possible. If I can run single command or script, I can leave it running for whole night. I am in failsafe mode right now.

Regards
# 2  
Old 02-23-2017
This content should be part of this thread Need help in scripting to do repair in format tool of Solaris.


Closing thread.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run simple single command on multiple Linux servers?

Hi All, How can i run a single command on multiple servers with or without giving credentials. I have a file(servers.txt) which has got list of servers and i want to run a command lsb_release -dr on all these servers and get output of those servers against each server. I tried below code... (9 Replies)
Discussion started by: darling
9 Replies

2. Shell Programming and Scripting

sed - filter blocks between single delimiters matching a pattern

Hi! I have a file with the following format:CDR ... MSISDN=111 ... CDR ... MSISDN=xxx ... CDR ... MSISDN=xxx ... CDR ... MSISDN=111 (2 Replies)
Discussion started by: Flavius
2 Replies

3. Shell Programming and Scripting

Su and run single line command

myenv.sh script sets LOG_DIR variable. I can run the script and echo the variable in a single line as: # First set LOG_DIR to some dummy 'NONE' value $ export LOG_DIR="NONE" $ echo ${LOG_DIR} NONE $ cat /tmp/bin/myenv.sh export LOG_DIR="/tmp/log" #The below command doesn't show the... (2 Replies)
Discussion started by: ysrini
2 Replies

4. Shell Programming and Scripting

Map values of blocks in a single line

Hello to all in forum, Maybe some awk expert could help me. I have this sample input: <MGISP:IMSIS=99995626; MT IMSI NUMBER SERIES ANALYSIS DATA OPERATING TABLE IMSIS M NA ANRES 99995626 6-77182 4 OBA-200 ... (9 Replies)
Discussion started by: Ophiuchus
9 Replies

5. Solaris

unable to repair the / filesystem. Run fsck manually (fsck -F ufs /dev/rdsk/c1t0d0s0)

What can I fix this issue? I have ran below commands but everything is same.:confused: WARNING: Last shutdown is later than time on time-of-day chip: check date. The / file system (/dev/rdsk/c1t0d0s0) is being checked WARNING - unable to repair the / filesystem. Run fsck manually (fsck -F... (4 Replies)
Discussion started by: getrue
4 Replies

6. UNIX for Dummies Questions & Answers

How to run multiple command in a single line?

Normally i would do this- cd abc ls -ltr I wish to run above command in a single line, like this- cd abc | ls -ltr But above command doesn't works, it simply runs the second command, ignoring the 1st one. :confused: (4 Replies)
Discussion started by: boy18nj
4 Replies

7. Solaris

Single maintence mode cannot run any command on M4000

Hii All I was building two M4000 servers and one was successfully installed. Other one /usr has been unmounted. my putty session got disconnected and i connected to console where it asked for root single maintence # # init 0 not foung # df -h not found # xscf>poweroff -a xscf>... (8 Replies)
Discussion started by: seems
8 Replies

8. UNIX for Dummies Questions & Answers

How to run multiple command in single command?

Dear Unix Guru, I have several directories as below /home/user/ dir1 dir2 dir3 Each directory has different size. I want to print each directory size (Solaris command du -hs .) Can you please guide me how to achieve this? Thanks Bala (2 Replies)
Discussion started by: baluchen
2 Replies

9. UNIX for Dummies Questions & Answers

run command Unix on a single line

Hi everybody.. I need to enter in bash mode and then run a command and this just in a single command line. I tried : "bash ^M| somecommand" but nothing.. How do I do to simulate the return button just right after the bash command ? Thanks.. (8 Replies)
Discussion started by: Riddick61
8 Replies

10. UNIX for Advanced & Expert Users

fsck command - what does it check/repair??

While rebooting one of the UNIX systems here at work, the boot-up process halted and a message appeared telling me that I had to run the fsck command. The command to the best of my knowledge went something like : fsck -F ufs /dev/rdsk/c0t0d0s0 Can someone give me a full list of this command... (4 Replies)
Discussion started by: Kanu77
4 Replies
Login or Register to Ask a Question