Current-Users archive

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

Re: How to create a large filesystem?



On Sat, 21 Feb 2009, Simon Burge wrote:
Martti Kuparinen wrote:

How can I create (preferably only one large 5+ TB) filesystem on this disk?

NetBSD 5.0_RC2 (GENERIC) #1: Fri Feb 20 04:49:20 EET 2009
...
sd0 at scsibus0 target 0 lun 0: <DELL, PERC 5/i, 1.03> disk fixed
sd0: fabricating a geometry
sd0: 5586 GB, 5720064 cyl, 64 head, 32 sec, 512 bytes/sect x 11714691072
sectors
sd0: fabricating a geometry
sd0: mbr partition exceeds disk size
sd0: GPT GUID: 95027669-f71d-4a6f-9312-a1c4e5746c7e
dk0 at sd0: 4d4bdea5-b403-4de4-bf43-891756465be0

# disklabel sd0
a: 3124756480         0     4.2BSD      0     0    0
d: 3124756480         0     unused      0     0    0

I don't have access to the systems anymore, but you should be able to
newfs the raw device (rsd0d) directly.  You may have to use a -s param
to force the correct size.  Something like:

        newfs -s 3124756480 /dev/rsd0d

might work.  The largest FS I used this with was about 27TB.  I never
did get to play with wedges though...

You'll probably need -F too to bypass the disklabel check for 4.2BSD. I've used this method a lot on 4.0 and upwards with success (though there is always the possibility, especially if a RAID card presents the volumes as ld, that the drivers might not support 64-bit disk addresses correctly. The mailing lists will archive my issues with aac vs ld. I fixed that problem, but there may be similar gremlins in other drivers).

--
Stephen


Home | Main Index | Thread Index | Old Index