Superuser

Autor Thema: Probleme mit newfs und großer Disk  (Gelesen 9179 mal)

Offline Sonnenbrand

  • Sobl Junior
  • **
  • Beiträge: 84
Probleme mit newfs und großer Disk
« am: 07. Februar 2007, 08:46:06 »
Frage an die Experten,

ich habe hier eine große logische Partition (ca. 840GB - HW-RAID5 aus 4x300GB in einem SE3310) auf der ich mittels newfs ein UFS-FS anlegen will. Dabei "nervt" mich newfs mit diversen Fehlermeldungen und Warnings:

bash-2.05#
bash-2.05#
bash-2.05#
bash-2.05# uname -a
SunOS debers00007 5.9 Generic_118558-14 sun4u sparc SUNW,Sun-Fire-V440
bash-2.05#
bash-2.05#
bash-2.05#
bash-2.05# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,700000/scsi@2/sd@0,0
       1. c1t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,700000/scsi@2/sd@2,0
       2. c1t3d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,700000/scsi@2/sd@3,0
       3. c2t0d0 <SUN-StorEdge3310-0325 cyl 49998 alt 2 hd 64 sec 64>
          /pci@1f,700000/scsi@2,1/sd@0,0
       4. c2t0d1 <SUN-StorEdge3310-0325 cyl 36188 alt 2 hd 64 sec 64>
          /pci@1f,700000/scsi@2,1/sd@0,1
       5. c2t0d2 <SUN-StorEdge3310-0325 cyl 54228 alt 2 hd 255 sec 127>
          /pci@1f,700000/scsi@2,1/sd@0,2
Specify disk (enter its number): 5
selecting c2t0d2
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 54228 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -     8      142.32MB    (9/0/0)         291465
  1       swap    wu       9 -    17      142.32MB    (9/0/0)         291465
  2     backup    wu       0 - 54227      837.41GB    (54228/0/0) 1756173780
  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        usr    wm      18 - 54227      837.13GB    (54210/0/0) 1755590850
  7 unassigned    wm       0                0         (0/0/0)              0

partition> ^D
bash-2.05#
bash-2.05#
bash-2.05#
bash-2.05# prtvtoc /dev/rdsk/c2t0d2s2
* /dev/rdsk/c2t0d2s2 partition map
*
* Dimensions:
*     512 bytes/sector
*     127 sectors/track
*     255 tracks/cylinder
*   32385 sectors/cylinder
*   54230 cylinders
*   54228 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00          0    291465    291464
       1      3    01     291465    291465    582929
       2      5    01          0 1756173780 1756173779
       6      4    00     582930 1755590850 1756173779
bash-2.05#
bash-2.05#
bash-2.05#
bash-2.05# newfs /dev/rdsk/c2t0d2s6
newfs: construct a new file system /dev/rdsk/c2t0d2s6: (y/n)? y
Minimum bytes per inode is 11992
With 32385 sectors per cylinder, minimum cylinders per group is 16
This requires the fragment size to be changed from 1024 to 8192
Please re-run mkfs with corrected parameters
bash-2.05#
bash-2.05#
bash-2.05#
bash-2.05# newfs -f 8192 /dev/rdsk/c2t0d2s6
newfs: construct a new file system /dev/rdsk/c2t0d2s6: (y/n)? y
Minimum bytes per inode is 11992
Unable to make filesystem fit with the given constraints
Please re-run mkfs with corrected parameters
bash-2.05#
bash-2.05#
bash-2.05#
bash-2.05# newfs -f 8192 -i 12288 /dev/rdsk/c2t0d2s6
newfs: construct a new file system /dev/rdsk/c2t0d2s6: (y/n)? y
Warning: cylinder groups must have a multiple of 16 cylinders with the given
         parameters
Rounded cgsize up to 256
Warning: insufficient space in super block for
rotational layout tables with nsect 127, ntrack 255, and nrpos 8.
Omitting tables - file system performance may be impaired.
Warning: 2 sector(s) in last cylinder unallocated
/dev/rdsk/c2t0d2s6:     1755590848 sectors in 54210 cylinders of 255 tracks, 127 sectors
        857222.1MB in 3389 cyl groups (16 c/g, 253.01MB/g, 21376 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 518320, 1036608, 1554896, 2073184, 2591472, 3109760, 3628048, 4146336,
 4664624,
Initializing cylinder groups:
...................................................................
super-block backups for last 10 cylinder groups at:
 1750869200, 1751387488, 1751905776, 1752424064, 1752942352, 1753460640,
 1753978928, 1754497216, 1755015504, 1755533792,
bash-2.05#
bash-2.05#
bash-2.05#
bash-2.05#

letztendlich bekomme ich ein FS - bin mir aber angesichts der Warnings nicht sicher ob meine newfs-Optionen nun der letzte Hit sind. Was meint Ihr?


Andreas

sonnenblen.de - Das unabhängige Sun User Forum

Probleme mit newfs und großer Disk
« am: 07. Februar 2007, 08:46:06 »

7ami7

  • Gast
Re: Probleme mit newfs und großer Disk
« Antwort #1 am: 07. Februar 2007, 09:30:30 »

Please re-run mkfs with corrected parameters


Offline Sonnenbrand

  • Sobl Junior
  • **
  • Beiträge: 84
Re: Probleme mit newfs und großer Disk
« Antwort #2 am: 07. Februar 2007, 09:42:26 »

Please re-run mkfs with corrected parameters


Schon klar - habe ich ja dann auch gemacht:

bash-2.05#
bash-2.05# newfs -f 8192 -i 12288 /dev/rdsk/c2t0d2s6
newfs: construct a new file system /dev/rdsk/c2t0d2s6: (y/n)? y
Warning: cylinder groups must have a multiple of 16 cylinders with the given
         parameters
Rounded cgsize up to 256
Warning: insufficient space in super block for
rotational layout tables with nsect 127, ntrack 255, and nrpos 8.
Omitting tables - file system performance may be impaired.
Warning: 2 sector(s) in last cylinder unallocated
/dev/rdsk/c2t0d2s6:     1755590848 sectors in 54210 cylinders of 255 tracks, 127 sectors
        857222.1MB in 3389 cyl groups (16 c/g, 253.01MB/g, 21376 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 518320, 1036608, 1554896, 2073184, 2591472, 3109760, 3628048, 4146336,
 4664624,
Initializing cylinder groups:
...................................................................
super-block backups for last 10 cylinder groups at:
 1750869200, 1751387488, 1751905776, 1752424064, 1752942352, 1753460640,
 1753978928, 1754497216, 1755015504, 1755533792,
bash-2.05#


Aber die Warnings gefallen mir irgendwie nicht.

Andreas

7ami7

  • Gast
Re: Probleme mit newfs und großer Disk
« Antwort #3 am: 07. Februar 2007, 09:49:17 »
Sieht wie ein newfs und nicht wie ein mkfs aus.


bash-2.05# newfs -f 8192 -i 12288 /dev/rdsk/c2t0d2s6


Offline meik

  • Sobl Bachelor
  • ***
  • Beiträge: 187
Re: Probleme mit newfs und großer Disk
« Antwort #4 am: 07. Februar 2007, 09:58:49 »
letztendlich bekomme ich ein FS - bin mir aber angesichts der Warnings nicht sicher ob meine newfs-Optionen nun der letzte Hit sind. Was meint Ihr?

Das klingt jetzt wie die Standardantwort vom Sun-Support, aber dein Kernel scheint schon etwas älter zu sein: mal ein wenig auf Sunsolve stöbern und ggf. einen aktuelleren Patch-Stand einspielen. Ich habe dunkel in Erinnerung, dass es mit Dateisystemen im Bereich 1TB Probleme gab.

Offline DukeNuke2

  • Sobl Guru
  • *****
  • Beiträge: 571
  • Soulman
    • Wo die Sonne lacht
Re: Probleme mit newfs und großer Disk
« Antwort #5 am: 07. Februar 2007, 10:32:06 »
extra für grosse filesysteme wurde ein "neues" ufs filesystem eingeführt. ich glaube aber das dieses nur ab solaris10 verfügbar ist. keine ahnung ob man solaris9 mit patchen auch um das neue ufs erweitern kann.
unter solaris10 ruft man das ganze dann mit "newfs -t ....." auf. ansonsten alles wie gehabt.

Offline Sonnenbrand

  • Sobl Junior
  • **
  • Beiträge: 84
Re: Probleme mit newfs und großer Disk
« Antwort #6 am: 21. Februar 2007, 19:31:55 »
Zwischenstand:

Habe mittlerweile bei SUN diesbez. ein Ticket geöffnet (wozu zahlt meine Kundschaft eigendlich GOLD-Support für die Kiste :-).

Ergebnis: erst mal aktuelle Patche rauf packen... naja - irgendwie klingt das nach Standardantwort.

Auf jeden Fall habe ich nun am nächsten IT-Wartungsfenster eine Aktivität :-/ ...


Andreas

Offline Jonny

  • Global Moderator
  • Sobl Guru
  • *****
  • Beiträge: 1063
Re: Probleme mit newfs und großer Disk
« Antwort #7 am: 21. Februar 2007, 22:53:42 »
Hi Sonnenbrand,

im wöchentlichen Patch-Club Report war in letzer Zeit öfter mal von UFS für alle Solaris Versionen zu lesen.
So gesehen finde ich die Antwort des Support gar nicht so abwegig, obwohl ich mich nicht erinnern kann ob
die UFS-Patches was mit deinem Problem zu tun hatten.
Schaun ma mal, ich bin gespannt auf deinen Bericht.

Gruß
Jonny
solaris is like a wigwam :
no windows, no gates and a apache inside !