Questions tagged [shrink]
41 questions
2
votes
0 answers
shrink live mdadm partition with LVM
My goal is to shrink an mdadm RAID 1 partition while the system is running. I have to disks sda and sdb, which build my two RAID partitions md0 and md1. On md1 I use LVM, md0 is the /boot partition. I already reduced the size of the LVM physical…

user2323470
- 183
- 4
- 9
2
votes
1 answer
Resizing partition with DiskPart using desired and minimum options is unsuccessful
I have a few systems I want to shrink the primary (and only) partition to about half of the disk and then create a new partition in the newly available space. The disks are 500GB. I want to script it, so I am using diskpart; however, I have issues…

Aaron
- 21
- 1
- 2
2
votes
2 answers
How to shrink Linux partition (sda2, type is Linux LVM)
I have sda disk with 2 partitions. The second partition sda2(which is LVM) is 1.4TB in size and want to shrink to 50GB. I reduced Logical volume to 50GB but when I run vgdisplay it shows Free PE / Size 1.33 TiB. I want this free space to have sda…

kupa
- 381
- 2
- 8
- 18
2
votes
1 answer
Should I consider shrinking or truncating a big LDF file?
I apologize for asking a question that gets asked a lot.
I have a database that has an 80GB LDF file. MDF is 230MB. I have never shrunk or truncated the database. I do not know much about shrink and truncate.
It is a SQL Server 2008 R2…

obautista
- 149
- 1
- 7
2
votes
1 answer
How do I shrink an EBS volume on Windows Server 2008?
I have a Windows Server 2008 instance on EC2. I need to shrink one of the drives (non-root) to a certain amount. Is there are well defined way of doing it?
Thanks

Wajih
- 235
- 1
- 3
- 9
2
votes
0 answers
resize2fs shrinking very slow
I tried to shrink a 60TB ext4 to 50TB and it takes about one week to finish.
I know that should take much time but it's very slow even my disks underlying are RAID0.
After some research, it seems many people meet this performance bottleneck.
Are…

yayaya
- 31
- 4
1
vote
1 answer
shrink LVM (not XFS) to use for guest nodes (KVM)
I have /homemountpoint (Type=LVM). how can I reduce/home` from 418G to 200G and use remaining disk space for guest(KVM) Node? because XFS can not be shrunk ().
localhost home]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 …

AAserver
- 11
- 2
1
vote
2 answers
Shrinking overprovisioned thin disks
We have a VCenter with some data storages, one of them is 10 TB. The issue is that the former sysadmins created many VM's with thin provisioned disks of 8 TB. Right now, the provisioned storage is close to 100 TB and the real used space is below 100…

gsantovena
- 316
- 2
- 8
1
vote
3 answers
Shrink a Windows VM in XenServer
I faced a problem. I deployed a VM by size of 500GB on Citrix XenServer and now I want to shrink it, because I don't have enough space for snapshots. Now I want to perform an export/import to do this. I'm wondering if it's possible to import the OVF…

Mehdi
- 80
- 1
- 6
1
vote
2 answers
Is it a good idea to compress a MS SQL database backup?
Quick question! I heard that we should never shrink our databases. However, does the same rules apply to compressing our SQL backup?
Thanks

user1034912
- 1,345
- 3
- 14
- 20
1
vote
1 answer
Individual Customer Backup from Multi Customer DB
We have a multi customer database, that's about 95gb in size. One of the customers is requesting a monthly backup of their data. We have a script that strips out all records from all tables that are not related to the specified ID.
So we restore…

HarleyP
- 13
- 2
1
vote
2 answers
Microsoft SC VMM 2008 R2 doesn't have option to compact virtual hard disk
I can't figure out how to shrink a VHD using Microsoft System Center Virtual Machine Manager 2008 R2. Viewing the article Shrink your VHD size seems like this would be simple to do. However I don't see any of those check boxes that article…

Chris Marisic
- 1,424
- 8
- 33
- 51
1
vote
2 answers
How to truncate SQL Server log file
I tried to shink database log file but it is still huge.
My database is 200mb and log is 30Gb
USE [databasename];
BACKUP LOG [databasename] WITH TRUNCATE_ONLY;
DBCC SHRINKFILE ('databasename_log', 1, TRUNCATEONLY);
Does not help much. Even after…

agassan
- 13
- 2
1
vote
4 answers
Shrink Partition on Production Server
Our production server was only set up with one large partition.
I have set up a standby server and properly partitioned it.
Now the boss wants the production environment's partition shrunk.
It is an HP DL380 G6
We have 4 hot swap drives in a RAID 5…

Campo
- 1,609
- 17
- 33
0
votes
2 answers
How to reallocate space between two LVM VGs?
I have two disk partitions, say sda1 and sda2, each containing a VG.
sda1 -> VG_SYS
sda2 -> VG_GUESTS
VG_SYS has a number of LV, one for every partition I needed.
The problem is that VG_SYS has gone out of space (or better, partitions made on its…

drAlberT
- 10,949
- 7
- 39
- 52