aboutsummaryrefslogtreecommitdiff
path: root/boot-disk-bash-history
diff options
context:
space:
mode:
Diffstat (limited to 'boot-disk-bash-history')
-rw-r--r--boot-disk-bash-history35
1 files changed, 14 insertions, 21 deletions
diff --git a/boot-disk-bash-history b/boot-disk-bash-history
index efa5cca..fdf0bcc 100644
--- a/boot-disk-bash-history
+++ b/boot-disk-bash-history
@@ -48,38 +48,30 @@ zpool import rpool
zpool list -L
zpool status -L
fdisk -l
-gparted /dev/sde
-fdisk /dev/sde
-fdisk /dev/sde
-ls -lsa /dev/disk/by-partuuid/|grep sde
-zpool create nrpool b8402382-6255-4147-8b94-a15620115682
-zfs list
-zpool
-zpool list
+zpool detach ata-TEAML5Lite3D240G_AB20190109A0101064-part6
zpool export rpool
zpool import rpool oldrpool
+
mkdir /oldroot /newroot
-zpool list
-zpool import -R/oldroot oldrpool
+fdisk /dev/sde
+.... delete partition six and split it into 2 new partitions ....
+ls -lsa /dev/disk/by-id/|grep sde7
+zpool create rpool ata-TEAML5Lite3D240G_AB20190109A0101064-part7
zpool export oldrpool
zpool import -R/oldroot oldrpool
-zpool import -R/newroot nrpool rpool
-zpool export nrpool
-zpool list
-zpool import
-zpool import -R/newroot 4103281169370239104 rpool
-update-grub
+zpool export rpool
+zpool import -R/newroot rpool
zfs snapshot -r oldrpool@for_copy
zfs send -R oldrpool@for_copy | zfs recv -F rpool
zpool list
-zpool import
-zpool status -L
-zpool import sde6
-zpool import /dev/sde6
+
+# attach mirror to boot pool.
ls -ls /dev/disk/by-partuuid/|grep sde6
-zpool attach bpool d3bff208-06 a78a37d3-9208-4642-8c3e-669fe656fce9
+zpool attach bpool ata-TEAML5Lite3D240G_AB20190109A0101064-part6
zpool status bpool
+ata-TEAML5Lite3D240G_AB20190109A0101064-part7
+#
zpool detach bpool d3bff208-06
zpool status bpool
zpool status
@@ -87,6 +79,7 @@ zpool status rpool
update-grub
fdisk -l
+# copy partitions
sgdisk -p /dev/sde
sgdisk -R/dev/sdc /dev/sde
sgdisk -G /dev/sdc