Proxmox – check defragmentation on disk

you can use e4defrag tool :

sudo e4defrag -c /path/
Posted in Proxmox | Leave a comment

Proxmox – move the docker storage folder to another disk

Edit : /lib/systemd/system/docker.service

FROM:
ExecStart=/usr/bin/dockerd -H fd:// 
TO:
ExecStart=/usr/bin/dockerd -g /mnt/pve/VMspaceSDD/dockerd -H fd:// 

after:

systemctl stop docker

check that it stopped :

ps aux | grep -i docker | grep -v grep

if stopped, than:

systemctl daemon-reload
rsync -aqxP /var/lib/docker/ /mnt/pve/VMspaceSDD/dockerd
systemctl start docker

check it started & that is running in the new location:

ps aux | grep -i docker | grep -v grep
Posted in Proxmox | Leave a comment

Proxmox – how to resize /dev/mapper/pve-root


If you have enough space on disk. You can run the bellow command with required size.
lvresize --size 5G --resizefs /dev/mapper/pve-root

Posted in Proxmox | Leave a comment

Proxmox – Move Swap Partition from USB Boot Disk to another disk


First remove swap & partion
swapoff /dev/pve/swap
lvchange -a n /dev/pve/swap
lvremove /dev/pve/swap

Make swap file on another disk:
dd if=/dev/zero of=/pathondisk/swapfile bs=1024 count=2000000
chown root:root /pathondisk/swapfile
chmod 0600 /pathondisk/swapfile

mkswap /pathondisk/swapfile
swapon /pathondisk/swapfile

To activate /pathondisk/swapfile after Linux system reboot, add entry to /etc/fstab file.
nano /etc/fstab
/pathondisk/swapfile none swap sw 0 0

Save and close the file. After reboot, it enables the new swap file for you automatically.

To check swap is working:
free -m

Posted in Proxmox | Leave a comment

Enabling Docker Remote API on Ubuntu


Edit the file /lib/systemd/system/docker.service
I used the nano editor:

sudo nano /lib/systemd/system/docker.service

Modify the line that starts with ExecStart to look like this:

ExecStart=/usr/bin/docker daemon -H fd:// -H tcp://0.0.0.0:2375

Save the modified file & restart Server

Test that the Docker API is indeed accessible:

curl http://localhost:2375/version

You should see output similar to this as the result:

{"Platform":{"Name":""},"Components":[{"Name":"Engine","Version":"17.12.1-ce","Details":{"ApiVersion":"1.35","Arch":"amd64","BuildTime":"2018-02-30T17:46:05.000000000+00:00","Experimental":"true","GitCommit":"4440fc6","GoVersion":"go1.10.1","KernelVersion":"4.15.0-32-generic","MinAPIVersion":"1.12","Os":"linux"}}],"Version":"17.12.1-ce","ApiVersion":"1.35","MinAPIVersion":"1.12","GitCommit":"4440fc6","GoVersion":"go1.10.1","Os":"linux","Arch":"amd64","KernelVersion":"4.15.0-32-generic","Experimental":true,"BuildTime":"2018-02-30T17:46:05.000000000+00:00"}

Posted in Ubuntu Server, Uncategorized | Tagged , , , | Leave a comment

vSAN 6.7 – WSFC support on vSAN!



Posted in VMware | Leave a comment

vSAN 6.7 What’s New Technical



Posted in VMware | Leave a comment

vSAN 67 Technical Overview



Posted in VMware | Leave a comment

de ce traim in roMANIA ? … ADP

Posted in ROMANIA | Leave a comment

roMANIA Voteaza !!!


Don’t forget to VOTE!!!

Posted in ROMANIA | Leave a comment

Read before running Storage Spaces in Windows Server

Read THIS before running Storage Spaces in Windows Server.

When creating a virtual disk set the WriteCacheSize to 10GB or more, after a virtual disk is created, its WriteCacheSize can’t be modified.

Read THIS!

Aditional reading:
Storage Spaces – Designing for Performance

Understanding Storage Space Internal Storage

Posted in Windows Server | Tagged , , , , | Leave a comment

Install Webmin (ver.2)


open the sources.list file

sudo nano /etc/apt/sources.list

…add the following lines to the end of the file:

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

…add the Webmin GPG key to apt, so the source repository you added will be trusted.

wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -

…update apt-get’s package lists.

sudo apt-get update

…install Webmin.

sudo apt-get install webmin

Open this URL in your web browser (substitute the IP address): https://server_IP_address:10000

Posted in Linux, Ubuntu 14.04 lts | Leave a comment

SuperPutty not starting up

 Go to - C:\Users\<your username>
 and delete : SuperPutty.settings file

Posted in Windows | Tagged , , , , , | Leave a comment

Update Freenas CLI

 freenas-update check
 freenas-update update
 shutdown -r now

Posted in Uncategorized | Leave a comment

How to Speedtest your Linux Server

wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod +x speedtest-cli
./speedtest-cli

Posted in Linux, Ubuntu 12.04 lts, Ubuntu 14.04 lts, Ubuntu Server | Tagged , , , | Leave a comment