Shrink size of virtual disk
Hi,
I converted physical server to virtual machine using P2V method. Now I have 150GB virtual disk which has linux host and data is consuming only 30GB, the rest is free. What would I like is to shrink vdisk size to, lets say, 40GB because I don't need any more space. Is there any way to copy only data to another vdisk within OracleVM or shrink size of the disk without losing data?
Thanks.
Hi, thx for help, I finally did it.
Steps:
1. Boot up VM that needs to be shrinked with GParted Live CD
2. Shrinked partition(dev/hda5) so that unneeded space is left as unallocated
3. Created new hard disk with enough space and attached it to VM
4. Booted up with GParted Live CD and copied all partitions to new disk(except unallocated partitions)
5. Created new VM with new disk
6. After that, I booted up new VM with Rescue Live CD, and entered into grub:
6.1. grub>root (hd0,0)
6.2. grub>setup (hd0)
7. Reboot!
Now I have the same VM, just it's using over 50GB less space. :)
Thanks!
Edited by: DBagy on Jan 15, 2013 5:00 AM
Similar Messages
-
Virtual Disk mis-reporting available size
I have a virtual disk on my 6140 that has a total capacity of 4 TB. It has a configured capacity of 2 TB. However, it says that my maximum volume size is only 107 GB. Where is my other 1.83 TB? I had a 1.9 TB volume on this virtual disk that I deleted last week. It seems that it still thinks it is there. Any suggestions?
I do not think you can use DU for resizing if you used a linux disk utility before. I never could do that, but am ready to learn how to do that.
-
Virtual Disk used Size is Zero
Hi All,
Got a 3.0.2 test environment, 2 hosts with a seperate physical VM Manager box. Been creating Xen PVM guests using both a downloaded OL5U7 template to clone from as well as using network boot to extracted iso via ftp (also OL5U7).
For the clones, I noticed the virtual disk name defaults to a 32-character string while I could name the virtual disk for the network boot method. What's the best practise for organising this? Should I leave the Virtual Disk name blank so it defaults to a 32-character string like the cloned guests?
Also, in Homes > Server Pools > Repositories > Virtual Disks, the cloned guests are showing the correct virtual disk usage but for the guests created using network boot to iso is showing zero for disk usage. The only difference I see between the 2 types of guests is the giest created using the extrated iso is using lvm for the root partition.
Is there a way to refresh the ovm manager view such that the disk usage is accurate for the guests?
Thanks.831583 wrote:
For the clones, I noticed the virtual disk name defaults to a 32-character string while I could name the virtual disk for the network boot method. What's the best practise for organising this? Should I leave the Virtual Disk name blank so it defaults to a 32-character string like the cloned guests?Up to you. The actual filename will always be the UUID. The Manager just allows you to name new disks for display in the Manager only.
Also, in Homes > Server Pools > Repositories > Virtual Disks, the cloned guests are showing the correct virtual disk usage but for the guests created using network boot to iso is showing zero for disk usage. The only difference I see between the 2 types of guests is the giest created using the extrated iso is using lvm for the root partition.Correct. For a Network Boot image, the initial disk usage is 0. This will increase over time as more content is stored inside the image.
Is there a way to refresh the ovm manager view such that the disk usage is accurate for the guests?Refresh the repository. -
Hi there,
I have a storage pool containing 3x2TB physcial disks: one WD and two Seagate. Pool have 2 virtual disks: Data (mirrored) and Temp (Simple). After some time Temp drive disappeared from the list and I lost all data on it. Not big deal but I want to
recreate storage pool as saw somewhere that data structure or something has changed since first release of Storage Spaces (I'm using them from first official beta of Windows Server 2012).
So as I'm lost my Temp drive, I decided to do following:
1) Delete WD disk from storage pool, so data will remain on 2xSeagate (I have about 1,5 TB of data)
2) Reformat WD as single drive and copy everything to it
3) Delete old storage pool
4) Create new one
5) Create mirrored virtual disk
6) Copy data back from WD to that virtual disk
But I'm stuck on removal WD from storage pool, as Server manager says me that there is not enough space in storage pool and I should first connect spare disk.
Looks like my Temp drive disappeared, but space not has been purged. So is there any way to get my Temp dirve back or manually run cleanup?
MCSE, MCITP, CCNA Security Subscribe to my blog at http://sypalo.comHi,
Sorry for my mistake, I mean that the data on the mirror virtual disk is striped across the three physical disks. As you mentioned the allocated space is less than a physical disk, you want to know if there is a way to shrink the virtual disk to let the allocated
space size is larger than the size of one physical disk.
You could use Optimize-Volume command line to optimize a volume, performing such tasks on supported volumes and system SKUs as defragmentation, trim, slab consolidation,
and storage tier processing. Then use Resize-VirtualDisk
command line to resizes the virtual disk to be smaller.
But if the allocated space is still less than a physical disk, you should attach a new spare disk when delete a physical disk.
In the meantime, if the virtual disk have a lot of duplication data, you can also enable data deduplication to get more allocated space in virtual disk.
For more detailed information, please refer to the articles below:
Step-by-Step: Enabling Data Deduplication on Windows Server 2012 Volumes
http://social.technet.microsoft.com/Forums/windowsserver/en-US/441858d0-0a17-4126-a594-ba1c6483c59b/virtual-disk-disappeared?forum=winserverfiles
Introduction to Data Deduplication in Windows Server 2012
http://blogs.technet.com/b/filecab/archive/2012/05/21/introduction-to-data-deduplication-in-windows-server-2012.aspx
Regards,
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Oracle VM 2.2: why virtual disk must be 1GB or larger?
I'm using Oracle VM 2.2. When I try to create a virtual disk using OVM Manager it requires that the disk be at least 1GB in size. Is there a reason for this? Or is it an arbitrary limit enforced by OVM Manager?
OK, but it seems like this arbitrary limit provides no benefit. In my case I actually do want a small disk image. I want to use it to pass small amounts of configuration information to a VM at startup, but it seems like this won't be possible via OVM interfaces (I can't create a small private disk image, I can't import an existing disk image, etc). So it looks like I'll have to go under the covers and manipulate the VM image directly.
Am I missing anything? Does OVM Manager provide any interfaces for passing configuration information to a VM at startup? -
Unable to repair degraded Virtual disks in Storage Spaces under Hyper-V 2012 R2 Core
Hi all,
I am finding myself in the following conundrum. I have a storage pool under Hyper-V Core, with 2 2TB Seagate drives.
One of the drives completely died (wouldn't spin up, tried it in a different box, still to no avail). I sent it in to Seagate for warranty replacement, got the new drive. Installed it and went through the notions of adding it to the pool and retiring the
one that was with "Lost Communication" status.
Tried to repair the virtual disks that are showing as "Unhealthy-Detached", quickly get 100% complete, but the repair didnt work.
The storage pool is in degraded state.
Looks like metadata is corrupted.
Followed this post to upgrade Storage Spaces to latest version:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/eead59e9-5e49-4bb6-8cbb-1dafddd9576b/unable-to-repair-degraded-virtual-disks-in-storage-spaces-2012r2?forum=winserverfiles
Still, to no avail.
Couple of questions:
1) Is the data on the 3 virtual disks in state "Unhealthy: Detached" not recoverable?
2) How can I get the storage pool back to "healthy"?
Any help will be greatly appreciated.
PS C:\corefig> Get-PhysicalDisk | ? OperationalStatus -ne OK | fl
ObjectId : {1}\\HV001\root/Microsoft/Windows/Storage/Pr
oviders_v2\SPACES_PhysicalDisk.ObjectId="{95
42513c-a0d4-11e3-8123-806e6f6e6963}:PD:{7e22
245f-0cf6-11e3-b1db-806e6f6e6963}"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId :
AllocatedSize : 1218696970240
BusType : Unknown
CannotPoolReason : In a Pool
CanPool : False
Description :
DeviceId :
EnclosureNumber :
FirmwareVersion :
FriendlyName : PhysicalDisk-1
HealthStatus : Warning
IsIndicationEnabled :
IsPartial : False
LogicalSectorSize : 0
Manufacturer :
MediaType : UnSpecified
Model :
OperationalStatus : Lost Communication
OtherCannotPoolReasonDescription :
PartNumber :
PhysicalLocation :
PhysicalSectorSize : 0
SerialNumber :
Size : 1999575711744
SlotNumber :
SoftwareVersion :
SpindleSpeed : 0
SupportedUsages : {Auto-Select, Manual-Select, Hot Spare,
Retired...}
Usage : Retired
PSComputerName :
PS C:\corefig> get-physicaldisk
FriendlyName CanPool OperationalS HealthStatus Usage Size
tatus
PhysicalDisk4 False OK Healthy Auto-Select 73.75 GB
PhysicalDisk0 False OK Healthy Auto-Select 1.82 TB
PhysicalDi... False Lost Comm... Warning Retired 1.82 TB
PhysicalDisk2 False OK Healthy Auto-Select 930.75 GB
PhysicalDisk3 False OK Healthy Auto-Select 74.53 GB
PhysicalDisk1 False OK Healthy Auto-Select 1.82 TB
PS C:\corefig> get-virtualdisk -friendlyname 'Data' |FC
class CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk
ObjectId = {1}\\HV001\root/Microsoft/Windows/Storage/Providers_v2\SPACES_Virt
ualDisk.ObjectId="{9542513c-a0d4-11e3-8123-806e6f6e6963}:VD:{3debf056-01f1-11
e3-b1d6-001fbc081884}{7e2229cf-0cf6-11e3-b1db-001fbc081884}"
PassThroughClass =
PassThroughIds =
PassThroughNamespace =
PassThroughServer =
UniqueId = CF29227EF60CE311B1DB001FBC081884
Access = Read/Write
AllocatedSize = 548413636608
DetachedReason = Incomplete
FootprintOnPool = 1096827273216
FriendlyName = Data
HealthStatus = Unhealthy
Interleave = 262144
IsDeduplicationEnabled = False
IsEnclosureAware = False
IsManualAttach = False
IsSnapshot = False
LogicalSectorSize = 512
Name =
NameFormat =
NumberOfAvailableCopies =
NumberOfColumns = 1
NumberOfDataCopies = 2
OperationalStatus = Detached
OtherOperationalStatusDescription =
OtherUsageDescription =
ParityLayout = Unknown
PhysicalDiskRedundancy = 1
PhysicalSectorSize = 4096
ProvisioningType = Thin
RequestNoSinglePointOfFailure = False
ResiliencySettingName = Mirror
Size = 1099511627776
UniqueIdFormat = Vendor Specific
UniqueIdFormatDescription =
Usage = Other
WriteCacheSize = 0
PSComputerName =
PS C:\corefig> get-virtualdisk -friendlyname 'Backups' |FC
class CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk
ObjectId = {1}\\HV001\root/Microsoft/Windows/Storage/Providers_v2\SPACES_Virt
ualDisk.ObjectId="{9542513c-a0d4-11e3-8123-806e6f6e6963}:VD:{3debf056-01f1-11
e3-b1d6-001fbc081884}{7e22255e-0cf6-11e3-b1db-001fbc081884}"
PassThroughClass =
PassThroughIds =
PassThroughNamespace =
PassThroughServer =
UniqueId = 5E25227EF60CE311B1DB001FBC081884
Access = Read/Write
AllocatedSize = 743566213120
DetachedReason = Incomplete
FootprintOnPool = 1487132426240
FriendlyName = Backups
HealthStatus = Unhealthy
Interleave = 262144
IsDeduplicationEnabled = False
IsEnclosureAware = False
IsManualAttach = False
IsSnapshot = False
LogicalSectorSize = 512
Name =
NameFormat =
NumberOfAvailableCopies =
NumberOfColumns = 1
NumberOfDataCopies = 2
OperationalStatus = Detached
OtherOperationalStatusDescription =
OtherUsageDescription =
ParityLayout = Unknown
PhysicalDiskRedundancy = 1
PhysicalSectorSize = 4096
ProvisioningType = Thin
RequestNoSinglePointOfFailure = False
ResiliencySettingName = Mirror
Size = 1649267441664
UniqueIdFormat = Vendor Specific
UniqueIdFormatDescription =
Usage = Other
WriteCacheSize = 0
PSComputerName =
PS C:\corefig> get-virtualdisk -friendlyname 'Music' |FC
class CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk
ObjectId = {1}\\HV001\root/Microsoft/Windows/Storage/Providers_v2\SPACES_Virt
ualDisk.ObjectId="{9542513c-a0d4-11e3-8123-806e6f6e6963}:VD:{3debf056-01f1-11
e3-b1d6-001fbc081884}{7e2238b9-0cf6-11e3-b1db-001fbc081884}"
PassThroughClass =
PassThroughIds =
PassThroughNamespace =
PassThroughServer =
UniqueId = B938227EF60CE311B1DB001FBC081884
Access = Read/Write
AllocatedSize = 39728447488
DetachedReason = By Policy
FootprintOnPool = 79456894976
FriendlyName = Music
HealthStatus = Unknown
Interleave = 262144
IsDeduplicationEnabled = False
IsEnclosureAware = False
IsManualAttach = True
IsSnapshot = False
LogicalSectorSize = 512
Name =
NameFormat =
NumberOfAvailableCopies =
NumberOfColumns = 1
NumberOfDataCopies = 2
OperationalStatus = Detached
OtherOperationalStatusDescription =
OtherUsageDescription =
ParityLayout = Unknown
PhysicalDiskRedundancy = 1
PhysicalSectorSize = 4096
ProvisioningType = Thin
RequestNoSinglePointOfFailure = False
ResiliencySettingName = Mirror
Size = 161061273600
UniqueIdFormat = Vendor Specific
UniqueIdFormatDescription =
Usage = Other
WriteCacheSize = 0
PSComputerName =
PS C:\corefig> get-virtualdisk -friendlyname 'Videos' |FC
class CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk
ObjectId = {1}\\HV001\root/Microsoft/Windows/Storage/Providers_v2\SPACES_Virt
ualDisk.ObjectId="{9542513c-a0d4-11e3-8123-806e6f6e6963}:VD:{3debf056-01f1-11
e3-b1d6-001fbc081884}{7e2225bc-0cf6-11e3-b1db-001fbc081884}"
PassThroughClass =
PassThroughIds =
PassThroughNamespace =
PassThroughServer =
UniqueId = BC25227EF60CE311B1DB001FBC081884
Access = Read/Write
AllocatedSize = 223606734848
DetachedReason = Incomplete
FootprintOnPool = 447213469696
FriendlyName = Videos
HealthStatus = Unhealthy
Interleave = 262144
IsDeduplicationEnabled = False
IsEnclosureAware = False
IsManualAttach = False
IsSnapshot = False
LogicalSectorSize = 512
Name =
NameFormat =
NumberOfAvailableCopies =
NumberOfColumns = 1
NumberOfDataCopies = 2
OperationalStatus = Detached
OtherOperationalStatusDescription =
OtherUsageDescription =
ParityLayout = Unknown
PhysicalDiskRedundancy = 1
PhysicalSectorSize = 4096
ProvisioningType = Thin
RequestNoSinglePointOfFailure = False
ResiliencySettingName = Mirror
Size = 1759325978624
UniqueIdFormat = Vendor Specific
UniqueIdFormatDescription =
Usage = Other
WriteCacheSize = 0
PSComputerName =Hi omon_77,
You can first refer the following step by step third party article and KB:
Replace Failed Disks and Repair JBODs for Storage Spaces in Windows Server
https://technet.microsoft.com/en-us/library/dn782852.aspx?f=255&MSPPError=-2147217396
Replacing a failed disk in Windows Server 2012 Storage Spaces with PowerShell
https://www.hodgkins.net.au/storage/replace-failed-disk-in-storage-spaces-pool-with-powershell/
Step By Step: How to Replace Faulty Disk In Two-Way Mirrored Storage Tiered Space
http://charbelnemnom.com/2014/09/step-by-step-how-to-replace-faulty-disk-in-two-way-mirrored-storage-tiered-space-storagespaces-ws2012r2/
More information:
Storage Spaces - Designing for Performance
http://social.technet.microsoft.com/wiki/contents/articles/15200.storage-spaces-designing-for-performance.aspx
Storage Spaces Overview
http://technet.microsoft.com/en-us/library/hh831739.aspx
Windows Server Storage Spaces: What is it and why should I use it?
http://curah.microsoft.com/5049/windows-server-2012-r2-storage-spaces-what-is-it-and-why-should-i-use-it
I’m glad to be of help to you!
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Server 2012 RC. I'm using Storage Spaces, with two virtual disks across 23 underlying physical disks.
* First virtual disk is fixed provisioning, parity across 23 physical disks: 10,024GB capacity
* Second virtual disk is fixed provisioning, parity across the remaining space on 6 of the same physical disks: 652GB capacity
These have been configured as dynamic disks, with an NTFS volume spanned across the two (larger virtual disk first). Total volume size 10,676GB. For more details of the hardware, and why the configuration is like this, see: http://social.technet.microsoft.com/Forums/en-US/winserver8gen/thread/c35ff156-01a8-456a-9190-04c7bcfc048e
I'm copying several TB from a network share to this volume. It is very slow at ~12MB/sec, but works. However, three times so far, several hours in to the file copy and with plenty of free space remaining, the 10,024GB virtual disk is suddenly taken offline.
This obviously then fails the spanned volume and stops the file copy.
The second time, I took screenshots, below. The disk (Disk27) is marked offline due to "This disk is offline because it is out of capacity". And the disk in the spanned volume is marked as missing (which is what you would expect when one of its member disks
is offline).
I can then mark the disk (Disk27) back online again, and this restores the spanned volume. I can then re-start the file copy from where it failed. There doesn't appear to be any data loss, but it does cause an outage that requires manual attention. As you
can see, there is plenty of space left on the spanned volume.
Each time this has happened, there are a few event 150 errors in the System event log: "Disk 27 has reached a logical block provisioning permanent resource exhaustion condition.". Source: Disk.
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="disk" />
<EventID Qualifiers="49156">150</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2012-06-07T11:24:53.572101500Z" />
<EventRecordID>14476</EventRecordID>
<Channel>System</Channel>
<Computer>Trounce-Server2.trounce.corp</Computer>
<Security />
</System>
- <EventData>
<Data>\Device\Harddisk27\DR27</Data>
<Data>27</Data>
<Binary>000000000200300000000000960004C0000000000000000000000000000000000000000000000000</Binary>
</EventData>
</Event>
This error seems to be related to thin provisioning of disks. I found this:
http://msdn.microsoft.com/en-us/library/windows/desktop/hh848068(v=vs.85).aspx. But both these Virtual Disks are configured as Fixed, not Thin provisioning, so it shouldn't apply.
My thoughts: the virtual disk should not spuriously go offline during a file copy, even if it was out of space. And in any case, there is plenty of free space remaining. Also, I don't understand the reason for why it is marked as offline ("This disk is offline
because it is out of capacity"). Why would a disk go offline because it was out of thin capacity, rather than just returning an "out of disk space" error while keeping it online.Interesting Thread, I've been having the same issue. I had a failed hardware RAID that was impossible to recover in place, so after being forced to do a 1:1 backup, I find myself with 5 2TB hard drives to play with. Storage Spaces seemed like an interesting
way to go until I started facing the issues we share.
So my configuration is A VM Running Windows Server 2012 RC with 5 Virtualized Physical drives using a SCSI interface, 2TB in size that make up my storage pool. A Single Thinly provisioned Disk of 18 TB (using 1 disk for parity)
Interestly enough, write speed has not been an issue on this machine (30~70MB/s, up from 256k on the beta)
Of note to me is this error in my event log 13 minutes before the drive disappeared:
"The shadow copies of volume E: were deleted because the shadow copy storage could not grow in time.Consider reducing the IO load on the system or choose a shadow copy storage volume that is not being shadow copied."Source: volsnap, Event ID: 25, Level: Error
followed by:
"The system failed to flush data to the transaction log. Corruption may occur in VolumeId: E:, DeviceName: \Device\HarddiskVolume17.(The physical resources of this disk have been exhausted.)"Source: Ntfs (Microsoft-Windows-Ntfs), Event ID: 140, Level: Warning
I figure the amount of space available to me before I start encountering physical limits is in the vicinity of about 7TB. It dropped out for the second time at 184 GB.
FYI, the number of columns created for me is 5
Regards,
Steven Blom -
Windows 2003 Guest cannot access "SCSI" virtual Disks with /PAE enabled
I created a Windows 2003 EE R2 guest with 16 GB memeory, 48 GB System disk and 4 virtual SCSI disks for Microsoft Cluster services. It all worked, but limited Windows to 3.75 GB memory. When I added the /PAE option to boot.ini, the memory was available, but the virtual SCSI disks were unavailable. Has any else seen this behavior? Is there a work-around? since I need 4 additional virtual disks for the cluster, I cannot make them all IDE drives.
/OVS is on local storage and /OVS/sharedDisks is an OCFS2 formatted logical volume mounted from a Fiber Channel SAN.
--- Logical volume ---
LV Name /dev/vievg/vie_data
VG Name vievg
LV UUID LQJc0N-HkIn-46gQ-RdXc-0eSn-iRVn-VckVbj
LV Write Access read/write
LV Status available
# open 2
LV Size 383.99 GB
Current LE 98301
Segments 3
Allocation inherit
Read ahead sectors 0
Block device 253:0
LABEL=/ / ext3 defaults 1 1
/dev/cciss/c0d1p1 /OVS ocfs2 defaults 1 0
LABEL=/boot1 /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=SW-cciss/c0d0p3 swap swap defaults 0 0
/dev/vievg/vie_data /OVS/sharedDisk ocfs2 defaults 1 0
acpi = 1
apic = 1
boot = 'd'
builder = 'hvm'
device_model = '/usr/lib/xen/bin/qemu-dm'
disk = ['file:/OVS/running_pool/77_VHAISPMUL13A/System.img,hda,w',
'file:/OVS/sharedDisk/VHAISPCLU13_L.img,sdb,w!',
'file:/OVS/sharedDisk/VHAISPCLU13_P.img,sdc,w!',
'file:/OVS/sharedDisk/VHAISPCLU13_S.img,sdd,w!',
'file:/OVS/sharedDisk/VHAISPCLU13_Q.img,sda,w!',
'file:/OVS/iso_pool/Windows_2003/en_win_srv_2003_r2_enterprise_with_sp2_vl_cd1_X13-48610.iso,hdc:cdrom,r',
disk_other_config = []
kernel = '/usr/lib/xen/boot/hvmloader'
keymap = 'en-us'
maxmem = 16384
memory = 16384
name = '77_VHAISPMUL13A'
on_crash = 'restart'
on_reboot = 'restart'
pae = 1
serial = 'pty'
timer_mode = 1
usbdevice = 'tablet'
uuid = 'ddab0147-6dde-4a2e-2c00-b883a16058ac'
vcpus = 2
vif = ['bridge=xenbr0,mac=00:16:3E:19:C1:E9,type=ioemu',
'bridge=xenbr1,mac=00:16:3E:55:17:AC,type=ioemu',
vif_other_config = []
vnc = 1
vncconsole = 1
vnclisten = '0.0.0.0'
vncpasswd = 'passw0rd'
vncunused = 1
It works fine without the /PAE flag, so I am wondering if it is an issue with the Windows driver for the sd devices presented by the virtual machine emulator and if there is a way to select a better driver. -
I am unable to create a file system on a large (> 2TB disk) virtual disk for a Linux VM. I can create the disk, attach it to the VM, partition it with "parted", but I cannot run mkfs.ext4. Details below.
Hyper-V 2012 Core (w/ all Windows/Microsoft updates as of 4/19).
CentOS 6.4 VM w/ 4 virtual processors, 4GB RAM, and 3 dynamic drives:
/dev/sda 100GB IDE dynamic vhdx
/dev/sdb 75GB IDE dynamic vhdx
/dev/sdc 10TB SCSI dynamic vhdx
Using parted, created 500GB partition on the 10TB drive (/dev/sdc1).
(parted) select /dev/sdc
Using /dev/sdc
(parted) print
Model: Msft Virtual Disk (scsi)
Disk /dev/sdc: 11.0TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 500GB 500GB production_archive
then run: mkfs.ext4 /dev/sdc1
repeating error on console from mkfs.ext4:
INFO: task mkfs.ext4:2581 blocked for more than 120 seconds
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Runaway error in var/log/messages until my /var system filled up - 25G worth of it:
-rw-------. 1 root root 25085329408 Apr 19 23:15 messages
Apr 19 17:39:28 nfs2 kernel: sd 4:0:0:0: [sdc] Sense Key : No Sense [current]
Apr 19 17:39:28 nfs2 kernel: sd 4:0:0:0: [sdc] Add. Sense: No additional sense information
Apr 19 17:39:28 nfs2 kernel: hv_storvsc vmbus_0_13: cmd 0x93 scsi status 0x2 srb status 0x6
Same problem happens when running "mkfs.ext4 -E lazy_itable_init=1 /dev/sdc1"Hi,
Thank you for your post.
I am trying to involve someone familiar with this topic to further look at this issue.
Lawrence
TechNet Community Support -
Hello
I'm setting up a DPM server (2012 R2) at a remote site; everything goes well with no issues until a protection group is created, at which point I get the following error;
Create protection group: Protection Group 1 failed:
Error 360: The operation failed due to a virtual disk service error
Error details: The system cannot find the file specified
Recommended action: Retry the operation.
The environment is as follows;
- Virtual Machine Running Server 2008 R2 Fully updated
- Storage Pool is an iSCSI connection Thick Provisioned 1TB GPT and shows in Disk Management with no issues.
- Have connected to Session 0 (console)
- Error log shows The provider did not receive a Plug and Play service notification for the volume. volume=10 for the VDS Dynamic Provider
Can Anyone Help?
Thanks
.Adam LangdonHi,
Disk defrag is initiated when a volume shrink is attempted. See if there is any problem defragging a volume and correct any problems doing that.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights. -
How to add a virtual disk into a 'guest VM' after VM has been created?
Well, it was easy when one need to add a virtual disk before creating a guest VM. All need to do was to edit the template and click on disk tab and create a virtual disk.
However the challenge comes after created a 'guest VM'. I need to add additional virtual disk into this 'guest VM'.
This is what I did.
Click on Repositories tab --> Under repositories--> Virtual Disks. There is a green "+" sign. Click on it. It says create virtual disk. Follow the instruction, I enter the virtual disk name, size, and select if it is spare or non-spare. Hit ok. Well, everythings seems fine.
Next, I click on the "blue folder" icon which indicated import virtual disk. It asked me about Virtual disk download location.
According to the manual, http://docs.oracle.com/cd/E27300_01/E27309/html/vmusg-repo.html#vmusg-repo-vdisk
Virtual Disk download location: The URL for the virtual disk file. The URL protocols supported are HTTP, HTTPS, and FTP. For example:http://example.com/vdisks/myvdisk.img
How can I determine what is the URL in my case?
Where is the newly created virtual disk located? Isn't it supposed to be in Oracle Server? But it doesn't have a http server running there.
Please help.
Thank you.Virtual disks can only be added and removed at runtime from a PVM. You don't even need to know anything special. Just create the vdisk and use the VMs settings to occupy another slot with the new vdisk.
But as I said… this works only with PVMs, not HVMs. In case of a HVM, you will need to shut down the VM and add the disk afterwards, then fire it back up.
The little folder with the blue down arrow is for importing an existing vdisk file from a web- or ftp server. If you have already created the vdisk, you won't need that. -
Adjusting chunk size for virtual harddisks
My data partition with VHD images is constantly run out of space. So I decided to repartition the drive in the next days. While doing that, I will redo most or all images files to sparsify the data inside the guest. There is one issue:
To reduce the amount of space needed on the host I want to reduce the "allocation chunk size" for (dynamically expanding/ sparse) virtual harddisks. Its my understanding that if a guest is writing to a filesystem block the host does actually allocate
more than the "guest block size". For example, if a guest ext3 filesystem has blocksize 4K and it writes to block #123, the host will not just allocate space for this singe 4K block at offset #123. It may allocate a much larger chunk in case the
guest attempts also to write ti #124. And so on.
A few months ago I read somewhere that this "allocation chunk size" can be adjusted. Either when the VHD image is created, or globally for all images. It was done with some powershell cmd AFAIK.
For my purpose I want to reduce it to a minimum, even if it comes with some performance cost.
How can this property be adjusted?
Thanks.
OlafHi Olaf,
It seems that it is beyond my ability to explain this .
But I have read this article mentioned the effect between VHD and physical disk :
http://support.microsoft.com/kb/2515143
If I understand correctly , the physical disk and virtual disk only have two type of "sector" size (512 and 4K , vhd only support 512 )As for the "allocation chunk size" that you mentioned , I think it determined by different file system
(such as NTFS and ext3 ).
Maybe the powershell cmd you mentioned is " set-vhd " , it has a parameter " physicalsectorsizetype " only with two value 512 and 4096 .
For details please refer to the following link:
http://technet.microsoft.com/en-us/library/hh848561.aspx
Hope this hlepsBest Regards
Elton Ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Oracle VM Migrating virtual disk images to physical disks (block devices)
Hi,
For performance reasons, I'd like to migrate my .img file based virtual disks into physical partitions for VM's.
What is the safest possible way to migrate all partitions (including / partition) from a virtual disk to a block device?
Thanks,
Onurhobeygo wrote:
What is the safest possible way to migrate all partitions (including / partition) from a virtual disk to a block device?Create block devices the same size as your .img files and then use dd to copy the contents of the .img file to the block device. Your VMs need to be offline while you do this. Once you've done this, you can use Oracle VM Manager to remove the original .img file and replace it with the physical block device copy. This is low-risk, as the .img file will still be there if the new block device doesn't work.
Keep in mind that you will need a unique block device for every .img file you have. -
Extend Virtual Disk - Windows Guests
Is it as simple as editing the virtual disk in OVM and increasing the size?
I guess, generally, windows would see any new virtual disk presented to it. But how does it see the increased size disk?
Would I need to extend under windows too?
Theres currently data on the disk so I cant risk losing any data.I've done a test on a test server.
If I create a disk of 50Gb with non-sparse allocation then windows immediately sees the 50Gb disk and I can initilise it and format it etc. No problems.
If I go into OVM it will let me extend the disk but I notice that it is now showing as used 50Gb max 60Gb so its not allocated the entire disk. Is there a way to force this?
On the guest, it just sees the 50Gb. Not yet tried rebooting - should it then see the 60Gb or will it still think its only 50Gb? -
Can not import Share virtual disk
I'm using ocfs2 filesystem
to creating a virtual shared disk oracle VM Manager -> Resources -> Shared Virtual Disks
Server Pool name: mypool
Group Name:
Virtual Disk Name: sharedisk
Virtual Disk Size: 5000
Description:
Can not selected Share virtual disk files which is null when import.what is error?
thankHi,
please clarify your error a little bit more.
a.) Did the create work correctly? Or did you get an error? If yes what error?
b.) Did you have problems attaching the Shared Disk to the VM?
Sebastian
Maybe you are looking for
-
Hej! Organiziser in Photoshop Elements 9 will not start in Windows 8.1. Inkompartibelt programs. What to do? /yoel
-
Any option is there to find the error record in loop for huge amount of rec
Hi Guru's, In our production system we got a error. While debugging we found one of our loop getting 1 lakh records. One of the record from the internal table having some wrong values because of that its giving a error message. But we are not getting
-
HT1339 iPod Classic 5th problem
Hello, I'm using iPod 5th generation, Model A1136, Serial:4J******TXL and everything is fine except that iPod is charging when is connected to PC, but iTunes won't recognize it, so I can not transfer any music on it. I can listen music and do what ev
-
12.1.3 new features
what are all the features updated in apps 12.1.3 from 12.1.1
-
Strange problem: Android auto-redials caller when...
This problem is strange, reproducible, and started a few weeks ago: I am logged into my Skype account from both a Windows machine and from an Android device. When a call comes in, both Windows and Android notify me of the ringing call--as expected.