Current-Users archive

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

Re: SOLVED (Re: How to create a large filesystem?)



On Sun, 22 Feb 2009, Martti Kuparinen wrote:
Here's a summary what I did in case someone else has the same problems. This really should be documented in the NetBSD Guide...

Doesn't quite work for me with a fresh NetBSD/i386 5.0_RC2 installation

### After fresh NetBSD/amd64 5.0 installation
# dmesg | grep sd0
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

I presume you get this message throughout on every operation?

This was a completely clean disk, so there was no existing GPT table. Hence I started at this point:

# gpt show sd0
       start         size  index  contents
           0            1         PMBR
           1  11714691071

### Create a new wedge
# gpt create sd0
# gpt show sd0
       start         size  index  contents
           0            1         PMBR
           1            1         Pri GPT header
           2           32         Pri GPT table
          34  11714691005
 11714691039           32         Sec GPT table
 11714691071            1         Sec GPT header
# gpt add -t ufs -s 11714691005 sd0

I presume you got a message suggesting you ran:
dkctl rsd0d addwedge dk<N> 34 11714691005 <type>
(why doesn't it pass through the type from the -t option?)

The command didn't work for me (no such file or directory) until I put /dev/ in front of the device or used the plain device name like below:

# dkctl sd0 addwedge dk0 34 11714691005 ufs

i.e. the informational message is misleading

# dkctl dk0 getwedgeinfo
dk0 at sd0: dk0
dk0: 11714691005 blocks at 34, type: ufs
# gpt show sd0
       start         size  index  contents
           0            1         PMBR
           1            1         Pri GPT header
           2           32         Pri GPT table
          34  11714691005      1  GPT part - NetBSD UFS/UFS2
 11714691039           32         Sec GPT table
 11714691071            1         Sec GPT header

Yes, that all looks the same.

## Create new filesystem and mount it
# newfs -O2 /dev/rdk0

newfs: /dev/rdk0 partition type is not '4.2BSD'.

What was needed was a reboot before doing the newfs.

--
Stephen



Home | Main Index | Thread Index | Old Index