Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Maximum size of FFS partition with NetBSD/i386



I'm not sure all of my changes were pulled up to the netbsd-5-0 branch. Could you try a daily build of netbsd-5 instead?

This boot file behaved the same as 5.0.1's

ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-5-0/200908060000Z/i386/installation/cdrom/boot.iso

but this one worked

ftp://ftp.netbsd.org/pub/NetBSD-daily/HEAD/200908060000Z/i386/installation/cdrom/boot.iso

as shown by the following output from sysinst:


 This disk matches the following BIOS disks:

    BIOS # cylinders heads sectors total sectors   GB
    ------ --------- ----- ------- ------------- ----
 0:   0x80      1024   255      63    3907046144 2000
 1:   0x81      1024   255      63    3907046144 2000





                        lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
                        x>a: Use one of these disks   x
                        x b: Set the geometry by hand x
                        mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj




 You can now change the sizes for the system partitions.  The default is to
 allocate all the space to the root file system, however you may wish to have
 separate /usr (additional system files), /var (log files etc) or /home
 (users' home directories).

 Free space will be added to the partition marked with a '+'.

        MB         Cylinders   Sectors   Filesystem
   >  1121(1907219)       143   2297295 + /
       517                66   1060290   swap
         0                 0         0   tmp (mfs)
         0                 0         0   /usr
         0                 0         0   /var
         0                 0         0   /home
    Add a user defined partition
    Change input units (sectors/cylinders/MB)
    Accept partition sizes.  Free space 1906097 MB, 12 free partitions.


changed swap size to 1024:


You can now change the sizes for the system partitions.  The default is to
 allocate all the space to the root file system, however you may wish to have
 separate /usr (additional system files), /var (log files etc) or /home
 (users' home directories).

 Free space will be added to the partition marked with a '+'.

        MB         Cylinders   Sectors   Filesystem
      1121(1906709)       143   2297295 + /
      1027               131   2104515   swap
         0                 0         0   tmp (mfs)
         0                 0         0   /usr
         0                 0         0   /var
         0                 0         0   /home
    Add a user defined partition
    Change input units (sectors/cylinders/MB)
   >Accept partition sizes.  Free space 1905588 MB, 12 free partitions.


We now have your BSD-disklabel partitions as:
 This is your last chance to change them.

    Start  MB   End  MB  Size  MB FS type    Newfs Mount Mount point
    --------- --------- --------- ---------- ----- ----- -----------
 a:         0   1906705   1906706 FFSv2      Yes   Yes   /
 b:   1906706   1907736      1030 swap
 c:         0   1907736   1907737 NetBSD partition
 d:         0   1907736   1907737 Whole disk
 e:         0         0         0 unused
 f: Show all unused partitions
 g: Change input units (sectors/cylinders/MB)
x: Partition sizes ok


     Status: Running
    Command: /sbin/newfs -V2 -O 2 -b 16384 -f 2048 /dev/rld0a

--------------------------------------------------------------------------------
/dev/rld0a: 1906706.8MB (3904935612 sectors) block size 16384, fragment size 204
8
using 10308 cylinder groups of 184.98MB, 11839 blks, 22976 inodes.
....

I aborted the installation at this point and looked at the partition which had been created:

# fdisk ld0
Disk: /dev/rld0d
NetBSD disklabel disk geometry:
cylinders: 243202, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 3907046144

BIOS disk geometry:
cylinders: 1024, heads: 96, sectors/track: 29 (2784 sectors/cylinder)
total sectors: 3907046144

Partition table:
0: NetBSD (sysid 169)
    start 29, size 3907046115 (1907737 MB, Cyls 0-1403393/1/3), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
First active partition: 0
# disklabel ld0
# /dev/rld0d:
type: unknown
disk: mydisk
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 243202
total sectors: 3907046144
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a: 3904935615 29 4.2BSD 2048 16384 0 # (Cyl. 0*- 243071*
)
b: 2110500 3904935644 swap # (Cyl. 243071*- 243202*
)
c: 3907046115 29 unused 0 0 # (Cyl. 0*- 243202*
)
d: 3907046144 0 unused 0 0 # (Cyl. 0 - 243202*
)
# mount /dev/ld0a /mnt
#
# df -h
Filesystem        Size       Used      Avail %Cap Mounted on
root_device        26M        26M         0B 100% /
tmpfs             1.4M       396K       1.0M  27% /dev
tmpfs             476M        16K       476M   0% /tmp
tmpfs             476M       4.0K       476M   0% /etc
/dev/ld0a         1.8T        64M       1.7T   0% /mnt
#


Things didn't go so well when I decided to combine the two 3ware RAID0s into a ~ 4 TB RAID0 using NetBSD's RAIDFRAME though...

First I created a RAID partition on ld0 and ld1 using fdisk and disklabel.

# disklabel ld0
# /dev/rld0d:
type: ld
disk: unknown
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 243202
total sectors: 3907046144
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a: 3907046081 63 RAID # (Cyl. 0*- 243202*
)
c: 3907046081 63 unused 0 0 # (Cyl. 0*- 243202*
)
d: 3907046144 0 unused 0 0 # (Cyl. 0 - 243202*
)
#
# disklabel ld1
# /dev/rld1d:
type: ld
disk: unknown
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 243202
total sectors: 3907046144
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a: 3907046081 63 RAID # (Cyl. 0*- 243202*
)
c: 3907046081 63 unused 0 0 # (Cyl. 0*- 243202*
)
d: 3907046144 0 unused 0 0 # (Cyl. 0 - 243202*
)
#

# cat raid0.conf
START array
# numRow numCol numSpare
1 2 0

START disks
/dev/ld0a
/dev/ld1a

START layout
# sectPerSU SUsPerParityUnit SUsPerReconUnit RAID_level_0
64 1 1 0

START queue
fifo 100
#

# raidctl -C raid0.conf raid0
raid0: Component /dev/ld0a being configured at col: 0
         Column: 0 Num Columns: 0
         Version: 0 Serial Number: 0 Mod Counter: 0
         Clean: No Status: 0
Number of columns do not match for: /dev/ld0a
/dev/ld0a is not clean!
raid0: Component /dev/ld1a being configured at col: 1
         Column: 0 Num Columns: 0
         Version: 0 Serial Number: 0 Mod Counter: 0
         Clean: No Status: 0
Column out of alignment for: /dev/ld1a
Number of columns do not match for: /dev/ld1a
/dev/ld1a is not clean!
raid0: There were fatal errors
raid0: Fatal errors being ignored.
raid0: RAID Level 0
raid0: Components: /dev/ld0a /dev/ld1a
raid0: Total Sectors: 7814092032 (3815474 MB)
# raidctl -I 2009080701 raid0
raid0: WARNING: raid0: total sector size in disklabel (3519124736) != the size o
f raid (7814092032)
#
#
# raidctl -s raid0
raid0: WARNING: raid0: total sector size in disklabel (3519124736) != the size o
f raid (7814092032)
Components:
           /dev/ld0a: optimal
           /dev/ld1a: optimal
No spares.
Component label for /dev/ld0a:
   Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 2009080701, Mod Counter: 5
   Clean: No, Status: 0
   sectPerSU: 64, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 3907046016
   RAID Level: 0
   Autoconfig: No
   Root partition: No
   Last configured as: raid0
Component label for /dev/ld1a:
   Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 2009080701, Mod Counter: 5
   Clean: No, Status: 0
   sectPerSU: 64, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 3907046016
   RAID Level: 0
   Autoconfig: No
   Root partition: No
   Last configured as: raid0
Parity status: DIRTY
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
#
# raidctl -S raid0
raid0: WARNING: raid0: total sector size in disklabel (3519124736) != the size o
f raid (7814092032)
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
#
#
# disklabel -iI raid0
raid0: WARNING: raid0: total sector size in disklabel (3519124736) != the size o
f raid (7814092032)
partition> P
4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a: 3519124736 0 4.2BSD 0 0 0 # (Cyl. 0 - 3436645
*)
d: 3519124736 0 unused 0 0 # (Cyl. 0 - 3436645
*)
partition> a
Filesystem type [?] [4.2BSD]:
Start offset ('x' to start after partition 'x') [0c, 0s, 0M]:
Partition size ('$' for all remaining) [3.43665e+06c, 3519124736s, 1.71832e+06M]
: $
partition> P
4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a: 3519124736 0 4.2BSD 0 0 0 # (Cyl. 0 - 3436645
*)
d: 3519124736 0 unused 0 0 # (Cyl. 0 - 3436645
*)
partition> W
Label disk [n]? y
Label written
partition> Q
#
# disklabel raid0
raid0: WARNING: raid0: total sector size in disklabel (3519124736) != the size o
f raid (7814092032)
# /dev/rraid0d:
type: RAID
disk: raid
label: fictitious
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 8
sectors/cylinder: 1024
cylinders: 7630949
total sectors: 3519124736
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a: 3519124736 0 4.2BSD 0 0 0 # (Cyl. 0 - 3436645
*)
d: 3519124736 0 unused 0 0 # (Cyl. 0 - 3436645
*)
#

# newfs /dev/rraid0a

I couldn't capture newfs's output because it scrolled off the top of the terminal emulator's screen buffer (next time I'll use -V2) but it seemed to work. However, the size of the RAID0 partition was less than half what it should have been.

# mount /dev/raid0a /mnt
raid0: WARNING: raid0: total sector size in disklabel (3519124736) != the size o
f raid (7814092032)
raid0: WARNING: raid0: total sector size in disklabel (3519124736) != the size o
f raid (7814092032)
# df -h
Filesystem        Size       Used      Avail %Cap Mounted on
root_device        26M        26M         0B 100% /
tmpfs             1.4M       396K       1.0M  27% /dev
tmpfs             475M        16K       475M   0% /tmp
tmpfs             475M       4.0K       475M   0% /etc
/dev/raid0a       1.6T       2.0K       1.5T   0% /mnt
#



Home | Main Index | Thread Index | Old Index