fmthard error


 
Thread Tools Search this Thread
Operating Systems Solaris fmthard error
# 1  
Old 08-13-2012
Data fmthard error

Hello,

I have a X86 server (solaris 10) with 4 similar disks. One of these 4 disks is the root disk.
I need to create a mirror disk to the root disk and two hot spares using the remaining 3 disks.

However, when I use the fmthard commad, I am getting the below error:
Code:
root@xxxxxxxx>prtvtoc /dev/rdsk/c0t5000CCA0253E2869d0s2 | fmthard -s - /dev/rdsk/c0t5000CCA0253D491Dd0s2
Partition 0 not aligned on cylinder boundary: "       0      2    00   33575000 551487500 585062499   /"

I checked the size of all the 4 disks and they are same. See below 'iostat -E' output:

Code:
sd1       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI  Product: H106030SDSUN300G Revision: A2B0 Serial No: 1208N30TGB
Size: 300.00GB <299999999488 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

sd5       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI  Product: H106030SDSUN300G Revision: A2B0 Serial No: 1208N35REB
Size: 300.00GB <299999999488 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

sd6       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI  Product: H106030SDSUN300G Revision: A2B0 Serial No: 1208N2PVEB
Size: 300.00GB <299999999488 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

sd7       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI  Product: H106030SDSUN300G Revision: A2B0 Serial No: 1208N3184B
Size: 300.00GB <299999999488 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

When I checked the partition tables of the root disks then it had 46870 cylinders for the same size slice (279.37G), while the other disks had 36468 cylinders for this slice of 279.37G.

See below outputs:

Code:
Root Disk

format> verify

Primary label contents:

Volume name = < solaris>
ascii name  = <HITACHI-H106030SDSUN300G-A2B0 cyl 46870 alt 2 hd 20 sec 625>
pcyl        = 46872
ncyl        = 46870
acyl        =    2
bcyl        =    0
nhead       =   20
nsect       =  625
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm    2686 - 46804      262.97GB    (44119/0/0) 551487500
  1       swap    wu       1 -  2685       16.00GB    (2685/0/0)   33562500
  2     backup    wm       0 - 46870      279.37GB    (46871/0/0) 585887500
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm   46805 - 46870      402.83MB    (66/0/0)       825000
  8       boot    wu       0 -     0        6.10MB    (1/0/0)         12500
  9 unassigned    wm       0                0         (0/0/0)             0

format>

Other Disks:

format> verify

Primary label contents:

Volume name = <        >
ascii name  = <DEFAULT cyl 36469 alt 2 hd 255 sec 63>
pcyl        = 36471
ncyl        = 36469
acyl        =    2
bcyl        =    0
nhead       =  255
nsect       =   63
Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0                0         (0/0/0)             0
  1 unassigned    wm       0                0         (0/0/0)             0
  2     backup    wu       0 - 36468      279.37GB    (36469/0/0) 585874485
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0
  8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
  9 unassigned    wm       0                0         (0/0/0)             0

format>

So, Why are the number of cylinders different??? How can i correct this???Smilie

Thanks for your help in advance.//

BR//
# 2  
Old 08-13-2012
You state that this is a x86 box but not the type of disk drives.

First, some questions:

1. Are these drives SCSI? (Sorry, haven't searched on the data you posted!!!)
2. If you eyeball the physical drives and their labels, is the geometry the same? (I've seen many times the same manufacturers drives have the same part no., the same capacity, but different geometry. Although your geometry seems too far adrift, still need to check the physical labels.)
3. Have the drives been used for another O/S? Could they have been set up in a parculiar way?
# 3  
Old 08-14-2012
Hi,

Quote:
Originally Posted by hicksd8
1. Are these drives SCSI? (Sorry, haven't searched on the data you posted!!!)
Am not sure how can i check this??? Smilie
Please suggest.
Quote:
Originally Posted by hicksd8
2. If you eyeball the physical drives and their labels, is the geometry the same? (I've seen many times the same manufacturers drives have the same part no., the same capacity, but different geometry. Although your geometry seems too far adrift, still need to check the physical labels.)
Yes, all the four disks have the same geometry.
Quote:
Originally Posted by hicksd8
3. Have the drives been used for another O/S? Could they have been set up in a parculiar way?
No, these disks are all new disks and have not been used by any other system. Usually, I run a setup script which creates the disk-mirroring and hot-spares. When the script failed on this particular system to do so, I checked manually using fmthard command which failed as stated above in my query.
# 4  
Old 08-14-2012
Manually run format on these disks and select fdisk to put an MBR on the disks. fmthard setups the VTOC but does does not add an MBR to a disk.
# 5  
Old 08-14-2012
These drives are SCSI (SAS) drives and the geometry seems adrift somehow.

I suggest that you try this...............

A SCSI hard disk is a highly programmable device. The characteristics are set by setting the values on "mode pages" on the drive. One of the mode pages, 0x04, holds the rigid geometry parameters and this can be changed.

Boot into single user:

Code:
 
boot cdrom -s

and run

Code:
 
format -e

the -e is for 'expert mode'. You should have a menu item that handles SCSI devices and the ability to select one of your drives. Do NOT select the working/boot disk as you might make changes that you don't want. Select one of your troublesome drives and then select "set all mode pages to default". When that's done quit out.

Now see whether the geometry has changed.

If not, then mode pages are not the problem.
# 6  
Old 08-14-2012
Hi Guys,


These disks are SCSI SAS2 disks, apologies to anyone who read what was here before I corrected it.

I would think that these disks willa ll have to be "formatted", there are various ways to do this - probably best to dd the first few sectors of the raw device over then run format -e

Regards

Dave

Last edited by gull04; 08-14-2012 at 08:48 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Print Error in Console and both Error & Output in Log file - UNIX

I am writing a shell script with 2 run time arguments. During the execution if i got any error, then it needs to redirected to a error file and in console. Also both error and output to be redirected to a log file. But i am facing the below error. #! /bin/sh errExit () { errMsg=`cat... (1 Reply)
Discussion started by: sarathy_a35
1 Replies

2. Solaris

Rpcinfo: can't contact portmapper: RPC: Authentication error; why = Failed (unspecified error)

I have two servers with a fresh install of Solaris 11, and having problems when doing rpcinfo between them. There is no firewall involved, so everything should theoretically be getting through. Does anyone have any ideas? I did a lot of Google searches, and haven't found a working solution yet. ... (2 Replies)
Discussion started by: christr
2 Replies

3. Shell Programming and Scripting

What is this error log = hda: irq timeout: error=0x00 and how to solve?

what is this error log = hda: irq timeout: error=0x00 and how to solve? every day upon checking the logs i see this error. hda: irq timeout: error=0x00 hda: irq timeout: error=0x00 hda: irq timeout: error=0x00 hda: irq timeout: error=0x00 hw_client: segfault at 0000000000000046 rip... (3 Replies)
Discussion started by: avtalan
3 Replies

4. UNIX for Dummies Questions & Answers

> 5 ")syntax error: operand expected (error token is " error

im kinda new to shell scripting so i need some help i try to run this script and get the error code > 5 ")syntax error: operand expected (error token is " the code for the script is #!/bin/sh # # script to see if the given value is correct # # Define errors ER_AF=86 # Var is... (4 Replies)
Discussion started by: metal005
4 Replies

5. UNIX for Advanced & Expert Users

ssh error: Error reading response length from authentication socket

Hi - I am getting the error `Error reading response length from authentication socket' when I ssh from my cluster to another cluster, and then back to my cluster. It doesn't seem to affect anything, but it's just annoying that it always pops up and tends to confuse new users of the cluster. I... (1 Reply)
Discussion started by: cpp6f
1 Replies

6. Solaris

fmthard showing error with prtvtoc

Hi all, I am trying to use the disk for mirror where in the mirror disk is of 160 gb and the rootdisk is of 80 gb. when i am trying to write the vtoc i am getting below error i tried the below command #prtvtoc /dev/rdsk/c0t0d0s0 |fmthard -s -/dev/rdsk/c0t2d0s0 and got below ... (26 Replies)
Discussion started by: kumarmani
26 Replies

7. AIX

nim mksysb error :/usr/bin/savevg[33]: 1016,07: syntax error

-------------------------------------------------------------------------------- Hello, help me please. I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? : Command : failed stdout: yes stderr: no... (9 Replies)
Discussion started by: astjen
9 Replies

8. UNIX for Dummies Questions & Answers

awk Shell Script error : "Syntax Error : `Split' unexpected

hi there i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies

9. UNIX for Dummies Questions & Answers

Error: Internal system error: Unable to initialize standard output file

Hey guys, need some help. Running AIX Version 5.2 and one of our cron jobs is writing errors to a log file. Any ideas on the following error message. Error: Internal system error: Unable to initialize standard output file I'm guessing more info might be needed, so let me know. Thanks (2 Replies)
Discussion started by: firkus
2 Replies
Login or Register to Ask a Question