low level format with FX

SGI hardware problems, solutions, tips, hacks, etc.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
hhoffman
Posts: 88
Joined: Fri Apr 01, 2011 7:45 am
Location: Berlin, Germany

low level format with FX

Unread postby hhoffman » Mon Dec 04, 2017 8:57 am

I have a question about 'fx' in irix. How can I 'low level format' an extra harddrive (fibrechannel) and is it possible to change the blocksize of the drive? I try to use IBM SAN drives in a SGI D-brick. The drives have an unusable blocksize (not 512).

Do I need to boot the installation tools for getting FORMAT option for 'fx'?
Don't see it in irix itself.
Last edited by hhoffman on Tue Dec 05, 2017 7:31 am, edited 1 time in total.

robespierre
Posts: 1577
Joined: Mon Sep 12, 2011 2:28 pm
Location: Boston

Re: low level format with FX

Unread postby robespierre » Mon Dec 04, 2017 11:26 am

you must invoke fx with the -x flag to see all of the commands.
Then use label/set/geometry to change the block size, and then /format.
:PI: :O2: :Indigo2IMP: :Indigo2IMP:

User avatar
hhoffman
Posts: 88
Joined: Fri Apr 01, 2011 7:45 am
Location: Berlin, Germany

Re: low level format with FX

Unread postby hhoffman » Tue Dec 05, 2017 8:06 am

I tried to do it like you have described and was left with an unusable harddrive:

Code: Select all

fx/label> se

----- please choose one (? for help, .. to quit this menu)-----
[para]meters              [part]itions              [s]giinfo
[g]eometry                [m]anufacturer_params     [b]ootinfo
fx/label/set> g

NOTE: you will need to reformat the disk after changing
the drive geometry.  This will cause all data on the drive
to be lost.  Continue? yes
fx/label/set/geometry: Tracks/zone = (20435)
fx/label/set/geometry: Alt sect/zone = (46124)
fx/label/set/geometry: Alt track/zone = (52)
fx/label/set/geometry: Alt track/volume = (832)
fx/label/set/geometry: Track Skew = (104)
fx/label/set/geometry: Cylinder Skew = (194)
fx/label/set/geometry: Data bytes/sec = (524) 512
 * * * * * W A R N I N G * * * * *
about to modify drive parameters on disk dksc(2,89,0)! ok? yes
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
dksc2d89vol:   retrying request
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
dksc2d89vol:   retrying request
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
dksc2d89vol:   retrying request
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
|$(3)dksc2d89vol: I/O error, retries exhausted
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
dksc2d89vol:   retrying request
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
dksc2d89vol:   retrying request
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
dksc2d89vol:   retrying request
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
|$(3)dksc2d89vol: I/O error, retries exhausted
Warning: error setting drive parameters (page 3): I/O error
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
dksc2d89vol:   retrying request
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
dksc2d89vol:   retrying request
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
dksc2d89vol:   retrying request
dksc2d89vol: [Alert] Media error: Media format corrupted (asc=0x31, asq=0x0)
|$(3)dksc2d89vol: I/O error, retries exhausted
Warning: error setting drive parameters (page 4): I/O error

----- please choose one (? for help, .. to quit this menu)-----
[para]meters              [part]itions              [s]giinfo
[g]eometry                [m]anufacturer_params     [b]ootinfo
fx/label/set>

about to destroy data on disk dksc(2,89,0)! ok? yes
writing label info to dksc(2,89,0)
fx/auto: Error:  Invalid argument:  on write at block 2 for 1 block
retry #2
fx/auto: Error:  Invalid argument:  on write at block 2 for 1 block
retry #3
fx/auto: Error:  Invalid argument:  on write at block 2 for 1 block
retry #4
fx/auto: Error:  Invalid argument:  on write at block 2 for 1 block
fx/auto: Warning:  can't write sgilabel

what can I do now? Can anyone help?

jwhat
Posts: 316
Joined: Sat Aug 09, 2003 6:25 pm
Location: Australia

Re: low level format with FX

Unread postby jwhat » Sat Dec 09, 2017 11:56 am

Hi hhoffman,

Two possible ways to recover are:
1. see if there is vendor tool
2. Use Linux tools.

I am pretty sure last time I had problem this was fixed via Linux utilities - sg3_utils (sg_scan, sg_format etc)

Bit of web surfing should find it. Issue is typically disk with 520 sector size needs to be converted to 512:

http://sg.danny.cz/sg/sg3_utils.html

Cheers,

jwhat.
jwhat - ask questions, provide answers


Return to “SGI: Hardware”

Who is online

Users browsing this forum: No registered users and 1 guest