Current-Users archive

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

Re: How to create a large filesystem?



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
> # disklabel dk0
> disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device
> 
> # newfs /dev/sd0a
> newfs: /dev/sd0a: open for read: Device busy
> # newfs /dev/sd0d
> newfs: /dev/sd0d: open for write: Device busy
> # newfs /dev/dk0
> newfs: /dev/dk0: open for write: Device busy

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...

Cheers,
Simon.


Home | Main Index | Thread Index | Old Index