[Openstack] [Cinder][VMWare]Not able see attached volume without instance reboot.

foss geek thefossgeek at gmail.com
Sun Dec 7 19:15:50 UTC 2014


I able to modify debian-2.6.32-i686.vmdk using  guestfish.

$ sudo guestfish -a debian-2.6.32-i686.vmdk

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: 'help' for help on commands
      'man' to read the manual
      'quit' to quit the shell

><fs> run
 100%
⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧
00:00
><fs> mount /dev/sda1 /
><fs> ls
ls should have 1 parameter
type 'help ls' for help on ls
><fs> help ls
NAME
    ls - list the files in a directory

SYNOPSIS
     ls directory

DESCRIPTION
    List the files in "directory" (relative to the root directory, there is
    no cwd). The '.' and '..' entries are not returned, but hidden files are
    shown.

><fs> ls /etc/modules
modules
><fs> vi /etc/modules
- added acpiphp module and saved
><fs> umount-all
><fs> quit

I just added acpiphp module in /etc/modules.

After instance launch I can see acpiphp loaded:

# dmesg | grep acpiphp
[    0.000000] BIOS-provided physical RAM map:
[    3.131832] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    3.131906] acpiphp: Slot [32] registered
[    3.132009] acpiphp: Slot [33] registered
[    3.132103] acpiphp: Slot [34] registered
[    3.132196] acpiphp: Slot [35] registered
[    3.132289] acpiphp: Slot [36] registered

However, fdisk -l on the launched instance still does not show the recently
attached volume.

After instance reboot I am able to see attached volume:

# fdisk  -l

Disk /dev/sda: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ae3eb

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         119      949248   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2             119         131       96257    5  Extended
Partition 2 does not end on cylinder boundary.
/dev/sda5             119         131       96256   82  Linux swap / Solaris

Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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

Any ideas?


-- 
Thanks & Regards
E-Mail: thefossgeek at gmail.com
IRC: neophy
Blog : http://lmohanphy.livejournal.com/



On Sat, Dec 6, 2014 at 7:05 PM, foss geek <thefossgeek at gmail.com> wrote:

> Dear All,
>
> I am using the Debian VMDK image for testing Cinder with VMware vCenter
> VMDK driver:
>
> http://partnerweb.vmware.com/programs/vmdkimage/debian-2.6.32-i686.vmdk
>
> https://wiki.openstack.org/wiki/NovaVMware/DeveloperGuide
>
> It seems by default the above debian vmdk image not configured to load
> "acpiphp" kernel module at boot time.
>
> Here is /etc/module file after instance launch
>
> # cat /etc/modules
>
> # /etc/modules: kernel modules to load at boot time.
> #
> # This file contains the names of kernel modules that should be loaded
> # at boot time, one per line. Lines beginning with "#" are ignored.
> # Parameters can be specified after the module name.
>
> Loop
>
> # dmesg |grep acpiphp:
>
> Because of this I am not able see attached volume in instance. After
> attaching volume I did the below steps manually and still it requires VM
> reboot to see attached volume.
>
> # modprobe -v acpiphp
> insmod /lib/modules/2.6.32-5-686/kernel/drivers/pci/hotplug/acpiphp.ko
>
> root at debian:~# dmesg |grep acpiphp:
> [ 2614.352369] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
> [ 2614.352765] acpiphp: Slot [32] registered
> [ 2614.352873] acpiphp: Slot [33] registered
>
> # echo “acpiphp” >> /etc/modules
>
> My question is:
>
> Is there any tool in Linux to edit the above VMDK and add acpiphp to load
> at boot time?
>
> what are other kernel module required to hotplug volume to running
> instance?
>
>
> --
> Thanks & Regards
> E-Mail: thefossgeek at gmail.com
> IRC: neophy
> Blog : http://lmohanphy.livejournal.com/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141208/e28e6167/attachment.html>


More information about the Openstack mailing list