29 | | The users image contains two disk images. One is for the main operating system and the other is for NFS exported filesystems. These are kept separate in order to make it easy for sites to deploy a bigger NFS export filesystem. You may want to replace the second image with a larger image. |
| 29 | The users image contains two disk images. One is for the main operating system and the other is for NFS exported filesystems. These are kept separate in order to make it easy for sites to deploy a bigger NFS export filesystem. You may want to replace the second image with a larger image. Here are the steps used to setup the original /big disk (which is 80GB). Make sure to pay attention to the device you are setting up. If you are adding a third disk to replace the existing big, you will probably be dealing with 'da2': |
| 30 | |
| 31 | {{{ |
| 32 | root@users:/root # dmesg | tail |
| 33 | da1 at mpt0 bus 0 scbus2 target 1 lun 0 |
| 34 | da1: <VMware Virtual disk 1.0> Fixed Direct Access SCSI-2 device |
| 35 | da1: 320.000MB/s transfers (160.000MHz DT, offset 127, 16bit) |
| 36 | da1: Command Queueing enabled |
| 37 | da1: 81920MB (167772160 512 byte sectors: 255H 63S/T 10443C) |
| 38 | root@users:/root # gpart create -s gpt /dev/da1 |
| 39 | da1 created |
| 40 | root@users:/root # gpart add -t freebsd-ufs da1 |
| 41 | da1p1 added |
| 42 | root@users:/root # tunefs -j enable /dev/da1p1 |
| 43 | Using inode 4 in cg 0 for 33554432 byte journal |
| 44 | tunefs: soft updates journaling set |
| 45 | root@users:/root # vim /etc/fstab |
| 46 | root@users:/root # mount /big |
| 47 | root@users:/root # df -h |
| 48 | Filesystem Size Used Avail Capacity Mounted on |
| 49 | /dev/da0p2 73G 11G 56G 16% / |
| 50 | devfs 1.0k 1.0k 0B 100% /dev |
| 51 | /dev/da1p1 77G 32M 71G 0% /big |
| 52 | root@users:/root # |
| 53 | }}} |