diff options
author | Sven Göthel <[email protected]> | 2024-11-27 08:41:05 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-11-27 08:41:05 +0100 |
commit | a48504822e9d646c5f2e21b6a11ec17c0be820da (patch) | |
tree | 22facebaae0707d659498a12562c1f247fd3f4ea /setup/zfs-zap-disk.txt | |
parent | c46f18fa4ba9ad10e511e95710b4c96250520933 (diff) |
Update `rescue` and `setup` folder
`setup` folder contains more examples/actions for setup and re-pool'ing
as well as utilizing uefi.
Diffstat (limited to 'setup/zfs-zap-disk.txt')
-rw-r--r-- | setup/zfs-zap-disk.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/setup/zfs-zap-disk.txt b/setup/zfs-zap-disk.txt new file mode 100644 index 0000000..72185e8 --- /dev/null +++ b/setup/zfs-zap-disk.txt @@ -0,0 +1,27 @@ +#! /bin/sh + +strace -e pread64 zdb -l /dev/sdl >/dev/null +pread64(5, "\0\1\0\0\0\0\0\0\1\0\0\0000\0\0\0\7\0\0\0\1\0\0\0\23\0\0\0doze"..., 13920, 0) = 13920 +pread64(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 262144, 0) = 262144 +pread64(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 262144, 262144) = 262144 +pread64(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 262144, 16000900136960) = 262144 +pread64(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 262144, 16000900399104) = 262144 ++++ exited with 2 +++ +[root@fs01 etc]# for f in 0 262144 16000900136960 16000900399104; do dd if=/dev/zero of=/dev/sdl bs=1 seek=$f count=262144; done +[root@fs01 etc]# for f in 0 262144 4000785367040 4000785629184; do dd if=/dev/zero of=/dev/disk/by-id/ata-WDC_WD40EFZX-68AWUN0_WD-WX92DA0798JN-part2 bs=1 seek=$f count=262144; done +262144+0 records in +262144+0 records out +262144 bytes (262 kB, 256 KiB) copied, 0.507745 s, 516 kB/s +262144+0 records in +262144+0 records out +262144 bytes (262 kB, 256 KiB) copied, 0.508549 s, 515 kB/s +262144+0 records in +262144+0 records out +262144 bytes (262 kB, 256 KiB) copied, 0.499234 s, 525 kB/s +262144+0 records in +262144+0 records out +262144 bytes (262 kB, 256 KiB) copied, 0.496669 s, 528 kB/s + +[root@fs01 etc]# partprobe /dev/sdl +### LSBLK shows sdl has no partitions, so far so good + |