Tuesday, October 27, 2020

Replace Qnap System Disk

 If you have got yourself in a situation where qnap system volume is residing on a single SSD / HDD and you want to move to another single larger disk then there is no official way to do this - but its actually very easy.


step one - insert the new disk into a spare location on the NAS.


if your system volume is sde and the new disk is sdf then run the following command


dd if=/dev/sde of=/dev/sdf bs=100M 

If you are using entware on your NAS box - ( you really should be ) then you can 

opkg install pv
dd if=/dev/sde |pv | dd of=/dev/sdf bs=100M 
if you are cloning a 700G drive you can specify the size in pv
dd if=/dev/sde  |pv -s 700G | dd of=/dev/sdf bs=100M 
Will give you a nice status display:
25.9GiB 0:01:05 [ 384MiB/s] [========>                                                                                                                                                                                                                                                                                                                        ]  3% ETA 0:31:34

When this is done. shutdown the NAS

Remove the 2 drives that you've been working with.

startup the NAS again - the NAS will complain about the storage volume missing - re-insert the new bigger disk - the NAS will find it and will stop complaining about the volume and pool

Saturday, March 25, 2017

Proxmox remove nag screen

Just watching a recent exchange on IRC prompted this post:

[09:09:11] <cnnx> i cant get rid of the popup in proxmox
[09:14:08] <zapotah> is this guy for real?
[09:14:18] <cnnx> i reinstalled it
[09:24:27] <cnnx> zapotah: ok thanks for  your patience, also i found some random page on google to remove the annoying message, did what ti said and its still there

[09:24:54] <zapotah> just buy support 😉

There are constantly people wondering how to remove that nag screen from proxmox virtual environment:

"You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options."

Its dead simple - you don't even need to change any code.

Just head to https://www.proxmox.com/en/proxmox-ve/pricing and buy the community support - its less than 6e per month. If you can't justify spending 6e per month and are looking to do this in code then I don't even know what you are using this product for!

Support the project - less than 6e per month removes the "You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options" nag screen.


https://www.proxmox.com/en/proxmox-ve/pricing

Wednesday, August 10, 2016

perl: warning: Setting locale failed.

If you are getting this annoying error on debian or proxmox or any other debian based linux distro:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "en_IE.UTF-8",
LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

The fix is very simple.

me@server # locale-gen en_IE.UTF-8
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
me@server # dpkg-reconfigure locales

Select the locale and save

Generating locales (this might take a while)...
  en_IE.UTF-8... done
  en_US.UTF-8... done
Generation complete.

me@server #

And the issue should be resolved.