move lvm partitions from huge disk to small disk - shrink

We have a physical server with 1T of disk and oracle linux server installed. I made a clone with clonezilla, because the server is giving error and possibly can stop. I could install a new version and put the backup, but it's a very old legacy system and we already tried that and it didn't work.
It is all in lvm and I would like to migrate the lvm partitions of this huge disk to a smaller disk in a virtual machine.
I have tried in some ways but without success. The partitions are below.
Any idea?

Related

Deallocate Elastic Search Memory after uninstall

I am on Windows 10 and I installed ElasticSearch from msi package and installed it as a service. I configured 2GB memory for its cluster and nodes while installing.
Now I want to uninstall it completely and deallocate all the memory, I uninstalled it from Add or Remove Programs and also made sure that I don't have any service named Elasticsearch in services.msc.
Even after uninstalling I see in my Task manager that 2GB ram is still being used and I believe its because of Elasticsearch.
How can I deallocate that memory? I have also tried restarting my computer multiple times but still 2GB memory is still allocated.
Task manager doesn't show usefull info, try to download https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer
run it as administrator and discover dllhost.exe process - try to understand which dll is consuming resources.

VMWare Virtual Disk files (.vmdk) from Snapshots piling up, cannot delete without breaking VM

I'm using VMware Workstation Pro 15.5.1 with monolithic disk files (on a Win 10 host).
I worked with snapshots, but always deleted them again because they're not needed anymore.
Unfortunately, it does not delete the Snapshot files from my disk, when I try to delete them by hand it says This file is required to power on this virtual machine. If this file was moved, specify the new location.
In my virtual machine settings, I see that disk is about ~58GB in size, which corresponds pretty much exactly to my 000011.vmdk file in the image below. How can I get rid of all the other files?
Thanks!
I found a working solution: https://kb.vmware.com/s/article/57015 - option 2 (manual consolidation). This resulted in a ~75GB .vmdk file which works independently from the snapshot files.

Remove LVM partition that overlap with my windows partition

So this happends when I want to setup dual-boot ParrotOS and Windows. When I want to install Parrot, I accidentally select 'use all disk and setup LVM' (not encripted) and I noticed that and click cancel but the LVM already been setup. Can I revert the LVM setup or get my data out from the windows partition?
Thanks!
Edit 1
I check my windows partition on ParrotOS live using TestDisk, the files are intact and I'm copying the files to removable flashdrive as a backup. Is there anything I can do to make my partition bootable inside LVM? or how can I extract the partition to direct partition not inside LVM?
After asking on other technology forums, I decided to format my hard drive and reinstall windows.

Where to install Build Cassandra is better on Mac

I have built Cassandra through Mac command manually.
The first time I have installed it under ~/Download folder and it builds fast, but at that time I didn't find /var/lib/cassandra so I removed cassandra from ~/Download file.
Then I have installed it under /, this time lots of operations needed "sudo" and it became slower.
So I am wondering where to install Cassandra is better? Since later I am going to pull large amount of data into Cassandra but I also hope it will influence my machine performance at the lowest level.
Install Cassandra in a location where you can provision full access to it. The problem you faced was due to the fact that you left the directories of data and commitlogs to defaults. Change those in the cassandra.yaml file and start Cassandra.

Full Online System Backup Debian

I'm not familier with linux and debian system I work most with windows computers. But one of my clients uses debian linux web server and I need to upgrade the server's raid array.
Before I do anything with the server I would need a full system backup. I search through the internet for solution and also this site, but I haven't found acceptable answer.
I would need something like LVM snapshot, but I don't want to convert everything to LVM partition just for a backup. I found the DD to make bit by bit copy of the hardrive, but I should unmount the drive for it and I don't too much service offline. The reconfiguration of the raid will be enough offline. I found solution like TAR the necessary files and send through SSH, but it isn't a full system backup. I do backup every month form the files and settings.
I need a solution that makes an easy restorable image file of the server for emergency case. If the raid configuration fails I will need SOS restoration of the full system to the old config.
You should use rsync.
It's not a snapshot, but if you don't want to use LVM, it's a start.

Resources