aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Delmar Davis <don@suspectdevices.com>2021-01-23 20:01:18 -0800
committerDon Delmar Davis <don@suspectdevices.com>2021-01-23 20:01:18 -0800
commitdf0551475f432d5cc1d3ae94a78b37ac71533246 (patch)
treea0934b8a199cd4b40ee2b63625111009c80e2afd
parent59d4df856a702f0fc9d4a364d9edec80a6f90f3d (diff)
...
-rw-r--r--README.md39
-rw-r--r--boot-disk-bash-history25
2 files changed, 37 insertions, 27 deletions
diff --git a/README.md b/README.md
index f25a30f..f9e23ae 100644
--- a/README.md
+++ b/README.md
@@ -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)
diff --git a/boot-disk-bash-history b/boot-disk-bash-history
index fdf0bcc..b604952 100644
--- a/boot-disk-bash-history
+++ b/boot-disk-bash-history
@@ -83,30 +83,13 @@ fdisk -l
sgdisk -p /dev/sde
sgdisk -R/dev/sdc /dev/sde
sgdisk -G /dev/sdc
-zpool status
-zpool export oldrpool
-zpool status
-ls -ls /dev/disk/by-partuuid/|grep sdc6
-zpool attach bpool a78a37d3-9208-4642-8c3e-669fe656fce9 27d620c0-09a7-41e2-9299-75533c6dff2f
-zpool status
-ls -ls /dev/disk/by-partuuid/|grep sdc7
-ls -ls /dev/disk/by-partuuid/|grep sdc
-fdisk -L
-fdisk -l
partprobe
+
+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 status rpool
-zpool status rpool -L
-zpool attach rpool b8402382-6255-4147-8b94-a15620115682 57547a25-5c28-4b96-a0d5-8b277ae31a43
-zpool attach rpool b8402382-6255-4147-8b94-a15620115682 57547a25-5c28-4b96-a0d5-8b277ae31a43 -o ashift=9
-zpool status
-zpool list
-zpool set
-zpool set altroot=/ rpool
+zpool attach rpool ata-TEAML5Lite3D240G_AB20190109A0101064-part7 ata-Crucial_CT240M500SSD1_132909461FE4-part7 -o ashift=9
zpool export rpool
-zpool status
zpool import -R/ rpool
-zpool status
-zpool list
update-grub
reboot