Portainer Basic
Portainer enables centralized configuration, management and security of Kubernetes and Docker environments, allowing you to deliver ‘Containers-as-a-Service’ to your users quickly, easily and securely.
Portainer enables centralized configuration, management and security of Kubernetes and Docker environments, allowing you to deliver ‘Containers-as-a-Service’ to your users quickly, easily and securely.
Rancher 2 exclusively deploys and manages Kubernetes clusters running anywhere, on any provider.
Commands and Options
Set up Docker on FreeNAS 11.2 - Part 1 - RancherOS VM
Setting up Docker on FreeNAS 11.2
Errors can be found in TrueNAS Storage section in web page, or use shell in web page, run zpool status -x
command.
Sample error can be fond in following screen. There are two pools got error. The pool0 got two hard disks, first one got 154 checksum errors, second one got one data error.
pool: pool0
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-9P
scan: scrub repaired 0B in 00:00:02 with 0 errors on Sat Oct 2 17:39:46 2021
config:
NAME STATE READ WRITE CKSUM
pool0 ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
gptid/bf410fcf-2209-11ec-b8aa-001132dbfc9c ONLINE 0 0 154
gptid/bfcc498a-2209-11ec-b8aa-001132dbfc9c ONLINE 0 0 0
errors: No known data errors
pool: pool01
state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
config:
NAME STATE READ WRITE CKSUM
pool01 ONLINE 0 0 0
gptid/75827da1-207a-11ec-afcf-005056a390b2 ONLINE 0 0 1
errors: List of errors unavailable: permission denied
errors: 1 data errors, use '-v' for a list
For second error, impacted file can be found using zpool status -v
command
root@truenas[~]# zpool status -v pool01
pool: pool01
state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
scan: scrub repaired 0B in 00:23:22 with 1 errors on Sat Oct 2 21:53:02 2021
config:
NAME STATE READ WRITE CKSUM
pool01 ONLINE 0 0 0
gptid/75827da1-207a-11ec-afcf-005056a390b2 ONLINE 0 0 1
errors: Permanent errors have been detected in the following files:
/mnt/pool01/download/file.1
root@truenas[~]#
Run following command to clear the error
zpool clear <pool_name>
For the pool has data error, which has any file impacted. Delete or overwrite the file.
Then scrub the pool
zpool scrub <pool_name>
To replace disk, run following command, c0t0d2 is a new disk to replace c0t0d0
zpool replace c0t0d0 c0t0d2
If the disk replaced at same location, then run following command
zpool replace c0t0d0
Be happy, there are many ways to satisfy yourself, just listed them below.
Things always have two views, positive and negative, thinking positively.
Big achievements accompany too many failures, they are always bulit up by many small achievements.
Work for others is called work, work for yourself is called contribute.
Lesser rules applied.
Nothing is the best.
Building hobbies
Less worry later
Don't worry too much about future
Just say hi to others during exercise can help yourself forget tiredness.
Bring you out of depression.
Don't always follow
If impossible, go out and watching others
To forget whatever happened before.
Don't try to recall sad things although they can't be forgotten.
Don't believe people said, just listen.
Synology NAS can be used for certificate management, and Let's Encrypt certificate can be exported as ZIP file used for NGINX HTTPS configuration.
For existing certificates, can use right click -> renew
option to renew.
Note: All domain in the certificates, must be resolved to current Synology NAS at port 80 and port 443, otherwise, certificate generation will be failed.
In downloaded ZIP file, following files can be found.
certs.pem
chain.pem
privkey.pem
Concatenate cert.pem
and chain.pem
to cert-with-chain.pem
(or fullchain.pem
) file
Copy cert-with-chain.pem
and privkey.pem
into NGNIX conf.d
folder
Verify NGINX configuration as below
ssl_certificate conf.d/cert-with-chain.pem;
ssl_certificate_key conf.d/privkey.pem;
The date of issue for new certificate should be displayed in certificate information window.
Following command can be used for verification
openssl s_client -connect <domain_name>:<port>
If got following error, concatenate chain.pem
into cert.pem
, because the full chain is required.
verify error:num=20:unable to get local issuer certificate
verify error:num=21:unable to verify the first certificate