4 Replies Latest reply: May 19, 2012 10:20 AM by supriyashivkumar RSS

Questions regarding partitions

supriyashivkumar Newbie

Hi,

 

How does the partition scheme work?

I have two partitions

"/":

size: 5

"/var":

  size: 2

 

 

When the appliance is built,  I do not see the partitions /var on the appliance when I perform a df -h.

The log during the build process does show /var mounting to /dev/sda2.

 

I am building the appliance in amazon using ebs delivery plugin.

 

 

Also what is hte total numbner of partitions I can specify.

If I also do

"/":

size: 5

"/var":

size: 2

"/tmp":

    size: 1

 

This scheme fails. Is there a restriction on the number of partitions.

 

 

Thanks,

Supriya

  • 1. Re: Questions regarding partitions
    Marek Goldmann Master

    If you're using the ec2 aplugin to create S3 or EBS-based appliances the partitions are merged as previous Amazon kernel haven't supported partitioned disks. We stick with it stii and there is no plan so far to add support for partitioned disks on AMIs in BoxGrinder.

     

    Merging means that all data is copied into the root partition, there is no data loss at all.

     

    There shouldn't be any issues with partition count. Please create a bug report and attach build log.

     

    --Marek

  • 2. Re: Questions regarding partitions
    supriyashivkumar Newbie

    D, [2012-04-09T11:00:17.840987 #31377] DEBUG -- : Initializing partition table for /dev/loop0 with msdos layout

    D, [2012-04-09T11:00:17.976178 #31377] DEBUG -- : Assigning partitions to disks

    D, [2012-04-09T11:00:17.976473 #31377] DEBUG -- : Assigned / to sda1 at 0 at size 4096

    D, [2012-04-09T11:00:17.976675 #31377] DEBUG -- : Assigned /tmp to sda2 at 4096 at size 1024

    D, [2012-04-09T11:00:17.976899 #31377] DEBUG -- : Assigned /var to sda3 at 5120 at size 1024

    D, [2012-04-09T11:00:17.977071 #31377] DEBUG -- : Assigned /boot to sda5 at 6144 at size 102

    D, [2012-04-09T11:00:17.977254 #31377] DEBUG -- : Creating partitions

    D, [2012-04-09T11:00:17.977438 #31377] DEBUG -- : Add primary part at 0 of size 4096

    D, [2012-04-09T11:00:17.999629 #31377] DEBUG -- : Add primary part at 4096 of size 1024

    D, [2012-04-09T11:00:18.026332 #31377] DEBUG -- : Add primary part at 5120 of size 1024

    D, [2012-04-09T11:00:18.050031 #31377] DEBUG -- : Added extended part at 6144 of size 102

    D, [2012-04-09T11:00:18.086854 #31377] DEBUG -- : Add logical part at 6144 of size 102

    D, [2012-04-09T11:00:18.139871 #31377] DEBUG -- : Unable to create appliance : Failed mount disks : Unexpected number of partitions from kpartx: 5 != 4

    D, [2012-04-09T11:00:18.140282 #31377] DEBUG -- : Losetup remove /dev/loop0

    E, [2012-04-09T11:00:18.202485 #31377] ERROR -- : /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.3.11/lib/boxgrinder-core/helpers/exec-helper.rb:85:in `execute'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:107:in `execute_appliance_creator'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:71:in `build_with_appliance_creator'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rhel/rhel-plugin.rb:33:in `build_rhel'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb:44:in `execute'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/base-plugin.rb:172:in `run'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:184:in `execute_plugin'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:207:in `execute_without_userchange'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:129:in `execute_plugin_chain'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:125:in `each'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:125:in `execute_plugin_chain'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:164:in `create'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/bin/boxgrinder-build:202

    /usr/bin/boxgrinder-build:19:in `load'

    /usr/bin/boxgrinder-build:19

    F, [2012-04-09T11:00:18.203056 #31377] FATAL -- : RuntimeError: An error occurred while executing command: 'appliance-creator -d -v -t 'build/appliances/x86_64/centos/5/c57-64-bit-test/1.0/centos-plugin/tmp' --cache=/var/cache/boxgrinder/rpms-cache/x86_64/centos/5 --config 'build/appliances/x86_64/centos/5/c57-64-bit-test/1.0/centos-plugin/tmp/c57-64-bit-test.ks' -o 'build/appliances/x86_64/centos/5/c57-64-bit-test/1.0/centos-plugin/tmp' --name 'c57-64-bit-test' --vmem 256 --vcpu 1 --format raw', process exited with wrong exit status: 1

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.3.11/lib/boxgrinder-core/helpers/exec-helper.rb:92:in `execute'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:107:in `execute_appliance_creator'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:71:in `build_with_appliance_creator'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/rhel/rhel-plugin.rb:33:in `build_rhel'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb:44:in `execute'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/base-plugin.rb:172:in `run'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:184:in `execute_plugin'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:207:in `execute_without_userchange'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:129:in `execute_plugin_chain'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:125:in `each'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:125:in `execute_plugin_chain'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:164:in `create'

    /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/bin/boxgrinder-build:202

    /usr/bin/boxgrinder-build:19:in `load'

    /usr/bin/boxgrinder-build:19

     

    Even reordering partitions yielded same results.

  • 3. Re: Questions regarding partitions
    msavy Novice

    Are you using VirtualBox?

  • 4. Re: Questions regarding partitions
    supriyashivkumar Newbie

    Its an ec2-meta appiliance.