| 30 | == Expand Disk Space for IG Raw PC === |
| 31 | |
| 32 | InstaGENI Raw PCs have 1 TB drives, but by default the disk space allocation is for 16 GBytes, you must test steps to allocate more disk space, as the RAN kernel installation requires ~ 13GB of disk space. |
| 33 | |
| 34 | First check to see how available disk resources: |
| 35 | {{{ |
| 36 | lnevers@ltebase:~$ sudo fdisk -l /dev/sda* |
| 37 | |
| 38 | Disk /dev/sda: 1000.2 GB, 1000171331584 bytes |
| 39 | 255 heads, 63 sectors/track, 121597 cylinders, total 1953459632 sectors |
| 40 | Units = sectors of 1 * 512 = 512 bytes |
| 41 | Sector size (logical/physical): 512 bytes / 4096 bytes |
| 42 | I/O size (minimum/optimal): 4096 bytes / 4096 bytes |
| 43 | Disk identifier: 0x90909090 |
| 44 | |
| 45 | Device Boot Start End Blocks Id System |
| 46 | /dev/sda1 * 2048 33556479 16777216 83 Linux |
| 47 | /dev/sda2 33556480 39847935 3145728 0 Empty |
| 48 | /dev/sda3 39847936 46139391 3145728 82 Linux swap / Solaris |
| 49 | /dev/sda4 46139392 1953455039 953657824 0 Empty |
| 50 | |
| 51 | Disk /dev/sda1: 17.2 GB, 17179869184 bytes |
| 52 | 255 heads, 63 sectors/track, 2088 cylinders, total 33554432 sectors |
| 53 | Units = sectors of 1 * 512 = 512 bytes |
| 54 | Sector size (logical/physical): 512 bytes / 4096 bytes |
| 55 | I/O size (minimum/optimal): 4096 bytes / 4096 bytes |
| 56 | Disk identifier: 0x00000000 |
| 57 | |
| 58 | Device Boot Start End Blocks Id System |
| 59 | |
| 60 | Disk /dev/sda2: 3221 MB, 3221225472 bytes |
| 61 | 255 heads, 63 sectors/track, 391 cylinders, total 6291456 sectors |
| 62 | Units = sectors of 1 * 512 = 512 bytes |
| 63 | Sector size (logical/physical): 512 bytes / 4096 bytes |
| 64 | I/O size (minimum/optimal): 4096 bytes / 4096 bytes |
| 65 | Disk identifier: 0x00000000 |
| 66 | |
| 67 | Disk /dev/sda2 doesn't contain a valid partition table |
| 68 | |
| 69 | Disk /dev/sda3: 3221 MB, 3221225472 bytes |
| 70 | 255 heads, 63 sectors/track, 391 cylinders, total 6291456 sectors |
| 71 | Units = sectors of 1 * 512 = 512 bytes |
| 72 | Sector size (logical/physical): 512 bytes / 4096 bytes |
| 73 | I/O size (minimum/optimal): 4096 bytes / 4096 bytes |
| 74 | Disk identifier: 0x00000000 |
| 75 | |
| 76 | Disk /dev/sda3 doesn't contain a valid partition table |
| 77 | |
| 78 | Disk /dev/sda4: 976.5 GB, 976545611776 bytes |
| 79 | 255 heads, 63 sectors/track, 118724 cylinders, total 1907315648 sectors |
| 80 | Units = sectors of 1 * 512 = 512 bytes |
| 81 | Sector size (logical/physical): 512 bytes / 4096 bytes |
| 82 | I/O size (minimum/optimal): 4096 bytes / 4096 bytes |
| 83 | Disk identifier: 0x00000000 |
| 84 | |
| 85 | Disk /dev/sda4 doesn't contain a valid partition table |
| 86 | lnevers@ltebase:~$ |
| 87 | }}} |
| 88 | |
| 89 | The above shows that ''/dev/dsa4'' is space available, we will create a partition on /dev/sda4, note that your disk may differ. |
| 90 | {{{ |
| 91 | lnevers@ltebase:~$ sudo mkfs -t ext3 /dev/sda4 |
| 92 | mke2fs 1.42.9 (4-Feb-2014) |
| 93 | Filesystem label= |
| 94 | OS type: Linux |
| 95 | Block size=4096 (log=2) |
| 96 | Fragment size=4096 (log=2) |
| 97 | Stride=0 blocks, Stripe width=0 blocks |
| 98 | 59604992 inodes, 238414456 blocks |
| 99 | 11920722 blocks (5.00%) reserved for the super user |
| 100 | First data block=0 |
| 101 | Maximum filesystem blocks=4294967296 |
| 102 | 7276 block groups |
| 103 | 32768 blocks per group, 32768 fragments per group |
| 104 | 8192 inodes per group |
| 105 | Superblock backups stored on blocks: |
| 106 | 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, |
| 107 | 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, |
| 108 | 102400000, 214990848 |
| 109 | |
| 110 | Allocating group tables: done |
| 111 | Writing inode tables: done |
| 112 | Creating journal (32768 blocks): done |
| 113 | Writing superblocks and filesystem accounting information: done |
| 114 | |
| 115 | lnevers@ltebase:~$ |
| 116 | }}} |
| 117 | |
| 118 | Now we can mount the disk partition to use for the installation: |
| 119 | {{{ |
| 120 | lnevers@ltebase:~$ sudo mkdir /space |
| 121 | lnevers@ltebase:~$ sudo mount /dev/sda4 /space |
| 122 | lnevers@ltebase:~$ df -kh |
| 123 | Filesystem Size Used Avail Use% Mounted on |
| 124 | /dev/sda1 16G 1.8G 14G 12% / |
| 125 | none 4.0K 0 4.0K 0% /sys/fs/cgroup |
| 126 | udev 24G 4.0K 24G 1% /dev |
| 127 | tmpfs 4.8G 860K 4.8G 1% /run |
| 128 | none 5.0M 0 5.0M 0% /run/lock |
| 129 | none 24G 0 24G 0% /run/shm |
| 130 | none 100M 0 100M 0% /run/user |
| 131 | ops.instageni.gpolab.bbn.com:/q/proj/ch-geni-net 119G 102G 8.0G 93% /proj/ch-geni-net |
| 132 | /dev/sda4 896G 72M 850G 1% /space |
| 133 | lnevers@ltebase:~$ |
| 134 | |
| 135 | }}} |
| 136 | |
| 137 | Note the kernel installation steps below will download files in the "/space" directory. |
| 138 | |