zfs get -H -o value written pool/dataset # zfs get -H -o value written tank/name
Tag: linux
Proxmox adding missing LVM thin Pool
When adding another node to the proxmox cluster and the LVM is missing it is not possible to add it correctly over the web interface. But here is how it works.
lsblk vgcreate pve /dev/sdc lvcreate -L 30G -n data pve lvconvert --type thin-pool pve/data
delete the VLM (just in case you need it)
lvchange -an /dev/data/data
reducing DNS packet size for nameserver to 1232
To solve this add a new file
/etc/dnsmasq.d/99-edns.conf
in this file add a single line:
edns-packet-max=1232
restart your DNS resolver
Vim: copy/cut paste without selecting line numbers
Let’s say I want to copy/cut lines 34 to 65. I use
:34,65y
(Copy/Yank) or :34,65d
(Cut/Delete).
Unable to negotiate with 1.2.3.4 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
While trying to connect to an older esxi server I got the error message Unable to negotiate with 1.2.3.4 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
I was wondering.
The solution $EDITOR ~/.ssh/config
Host 1.2.3.4 User root HostKeyAlgorithms=+ssh-dss
Remove hihonor bloat ware
1) Download ADB
2) Enable USB Debugging on your device
3) Connect to the computer and verify your device is listed with the command “adb devices”
4) Type “adb Shell”
5) Type “pm list packages”, this will show you all packages installed on phone.
6) Type “pm uninstall -k –user 0 com.huawei.search”
7) you should see the word “Sucess” pop up Well I removed some more bloat ware
pm uninstall -k --user 0 com.google.android.apps.books pm uninstall -k --user 0 com.google.android.youtube pm uninstall -k --user 0 com.google.android.apps.youtube.music pm uninstall -k --user 0 com.google.android.apps.photos pm uninstall -k --user 0 com.google.mainline.telemetry pm uninstall -k --user 0 com.hihonor.android.fmradio pm uninstall -k --user 0 com.hihonor.calendar pm uninstall -k --user 0 com.hihonor.search pm uninstall -k --user 0 com.pal.train pm uninstall -k --user 0 com.hihonor.pcassistant pm uninstall -k --user 0 com.google.android.apps.tachyon pm uninstall -k --user 0 com.google.android.feedback pm uninstall -k --user 0 com.hihonor.printservice pm uninstall -k --user 0 com.hihonor.android.totemweather pm uninstall -k --user 0 com.hihonor.android.chr pm uninstall -k --user 0 com.hihonor.android.thememanager pm uninstall -k --user 0 com.google.android.videos pm uninstall -k --user 0 com.hihonor.id
proxmox qmp command blockdev-snapshot-delete-internal-sync failed
While trying to move a VM from one node to another I got the error message:
VM 100 qmp command ‘blockdev-snapshot-delete-internal-sync’ failed – Failed to get a snapshot list: Operation not supported
One snapshot was stuck and the VM locked. How to solve this?
qm unlock 100 qm listsnapshot 100 qm delsnapshot 100 preFirstBoot --force
qm unlock <ID> qm listsnapshot <ID> qm delsnapshot <ID> <snapname> --force
it might be that the snapshot will remain on the hard disk.
Happy unlocking :)
zfs snapshot send resume
zfs send ... | ssh host2 zfs receive -s otherpool/new-fs
On the receiving side, get the opaque token with the DMU object #, offset stored in it
zfs send ... | ssh host2 zfs receive -s otherpool/new-fs zfs get receive_resume_token otherpool/new-fs # 1-e604ea4bf-e0-789c63a2...
Re-start sending from the DMU object #, offset stored in the token
zfs send -t 1-e604ea4bf-e0-789c63a2... | ssh host2 zfs receive -s otherpool/new-fs
If you don’t want to resume the send, abort to remove the partial state on the receiving system
zfs receive -A otherpool/new-fs
ZFS enable email notification
Edit
/etc/zfs/zed.d/zed.rc
uncomment
ZED_EMAIL_ADDR="mail@example.com"
and add a valid email address.
uncomment
ZED_EMAIL_PROG="mail"
uncomment
ZED_EMAIL_OPTS="-s '@SUBJECT@' @ADDRESS@"
uncomment
ZED_NOTIFY_VERBOSE=0
if you want to get an email after every scrup set the value to 1
save the file and restart zed service
systemctl restart zed.service
failed Import ZFS pools by cache file
A single disk zpool “test” crashed on my server (the disk died). It was just for testing, so nothing dramatic. However, when I rebooted the server I got the error message “failed Import ZFS pools by cache file”. A zpool destroy -f did not solve the problem. zpool status still showed the “test” pool. The other pool tank was still working.
What did help was
# disable the cache file for the existing pool(s) zpool set cachefile=none tank # delete the old pool file rm -rf /etc/zfs/zpool.cache # recreate if touch /etc/zfs/zpool.cache reboot # re-enable the cache zpool set cachefile=/etc/zfs/zpool.cache tank
Well, the cache file should be automatically updated when your pool configuration is changed, but with the crashed pool it did not.
Posts Tagged linux
Archives by Month:
- March 2025
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- August 2024
- April 2024
- January 2024
- December 2023
- November 2023
- July 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- October 2022
- September 2022
- August 2022
- July 2022
- May 2022
- March 2022
- February 2022
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- February 2021
- January 2021
- August 2020
- July 2020
- June 2020
- April 2020
- January 2020
- December 2019
- November 2019
- October 2019
- May 2019
- April 2019
- March 2019
- January 2019
- October 2018
- August 2018
- June 2018
- April 2018
- March 2018
- February 2018
- November 2017
- June 2017
- April 2017
- February 2017
- January 2017
- November 2016
- September 2016
- May 2016
- February 2016
- September 2015
- August 2015
- July 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- July 2014
- June 2014
- April 2014
- January 2014
- December 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- August 2012
- July 2012
- June 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009