These days most of us using virtual storage drives for a server, most of the time these virtual storage disks are configured dynamically, so it grows as we use it, but does not shrink when you delete data unless you do compact. If you are using Hyper-V servers, it’s very easy to do, other hypervisors also offer similar compacting, you may just have to look around.
Here is screenshot of before compacting drive:
To compact in Microsoft Hyper-V hypervisor:
Open the Hyper-V Manager Select the VM Right-click on VM, click Settings Select the Hard Drive that you want to compact, then click Edit It will give you the location of the Disk and warning, please make sure you have a good backup, just in case something goes wrong Click Next
If you only see Expand option, that means your VM is running, you can’t Compact Click Next
Summary of Disk, click Finish and it will start compacting, time it takes to compact are depends on speed of drive and how much data you have deleted.
This is what it looks like after compacting, the size will vary depends on how much of your data being deleted.
That’s it, if you don’t get the drive space back, make sure to do the Drive Optimization first then re-do the compacting
To drive Optimize:
Login into server and right click on the drive select Properties
Click on Tools tab Click on Optimize
Then select the drive if you have more then one and click on Optimize
There may be a number of reasons you can’t delete some users from Active Directory, one of them could be domain admin or enterprise admin privileges. Another could be some objects are still in use or not sync up with an exchange, they both have some many references, so can’t delete active directory user with exchange ActiveSync
I had come across one after migration to Office 365, some user account that may have old Exchange attributes that cannot be deleted and you will have to manually give your self full access. here is how to delete those account that has privilege issues.
First you need to change the view to: use the “view -> users, Contacts, Groups, and Computers as containers”
Then go to the user you are having issue deleting, give you self full permission to object then you should be able to delete it
It’s always best to stay up to date with technologies that you are using these days, due to lots of data getting hacked because they are not updated. I had written a post earlier on how to upgrade Ubuntu 14.04 to 16.04, the process is the same. Make sure you have a good backup and your backup is tested to be sure data you are backup are good. If you have an option you can do an upgrade on a test server and work out any issues, that way when you do upgrade on the production system it goes smooth.
Check list before starting upgrade process
Data backed up and verified, which includes configs, PHP, Databases, etc…
Make sure your application supports newer packages versions
List of application/services so it can be tested after the upgrade
Direct access to the server, remote session will give you an error
Stopping application/services, not required but if dealing with a database it’s safer
Double-check storage space for an upgrade to download/install, you will need about 10GB
Run the following command it will go through a check of currently installed packages and give you the option to check and make sure you are ok to start to upgrade. You should check and make sure your application support new version, so it does not break your application after the upgrade. You can press d to get detailed list, when done press q and it will bring you back to option to Continue or N to cancel. Press y and Enter when you ready
If you have apache installed you will get this prompt, which you can select option best fit your needs.
If you get option for sshd_config, select keep the local version currently installed
It will scan for any obsolete software and will give you option to remove it
Once that done, then it will ask to restart the server press y and Enter
Once the server comes back you should see Ubuntu 18.04.x
Total size was about 10.5 GB and it took about 2 hours, yours may be different based on server resources, an application installed, etc…
common issues and solutions:
Very common if you are using web server you might have issue with PHP: To check PHP version: php -v
Re-enable PHP, if upgrade from older version:
sudo a2enmod php7.2 sudo service apache2 restart
To install full PHP packages you can run following command:
Most servers have 3rd party Antivirus solution, so you don’t need or want Windows Defender on your server. Here is how to uninstall it, so you can free up the resources of your server. You can remove via server manager or using PowerShell.
You can run this command to check if Windows Defender is running:
How to setup Time Zone in osTicket, which is very important to have your system work correctly. If the time zone is incorrect tickets get mixed up marked wrong data/time, SLA, etc.. So here are few places you can check to confirm your system is correctly setup. I am using an Ubuntu system other Linux system works similar path might be different. If your time shows incorrect you should also check to make sure you have installed the PHP Extensions “Intel” which effects the time you can check it at /scp/system.php. There at least 4 places you can set the time zone, I am listing it here, your settings may vary.
Option 1: from osTicket admin panel System Settings and Preferences
Default settings: Locale Defaults
If you need to customize:
Option 2: via php.ini file
Search or in your file under Date and just uncomment date.timezone = Put your time zone name after = America/New_York (This would be mine)