Current-Users archive

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

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



Here's a summary what I did in case someone else has the same problems. This really should be documented in the NetBSD Guide...

Martti



### 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
sd0: GPT GUID: 95027669-f71d-4a6f-9312-a1c4e5746c7e
dk0 at sd0: 4d4bdea5-b403-4de4-bf43-891756465be0

### Display and remove the existing setup
# dkctl dk0 getwedgeinfo
dk0 at sd0: 4d4bdea5-b403-4de4-bf43-891756465be0
dk0: 11714691005 blocks at 34, type:
# 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 - Linux/Windows
  11714691039           32         Sec GPT table
  11714691071            1         Sec GPT header
# dkctl sd0 delwedge dk0
# gpt destroy sd0
# 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
# dkctl sd0 addwedge dk0 34 11714691005 ufs
# 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

## Create new filesystem and mount it
# newfs -O2 /dev/rdk0
# mount /dev/dk0 /mnt
# df -h /mnt
Filesystem        Size       Used      Avail %Cap Mounted on
/dev/dk0          5.3T       2.0K       5.0T   0% /mnt



Home | Main Index | Thread Index | Old Index