Changes between Version 7 and Version 8 of ssd
- Timestamp:
- Sep 26, 2016, 2:42:47 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ssd
v7 v8 169 169 }}} 170 170 171 CAREFUL! Don't assume the new device is sdb. The examples below are based on the device appearing as sdb, but if it appears differently, you can create some bad news with these commands. 172 171 173 Create a single partition: 172 174 … … 200 202 }}} 201 203 202 Create a `fstrim` cron job (TBD on jacobs, needs puppet change).203 204 204 ==== Replacing MySQL partition ==== 205 205 … … 218 218 }}} 219 219 220 Edit /etc/fstab, change the line for mounting /var/lib/mysql to match /dev/sdb1 instead of the existing logical volume.220 Edit /etc/fstab, change the line for mounting `/var/lib/mysql`. It currently starts something like `/dev/mapper/vg_jacobs0-var+lib+mysql.` Assuming your ssd card appeared as /dev/sdb, find the UUID of the partition with `blkid /dev/sdb1` and then replace with `UUID=?` (replace the question mark with the actuall UUID number).. 221 221 222 222 Mount the old logical volume on /mnt: