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
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.
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)
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)
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)
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)
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)
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)
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)
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)
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)