diff options
| author | Don Delmar Davis <don@suspectdevices.com> | 2021-01-23 20:01:18 -0800 |
|---|---|---|
| committer | Don Delmar Davis <don@suspectdevices.com> | 2021-01-23 20:01:18 -0800 |
| commit | df0551475f432d5cc1d3ae94a78b37ac71533246 (patch) | |
| tree | a0934b8a199cd4b40ee2b63625111009c80e2afd /README.md | |
| parent | 59d4df856a702f0fc9d4a364d9edec80a6f90f3d (diff) | |
...
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 39 |
1 files changed, 33 insertions, 6 deletions
@@ -29,11 +29,11 @@ root@joey:/# systemctl set-default multi-user.target ``` -Then I added the mirror partitions. I didn't bother with the boot partitions on the mirror disk since they didn't work anyway. +Then I added the mirror partitions. I didn't bother with the boot partitions on the mirror disk since they didn't work anyway. And I won't bother documenting it because..... -### at which point I realized I needed to make space for the containers. +### .....FUUUUUUU...... at that point I realized I needed to make space for the containers. Since the installer only accepted a disk name for the zfs install it took the entire disk. Fortunately we are running zfs. -Booting from our minimal install we can break the mirrors we just created and then use the extra disks to recreate a smaller boot disk. (Note: root and boot pools are on sde and sdc). +Booting from our minimal install we can break the mirrors we just created and then use the extra disks to recreate a smaller boot disk. (Note: root and boot pools were on sde and sdc at this point). #### shrinking a zfs pool ``` zpool detach ata-TEAML5Lite3D240G_AB20190109A0101064-part6 @@ -55,7 +55,7 @@ zpool list zpool export oldrpool ``` -##### attach mirror to boot pool. +##### move boot pool to second disk. ``` ls -ls /dev/disk/by-partuuid/|grep sde6 zpool attach bpool ata-TEAML5Lite3D240G_AB20190109A0101064-part6 @@ -64,19 +64,46 @@ zpool detach bpool d3bff208-06 update-grub fdisk -l ``` -##### copy partitions +##### copy partitions from edited disk ``` sgdisk -p /dev/sde sgdisk -R/dev/sdc /dev/sde sgdisk -G /dev/sdc +partprobe +``` +##### remirror to smaller partition +``` +ls -ls /dev/disk/by-partuuid/|grep sdc6 +zpool attach bpool ata-TEAML5Lite3D240G_AB20190109A0101064-part6 ata-Crucial_CT240M500SSD1_132909461FE4-part6 +ls -ls /dev/disk/by-partuuid/|grep sdc7 +zpool attach rpool ata-TEAML5Lite3D240G_AB20190109A0101064-part7 ata-Crucial_CT240M500SSD1_132909461FE4-part7 -o ashift=9 +zpool export rpool +zpool import -R/ rpool +update-grub +reboot + ``` -##### ### Disk Layout. * SSDs + +id | size | purpose +---|---|--- +ata-Crucial_CT240M500SSD1_132909461FE4|240|bpool/rpool/devil +ata-TEAML5Lite3D240G_AB20190109A0101064|240|bpool/rpool/devil +ata-Corsair_Force_GT_1227792800001502028A|120|grub/maintainence disk + + * Archive disks +id | size | purpose +---|---|--- +ata-Hitachi_HDS5C3030ALA630_MJ1311YNG7RM5A|2.7T|/filebox backup +scsi-3600508b1001c407672486f627337a3e9|1.8T|.. +scsi-3600508b1001cca9043287e57e5adae22|1.8T|.. +scsi-3600508b1001cfe22e99aade7378fb6c1|2.7T|.. + ### Network Configuration [etc/netplan/50-cloud-init.yaml](etc/netplan/50-cloud-init.yaml) |
