XenServer space issue

tgray96

[H]ard|Gawd
Joined
Dec 13, 2010
Messages
1,055
SO, I am trying to move .iso's from an external harddrive to an ISO repository on my Xenserver. Here is what I am getting:

Code:
[root@xenserver ISOS]# cp debian-6.0.4-amd64-DVD-1.iso /var/opt/xen/iso_import/ISO1
cp: writing `/var/opt/xen/iso_import/ISO1/debian-6.0.4-amd64-DVD-1.iso': No space left on device

I very clearly do not have full drives..
1 500Gb that has around 450Gb's free
and a 320Gb with 100% free
 
SO, I am trying to move .iso's from an external harddrive to an ISO repository on my Xenserver. Here is what I am getting:

Code:
[root@xenserver ISOS]# cp debian-6.0.4-amd64-DVD-1.iso /var/opt/xen/iso_import/ISO1
cp: writing `/var/opt/xen/iso_import/ISO1/debian-6.0.4-amd64-DVD-1.iso': No space left on device

I very clearly do not have full drives..
1 500Gb that has around 450Gb's free
and a 320Gb with 100% free

why are you doing it this way ? why would you want to use up your storage on your xen server for iso's.

use a shared folder on your desktop or something.
 
Thats why I put the second 320 GB drive into it. I don't have a desktop to use at the moment, I am on my phone. lol... I won't use up 400Gb for quite a while.
 
Not to mention, I am only on 10/100 at the moment, My gig switch died, don't have the cash to buy a new one for now.
 
why are you doing it this way ? why would you want to use up your storage on your xen server for iso's.

use a shared folder on your desktop or something.

This way if you remote in you can work with ISO's on the server and not have to have them on your local machine.
 
How are your drives mounted? Are you even copying on to the 320GB drive? (That's what you want to do, right?)
 
[root@xenserver ~]# mount
/dev/sdb1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/opt/xensource/packages/iso/XenCenter.iso on /var/xen/xc-install type iso9660 (r o,loop=/dev/loop0)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdc1 on /mnt type ntfs (rw)
Here
 
Okay, it looks like your second drive is mounted under /mnt

This line shows that:
/dev/sdc1 on /mnt type ntfs (rw)

If you type df -h it will tell you how much space is available at each mount point, do that and paste the results please
 
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1             4.0G  2.1G  1.8G  55% /
none                  373M  4.0K  373M   1% /dev/shm
/opt/xensource/packages/iso/XenCenter.iso
                       52M   52M     0 100% /var/xen/xc-install
/dev/sdc1             466G  264G  203G  57% /mnt
Here
 
4G doesn't fit on 1.8G

You need to copy the image to a drive/partition with space. /dev/sdb1 (your root filesystem) is only a 4G partition.
 
[root@xenserver ~]# fdisk /dev/sdb

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


The number of cylinders for this disk is set to 60563.
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)

Command (m for help):

Here ya go
 
As you can see the 500GB drive is mounted in /mnt.. so you should copy the ISO's in there
 
Ok, thought the error was resolved, but alas its not.
My goal is to mount the 320gb /dev/sda to /iso
But,
Code:
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

and running parted -l results in program parted not found.
 
This drive was formatted last night.

--And Because I am having a shitty day, and can't remember a goddamned thing, I don't remember how I did it last night :/--
 
Last edited:
try this :

Check the current partition table: fdisk –l
In the disk you want, cd and make a random directory i.e : mkdir /mnt/iso
Mount the partition you want i.e: mount –t ext3 /dev/sda3 /mnt/iso/
Make it available in XenServer: xe-mount-iso-sr /mnt/iso –o bind

It should popup on your xencenter too, it will make a special repository for ISO's only.
 
[root@xenserver ~]# mount -t ext3 /dev/sda /mnt/iso/
mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
 
Are you sure you want to not use a partition table? This is OK in linux but it's somewhat non-standard.

I am assuming there is not already data on there? If there IS data on there you may want to try mounting the first partition:
mount /dev/sda1 /mnt/iso

If NO Data on the drive then:

Format it first:
mkfs.ext3 /dev/sda

then you can mount it:
mount /dev/sda /mnt/iso
 
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Should I just make a 20 or 30 gb partition and mount that?
 
It depends if you have the intention of keeping ISO's or just keep to the most used one. 30gb seems a reasonable amount for personnal use. I use a different partition to keep some templates or copies for testing purposes.
 
It depends if you have the intention of keeping ISO's or just keep to the most used one. 30gb seems a reasonable amount for personal use. I use a different partition to keep some templates or copies for testing purposes.

Id go maybe 160gigs for Iso's it fills up fast.
 
It depends if you have the intention of keeping ISO's or just keep to the most used one. 30gb seems a reasonable amount for personnal use. I use a different partition to keep some templates or copies for testing purposes.
Ok.
Id go maybe 160gigs for Iso's it fills up fast.
That seems decent enough
I don't know how to solve your problem, but I thought I'd pass on some links
that might help:


How to Set Up an Additional Hard Drive in XenServer
http://support.citrix.com/article/CTX130897

Archive: How to Add Space to Your XenServer Host ISO Directory
http://support.citrix.com/article/ctx116350,

How to Copy ISOs to Local Storage
http://support.citrix.com/article/CTX121671
Thank you.

Thank you guys. I will work on this.
 
If you want to use the whole drive then you don't actually need a partition table.
 
So what I did was partition /dev/sda into /dev/sda1
I want to mount that, But I am having some issue doing so. How should I go about mount that partition?
 
So what I did was partition /dev/sda into /dev/sda1
I want to mount that, But I am having some issue doing so. How should I go about mount that partition?

Did you format it after partitioning?
mkfs.ext3 /dev/sda1

Then you can mount it:
mount /dev/sda1 /mnt/iso

You will probably want to add this to your fstab so it gets mounted at boot also.


BTW: What distribution of Xenserver are you using? Can you give me a link to an ISO for download? (I am assuming it is free software, if not then nevermind :) )
 
Did you format it after partitioning?
mkfs.ext3 /dev/sda1
Yep, did that
Then you can mount it:
mount /dev/sda1 /mnt/iso
Did that also
You will probably want to add this to your fstab so it gets mounted at boot also.
/dev/sda1 /mnt/iso ext3 defaults 1 1


BTW: What distribution of Xenserver are you using? Can you give me a link to an ISO for download? (I am assuming it is free software, if not then nevermind :) )
http://www.citrix.com/lang/English/lp/lp_1688615.asp?ntref=xs-try-page
Its XenServer 6.1
 
Back
Top