can a Xen disk image be converted to a diskpartition?
Someone is asking whether I can host his disk image at his current host, which he is leaving for poor I/O (wonder why that would be ). I can host a diskimage, but I don't like diskimages (slow, and 100GB isn't very 'comfortable' either). Is there any way out there to convert a disk image into a normal partition?
I have a disk in raid, but it seems raid is not working correctly. I took it out, and plug into another server without raid. However, fdisk shows error
Quote:
#fdisk /dev/sdb device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 20023. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help):
Should I correct the partition table now, or should I put it in another raid for checking?
I created a 4GB disk image for a virtual machine in Xen. (I have root on the physical box, so please don't tell me to contact my VPS provider!)
The disk was filling up, so I took the advice online and created a 6GB file with dd (zero-filled), cat'ed it to the end of my disk file, and then...
[matt@babe centos]$ sudo resize2fs -f ./cent.img resize2fs 1.39 (29-May-2006) resize2fs: Bad magic number in super-block while trying to open ./cent.img Couldn't find valid filesystem superblock. Of course, fsck won't take a disk image, only an actual partition. And I can't mount it, since I get the same error about a bad superblock.
The VM actually boots up fine, but it only sees 4GB of what's now a 10GB file.
I can use losetup to mount it on a /dev, but still get fsck errors:
[matt@babe centos]$ sudo fsck.ext3 -b 8193 /dev/loop3 e2fsck 1.39 (29-May-2006) fsck.ext3: Bad magic number in super-block while trying to open /dev/loop3
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>
I don't know what blocksize was used, so I don't know where to look for a superblock... (I'm out of my league on fsck'ing virtual disks.)
The thing boots fine and is non-mission-critical right now, so worst-case, I can just mount it, rsync the data to the host, and then set up a new machine and rsync that in... I'd just rather not go through that hassle if I don't have to.
I am unable to mount the 2nd disk's extended partition. Please help.
Commands I tried and returns....
Quote:
mount -t ext2 /dev/hdd2 /second mount: wrong fs type, bad option, bad superblock on /dev/hdd2, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so
Quote:
mount -t ext3 /dev/hdd2 /second mount: wrong fs type, bad option, bad superblock on /dev/hdd2, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so
Also I tried to add it to /etc/fstab but it says the same error, Disk /dev/hdd2 doesn't contain a valid partition table... I am able to mount /dev/hdd1 successfully.
when i try to Terminate an Account this message appears
The /var partition on this server is running out of disk space. WHM operation has been temporarily suspended to prevent something bad from happening. Please ask your system admin to remove any files not in use on that partition.
I use apache with CentOS VPS hosting for my blog. I only host one blog in this VPS account. I have 1.5GB RAM and I have 7, 500 page preview per day. My page loading time is 2-3 seconds (according to the pingdom tool).
I want to know what is the best performance (faster web page loading) W3 Total cache option for VPS hosting blog. Currently I use Disk to enhance for page cache and database cache for disk.
I've got a server in a local colo facility. both the facility and my server are slowly falling apart. Rather than investing in hardware and then shipping it to some location and hoping it doesn't break, I've decided to investigate VPS.
What I am finding is puzzling me. Why do providers charge so much for disk space? My current old p3-733 has a 30gb drive, I could deal with about 15gb but with some 'flex' room (i.e. a virtual drive for uncompressing files or some such). It's a personal server for me and a couple of friends, it doesn't get much traffic, I don't need a heck of a lot of bandwidth, nor anything flashy, just Ubuntu 8.04. I see places offering plenty of traffic for a decent price, yet little in the way of storage. I just don't get it.
A year ago I was here wanting to trade my class C for a dedicated server. I realize now that it would be pretty difficult for providers to do this, because if I wanted to yank my class c they'd have to renumber. But if anyone is still interested, let me know.
I've decided I want cPanel installed on my iWeb dedicated box. They informed me it will require a reinstall. Before they do this I wanted to image the disk and download the image to my PC. Is this possible to do via SSH? I'd prefer an open-source free solution.
I have a site with a lot of data (almost 20-30gigs). I want to pkgacct the site to transfer to another server but the harddisk gets full and the pkgacct stops working.
Which files and folders can I delete on the server without touching critical CPanel files? I want to delete as many as folders so that I can have enough space for the packaging process.
fdisk /dev/amrd1 ******* Working on device /dev/amrd1 ******* parameters extracted from in-core disklabel are: cylinders=2213 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=2213 heads=255 sectors/track=63 (16065 blks/cyl)
fdisk: invalid fdisk partition table found Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 35551782 (17359 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 164/ head 254/ sector 63 The data for partition 2 is: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED>
I get write errors when i use sysinstall. As for the raid status. Its fine.
One of the things people seem to bring up a lot is disk IO Performance.
Why? Because theres little you can do about a customer being stupid and creating a disk swap nightmare.
There is however something you can do to reduce the impact across your clients, Have a separate raid array for swap space.
This does 2 things, it splits some of the Disk IO across 2 arrays, but more important it reduces the affect someone overusing there swap will have on the ones that are not.
One of our server is very slow and cpu and memory usag is fine. Also, there isn't any problem on network, I thought the problem with disk and I got the following iostat result. Is it normal?
# iostat Linux 2.4.21-37.0.1.EL (domain.com) 08/20/2007