Need help in scripting to do repair in format tool of Solaris


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need help in scripting to do repair in format tool of Solaris
# 22  
Old 02-25-2017
It give me more strange error
Code:
# ls -l /a/bin/bash
-r-xr-xr-x   1 root     bin       794472 Sep 26  2014 /a/bin/bash
# /a/bin/bash
bash-3.2# echo {39594646..585912500}
bash: xmalloc: stringvec.c:40: cannot allocate 2185271424 bytes (0 bytes allocated)
#

# 23  
Old 02-25-2017
See what
Code:
echo {39594646..39594656}
39594646 39594647 39594648 39594649 39594650 39594651 39594652 39594653 39594654 39594655 39594656

prints - 11 words, 99 chars.
Code:
echo {39594646..585912500}

would try to create 546317854 words and hereby blast any LINE_MAX or ARG_MAX system parameter... and obviously exhaust memory management on your box.
This User Gave Thanks to RudiC For This Post:
# 24  
Old 02-25-2017
Good point.
Further, the repair function exchanges a defective sector by one from a reserve track. Where it tries to read the defective sector and copy its contents to the replacement sector. But might fail: data gets corrupted.
There is a couple of reserve tracks that might hold a few hundred sectors. If they are spent then further repairs will fail.
# 25  
Old 02-25-2017
Good catch. Thanks.
I am running it in parts now. This time {39595001..39599999}
Probably all blocks may not be corrupted. But as of now it is running. I will update this post, once I have something.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

BART tool on Solaris 10 - enable SHA256

Hi all, I am attempting to create a BART manifest on a Solaris 10 box; however, I need it to be hashed with SHA256. Normally, at the beginning of a "bart create" command, the version and date appear along with the type of encryption listed. When I run the command though I receive the... (3 Replies)
Discussion started by: Derk Berk
3 Replies

2. Solaris

Question with Solaris Crash Analysis Tool with Solaris 9

Hello all. I am new hear and would like to ask a question regarding to the Solaris Crash Analysis Tool. We are analyzing the results of "thread summary" but not quite sure what the asterisk represents. Following are the items that asterisk were attached. 50* threads sleeping on a semaphore (49... (1 Reply)
Discussion started by: YuW
1 Replies

3. Solaris

Is there a similar tool with authconfig of Linux on Solaris?

Hi Dears, I believe you know authconfig on most of Linux Distributions. However, on Solaris OS, I don't know the similar tool. Could you please share me the tool, if any? Note: I am using SunOS 5.10. (0 Replies)
Discussion started by: crest.boy
0 Replies

4. Shell Programming and Scripting

Need a ksh scripting tool

Hi guys, I am new in Unix/linux field. I need a >>tool which is running on windows xp and provide the >>Korn shell scripting environment. As I used cygvin, but it is bash shell and most of the command of unix is not supported by cygwin.:confused: please suggest..... :) thanks in... (9 Replies)
Discussion started by: atul9806
9 Replies

5. Solaris

Can fssnap be used as a compression tool (Solaris 10)?

Friends, I am learning the working of fssnap command. Suppose there is a directory named /datadir which is of size 500mb. I had taken the snapshot by means of the following command: #fssnap -F ufs -o bs=/snapshotdir /datadir { it shows the o/p as /dev/fssnap/0 } My question is if... (2 Replies)
Discussion started by: saagar
2 Replies

6. Infrastructure Monitoring

Network monitoring tool for Solaris 10

Hi All, I was wondering if there is any Network Monitoring Tool for Solaris 10 to monitor a network having hybrid operating systems. I just googled it without success. Hope, experts will guide me to get it. Thanks, Deepak (7 Replies)
Discussion started by: naw_deepak
7 Replies

7. Solaris

Network monitoring tool for Solaris 10

Hi All, I was wondering if there is any Network Monitoring Tool for Solaris 10 to monitor a network having hybrid operating systems. I just googled it without success. Hope, experts will guide me to get it. Thanks, Deepak (0 Replies)
Discussion started by: naw_deepak
0 Replies

8. Shell Programming and Scripting

New tool for shell scripting

Hi All, It's quite long time....m comming to my favourite forum.. Can anyone suggest me good tool like eclipse for Java....do we have anything for Shell scripting..where n i can atlease prepare script...rather than typing all mistakes in Linux box :) Thanks Sha (1 Reply)
Discussion started by: Shahul
1 Replies

9. Solaris

Solaris Performance Monitoring Graphing Tool

Hi All Anyone out there using any graphing tool for Solaris performance data taken either through SAR utility or iosatat, vmstat, nicstat etc. There are a couple on googling like statsview and rrdtool but not sure if anyone is really happy and satisfied with using any of the graphing tool. ... (1 Reply)
Discussion started by: baner_n
1 Replies
Login or Register to Ask a Question