First, the hdparm does not work with anything because some partitions are already mounted and swap is on when it gets invoked.
Second, our hack is to mount/umount the partitions before this gets invoked.
In the file pmanager.py:
look for self.umount_target() calls, self.mount_target() calls, and the two functions:
For Fuel 4.1
Install MirantisOpenStack 4.1, and the patch https:/ /drive. google. com/file/ d/0BxTNdnj6Yn5f YTBGVGRBSnJpVXM /edit?usp= sharing ( fuel_initramfs_ debug), plus modifications in the pmanager.py.
First, the hdparm does not work with anything because some partitions are already mounted and swap is on when it gets invoked.
Second, our hack is to mount/umount the partitions before this gets invoked.
In the file pmanager.py:
look for self.umount_ target( ) calls, self.mount_target() calls, and the two functions:
def umount_ target( self):
self.log_ lvm("umount everything", False)
for disk in self.iterdisks():
self. late("umount /target/dev /target/sys /target/proc /target/boot /target")
self. late("umount {0}{1}3" .format( self._disk_ dev(disk) ,
self. _pseparator( disk["id" ])))
self. late("swapoff {0}{1}4" .format( self._disk_ dev(disk) ,
self. _pseparator( disk["id" ])))
def mount_target(self):
self. late("mount {0}{1}3 /target" .format( self._disk_ dev(disk) ,
self. _pseparator( disk["id" ])))
self. late("mount {0}{1}2 /target/ boot".format( self._disk_ dev(disk) ,
self. _pseparator( disk["id" ])))
self. late("mount -t proc none /target/proc")
self. late("mount -o bind /dev /target/dev")
self. late("mount -o bind /sys /target/sys")
self. late("swapon {0}{1}4" .format( self._disk_ dev(disk) ,
self. _pseparator( disk["id" ])))
for disk in self.iterdisks():
But we do not think this is a viable solution.
A clean patch would be great!