Jane Wayne
2012-Jun-01 09:18 UTC
why can''t i install parted on CentOS distributed with XCP ISO binary?
i am investigating what the XCP installation process did to my hard drive. when i issue: fdisk -l, i get the following output. WARNING: GPT (GUID Partition Table) detected on ''/dev/sda''! The util fdisk doesn''t support GPT. Use GNU Parted. WARNING: The size of this disk is 3.0 TB (3000592982016 bytes). DOS partition table format can not be used on drives for volumes larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID partition table format (GPT). Disk /dev/sda: 3000.5 GB, 3000592982016 bytes 256 heads, 63 sectors/track, 363376 cylinders Units = cylinders of 16128 * 512 = 8257536 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 266306 2147483647+ ee EFI GPT as such, i wanted to run the "parted" command. however, running this command says "command not found." i tried to install the parted utility: yum install parted but the output was Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Setting up Install Process No package parted available. Nothing to do what''s going on here? what do i have to modify in /etc/yum.repos.d/* if anything? any help is appreciated.
Fajar A. Nugraha
2012-Jun-01 09:53 UTC
Re: why can''t i install parted on CentOS distributed with XCP ISO binary?
On Fri, Jun 1, 2012 at 4:18 PM, Jane Wayne <jane.wayne2978@gmail.com> wrote:> as such, i wanted to run the "parted" command. however, running this > command says "command not found." i tried to install the parted > utility: > > yum install parted > > but the output was > > Loaded plugins: fastestmirror > Loading mirror speeds from cached hostfile > Setting up Install Process > No package parted available. > Nothing to doThat is expected behaviour> > what''s going on here? what do i have to modify in /etc/yum.repos.d/* > if anything?Nothing. You''re not supposed to install anything on XCP. Forcing to do so is unsupported, and might break the system. Think vmware vsphere hypervisor. Treat XCP the same way. While XCP userland is 90-something-percent centos, some packages are modified to be specific to XCP. Had centos repo been enabled, those packages would be overwritten with, making xcp stop working. So to be safe, the repositories are disabled. If you understand the risks and consequences, and pretty sure you want to do it anyway, you could create your own repo file (or probably just enable existing ones) temporarily. Or just download and copy the RPMS manually (there should only be several needed for parted and its dependencies). Don''t complain if anything breaks though. -- Fajar
Jane Wayne
2012-Jun-01 10:53 UTC
Re: why can''t i install parted on CentOS distributed with XCP ISO binary?
Fajar, thanks. if that behavior is intentional, then i''ll accept that. also, thanks for the pointer of "forcing" the install. that really helps if decide to tinker some more. On Fri, Jun 1, 2012 at 5:53 AM, Fajar A. Nugraha <list@fajar.net> wrote:> On Fri, Jun 1, 2012 at 4:18 PM, Jane Wayne <jane.wayne2978@gmail.com> wrote: > >> as such, i wanted to run the "parted" command. however, running this >> command says "command not found." i tried to install the parted >> utility: >> >> yum install parted >> >> but the output was >> >> Loaded plugins: fastestmirror >> Loading mirror speeds from cached hostfile >> Setting up Install Process >> No package parted available. >> Nothing to do > > That is expected behaviour > >> >> what''s going on here? what do i have to modify in /etc/yum.repos.d/* >> if anything? > > Nothing. You''re not supposed to install anything on XCP. Forcing to do > so is unsupported, and might break the system. > > Think vmware vsphere hypervisor. Treat XCP the same way. > > While XCP userland is 90-something-percent centos, some packages are > modified to be specific to XCP. Had centos repo been enabled, those > packages would be overwritten with, making xcp stop working. So to be > safe, the repositories are disabled. > > If you understand the risks and consequences, and pretty sure you want > to do it anyway, you could create your own repo file (or probably just > enable existing ones) temporarily. Or just download and copy the RPMS > manually (there should only be several needed for parted and its > dependencies). > > Don''t complain if anything breaks though. > > -- > Fajar