Advertisement
Guest User

overcloud

a guest
Apr 11th, 2016
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.03 KB | None | 0 0
  1. ########################################################
  2. overcloiud-full update done after the ramdisk is generated
  3. ########################################################
  4.  
  5. *Replace the existing ramdisk image
  6. virt-customize -a overcloud-full.qcow2 --run-command 'rm /boot/initramfs-3.10.0-327.10.1.el7.x86_64.img'
  7. virt-copy-in -a overcloud-full.qcow2 initramfs-3.10.0-327.10.1.el7.x86_64.img /boot/.
  8.  
  9. *Contents of the /etc/default/grub in the overcloud image has this
  10.  
  11. ><fs> cat /etc/default/grub
  12. GRUB_TIMEOUT=5
  13. GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
  14. GRUB_DEFAULT=saved
  15. GRUB_DISABLE_SUBMENU=true
  16. GRUB_TERMINAL_OUTPUT="console"
  17. GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8 crashkernel=auto rhgb quiet rd.iscsi.ibft=1 rd.iscsi.firmware=1"
  18. GRUB_DISABLE_RECOVERY="true"
  19.  
  20. ><fs>
  21.  
  22. * Regenerate the grub.cfg in overcloud full
  23. virt-customize -a overcloud-full.qcow2 --run-command '/usr/sbin/grub2-mkconfig > /boot/grub2/grub.cfg'
  24. ########################################################
  25. ramdisk update
  26. ########################################################
  27. [stack@undercloud ~]$ ssh [email protected]
  28. The authenticity of host '172.16.0.25 (172.16.0.25)' can't be established.
  29. ECDSA key fingerprint is cc:f6:e4:00:26:9a:17:bb:bf:e0:78:58:6d:ac:1e:f6.
  30. Are you sure you want to continue connecting (yes/no)? yes
  31. Warning: Permanently added '172.16.0.25' (ECDSA) to the list of known hosts.
  32. [heat-admin@overcloud-cephstorage-0 ~]$
  33. [heat-admin@overcloud-cephstorage-0 ~]$ sudo dracut -f -v -N
  34. Executing: /sbin/dracut -f -v -N
  35. dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
  36. dracut module 'dmraid' will not be installed, because command 'dmraid' could not be found!
  37. dracut module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
  38. dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found!
  39. dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found!
  40. dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found!
  41. dracut module 'fcoe' will not be installed, because command 'fcoemon' could not be found!
  42. dracut module 'fcoe' will not be installed, because command 'fcoeadm' could not be found!
  43. dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
  44. dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
  45. dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
  46. dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found!
  47. *** Including module: bash ***
  48. *** Including module: modsign ***
  49. *** Including module: nss-softokn ***
  50. *** Including module: i18n ***
  51. *** Including module: network ***
  52. *** Including module: ifcfg ***
  53. *** Including module: drm ***
  54. *** Including module: plymouth ***
  55. *** Including module: btrfs ***
  56. *** Including module: crypt ***
  57. *** Including module: dm ***
  58. Skipping udev rule: 64-device-mapper.rules
  59. Skipping udev rule: 60-persistent-storage-dm.rules
  60. Skipping udev rule: 55-dm.rules
  61. *** Including module: kernel-modules ***
  62. *** Including module: lvm ***
  63. Skipping udev rule: 64-device-mapper.rules
  64. Skipping udev rule: 56-lvm.rules
  65. Skipping udev rule: 60-persistent-storage-lvm.rules
  66. *** Including module: mdraid ***
  67. Skipping udev rule: 64-md-raid.rules
  68. *** Including module: multipath ***
  69. Skipping udev rule: 40-multipath.rules
  70. *** Including module: qemu ***
  71. *** Including module: qemu-net ***
  72. *** Including module: iscsi ***
  73. *** Including module: nfs ***
  74. *** Including module: resume ***
  75. *** Including module: rootfs-block ***
  76. *** Including module: terminfo ***
  77. *** Including module: udev-rules ***
  78. Skipping udev rule: 91-permissions.rules
  79. *** Including module: virtfs ***
  80. *** Including module: biosdevname ***
  81. *** Including module: systemd ***
  82. *** Including module: usrmount ***
  83. *** Including module: base ***
  84. *** Including module: fs-lib ***
  85. *** Including module: shutdown ***
  86. *** Including modules done ***
  87. *** Installing kernel module dependencies and firmware ***
  88. *** Installing kernel module dependencies and firmware done ***
  89. *** Resolving executable dependencies ***
  90. *** Resolving executable dependencies done***
  91. *** Hardlinking files ***
  92. *** Hardlinking files done ***
  93. *** Stripping files ***
  94. *** Stripping files done ***
  95. *** Generating early-microcode cpio image ***
  96. *** Constructing GenuineIntel.bin ****
  97. *** Store current command line parameters ***
  98. *** Creating image file ***
  99. *** Creating image file done ***
  100. [heat-admin@overcloud-cephstorage-0 ~]$ ls -a;l
  101. . .. .bash_logout .bash_profile .bashrc .ssh
  102. -bash: l: command not found
  103. [heat-admin@overcloud-cephstorage-0 ~]$ ls -al
  104. total 12
  105. drwx------. 3 heat-admin heat-admin 70 Mar 6 10:53 .
  106. drwxr-xr-x. 3 root root 23 Mar 6 10:53 ..
  107. -rw-r--r--. 1 heat-admin heat-admin 18 Jul 8 2015 .bash_logout
  108. -rw-r--r--. 1 heat-admin heat-admin 193 Jul 8 2015 .bash_profile
  109. -rw-r--r--. 1 heat-admin heat-admin 231 Jul 8 2015 .bashrc
  110. drwx------. 2 heat-admin heat-admin 28 Mar 6 10:53 .ssh
  111. [heat-admin@overcloud-cephstorage-0 ~]$ cd /b
  112. bin/ boot/
  113. [heat-admin@overcloud-cephstorage-0 ~]$ cd /boot/
  114. [heat-admin@overcloud-cephstorage-0 boot]$ ls -al
  115. total 129948
  116. dr-xr-xr-x. 4 root root 4096 Apr 8 14:46 .
  117. drwxr-xr-x. 17 root root 4096 Feb 16 22:24 ..
  118. -rw-r--r--. 1 root root 126431 Jan 23 09:58 config-3.10.0-327.10.1.el7.x86_64
  119. drwxr-xr-x. 2 root root 4096 Feb 16 22:07 extlinux
  120. drwx------. 6 root root 104 Mar 6 10:51 grub2
  121. -rw-r--r--. 1 root root 40795539 Feb 16 21:13 initramfs-0-rescue-445c4ae734d94ea58c40016ce52e6388.img
  122. -rw-r--r--. 1 root root 46591642 Apr 8 14:47 initramfs-3.10.0-327.10.1.el7.x86_64.img
  123. -rw-r--r--. 1 root root 15883913 Mar 6 10:55 initramfs-3.10.0-327.10.1.el7.x86_64kdump.img
  124. -rw-------. 1 root root 15512486 Feb 16 21:11 initramfs-3.10.0-327.el7.x86_64.img
  125. -rw-r--r--. 1 root root 601664 Feb 16 21:11 initrd-plymouth.img
  126. -rw-r--r--. 1 root root 252630 Jan 23 10:00 symvers-3.10.0-327.10.1.el7.x86_64.gz
  127. -rw-------. 1 root root 2963279 Jan 23 09:58 System.map-3.10.0-327.10.1.el7.x86_64
  128. -rwxr-xr-x. 1 root root 5153184 Feb 16 21:14 vmlinuz-0-rescue-445c4ae734d94ea58c40016ce52e6388
  129. -rwxr-xr-x. 1 root root 5153184 Jan 23 09:58 vmlinuz-3.10.0-327.10.1.el7.x86_64
  130. -rw-r--r--. 1 root root 171 Jan 23 09:58 .vmlinuz-3.10.0-327.10.1.el7.x86_64.hmac
  131. [heat-admin@overcloud-cephstorage-0 boot]$ cd /root/
  132. -bash: cd: /root/: Permission denied
  133. [heat-admin@overcloud-cephstorage-0 boot]$ ls -al
  134. total 129948
  135. dr-xr-xr-x. 4 root root 4096 Apr 8 14:46 .
  136. drwxr-xr-x. 17 root root 4096 Feb 16 22:24 ..
  137. -rw-r--r--. 1 root root 126431 Jan 23 09:58 config-3.10.0-327.10.1.el7.x86_64
  138. drwxr-xr-x. 2 root root 4096 Feb 16 22:07 extlinux
  139. drwx------. 6 root root 104 Mar 6 10:51 grub2
  140. -rw-r--r--. 1 root root 40795539 Feb 16 21:13 initramfs-0-rescue-445c4ae734d94ea58c40016ce52e6388.img
  141. -rw-r--r--. 1 root root 46591642 Apr 8 14:47 initramfs-3.10.0-327.10.1.el7.x86_64.img
  142. -rw-r--r--. 1 root root 15883913 Mar 6 10:55 initramfs-3.10.0-327.10.1.el7.x86_64kdump.img
  143. -rw-------. 1 root root 15512486 Feb 16 21:11 initramfs-3.10.0-327.el7.x86_64.img
  144. -rw-r--r--. 1 root root 601664 Feb 16 21:11 initrd-plymouth.img
  145. -rw-r--r--. 1 root root 252630 Jan 23 10:00 symvers-3.10.0-327.10.1.el7.x86_64.gz
  146. -rw-------. 1 root root 2963279 Jan 23 09:58 System.map-3.10.0-327.10.1.el7.x86_64
  147. -rwxr-xr-x. 1 root root 5153184 Feb 16 21:14 vmlinuz-0-rescue-445c4ae734d94ea58c40016ce52e6388
  148. -rwxr-xr-x. 1 root root 5153184 Jan 23 09:58 vmlinuz-3.10.0-327.10.1.el7.x86_64
  149. -rw-r--r--. 1 root root 171 Jan 23 09:58 .vmlinuz-3.10.0-327.10.1.el7.x86_64.hmac
  150. [heat-admin@overcloud-cephstorage-0 boot]$ sudo cd /root
  151. [heat-admin@overcloud-cephstorage-0 boot]$ ls
  152. config-3.10.0-327.10.1.el7.x86_64
  153. extlinux
  154. grub2
  155. initramfs-0-rescue-445c4ae734d94ea58c40016ce52e6388.img
  156. initramfs-3.10.0-327.10.1.el7.x86_64.img
  157. initramfs-3.10.0-327.10.1.el7.x86_64kdump.img
  158. initramfs-3.10.0-327.el7.x86_64.img
  159. initrd-plymouth.img
  160. symvers-3.10.0-327.10.1.el7.x86_64.gz
  161. System.map-3.10.0-327.10.1.el7.x86_64
  162. vmlinuz-0-rescue-445c4ae734d94ea58c40016ce52e6388
  163. vmlinuz-3.10.0-327.10.1.el7.x86_64
  164. [heat-admin@overcloud-cephstorage-0 boot]$ ls -al
  165. total 129948
  166. dr-xr-xr-x. 4 root root 4096 Apr 8 14:46 .
  167. drwxr-xr-x. 17 root root 4096 Feb 16 22:24 ..
  168. -rw-r--r--. 1 root root 126431 Jan 23 09:58 config-3.10.0-327.10.1.el7.x86_64
  169. drwxr-xr-x. 2 root root 4096 Feb 16 22:07 extlinux
  170. drwx------. 6 root root 104 Mar 6 10:51 grub2
  171. -rw-r--r--. 1 root root 40795539 Feb 16 21:13 initramfs-0-rescue-445c4ae734d94ea58c40016ce52e6388.img
  172. -rw-r--r--. 1 root root 46591642 Apr 8 14:47 initramfs-3.10.0-327.10.1.el7.x86_64.img
  173. -rw-r--r--. 1 root root 15883913 Mar 6 10:55 initramfs-3.10.0-327.10.1.el7.x86_64kdump.img
  174. -rw-------. 1 root root 15512486 Feb 16 21:11 initramfs-3.10.0-327.el7.x86_64.img
  175. -rw-r--r--. 1 root root 601664 Feb 16 21:11 initrd-plymouth.img
  176. -rw-r--r--. 1 root root 252630 Jan 23 10:00 symvers-3.10.0-327.10.1.el7.x86_64.gz
  177. -rw-------. 1 root root 2963279 Jan 23 09:58 System.map-3.10.0-327.10.1.el7.x86_64
  178. -rwxr-xr-x. 1 root root 5153184 Feb 16 21:14 vmlinuz-0-rescue-445c4ae734d94ea58c40016ce52e6388
  179. -rwxr-xr-x. 1 root root 5153184 Jan 23 09:58 vmlinuz-3.10.0-327.10.1.el7.x86_64
  180. -rw-r--r--. 1 root root 171 Jan 23 09:58 .vmlinuz-3.10.0-327.10.1.el7.x86_64.hmac
  181. [heat-admin@overcloud-cephstorage-0 boot]$ date
  182. Fri Apr 8 15:04:42 UTC 2016
  183. [heat-admin@overcloud-cephstorage-0 boot]$ pwd
  184. /boot
  185. [heat-admin@overcloud-cephstorage-0 boot]$ lsinitrd initramfs-3.10.0-327.10.1.el7.x86_64
  186. initramfs-3.10.0-327.10.1.el7.x86_64 does not exist
  187.  
  188. Usage: lsinitrd [options] [<initramfs file> [<filename> [<filename> [...] ]]]
  189. Usage: lsinitrd [options] -k <kernel version>
  190.  
  191. -h, --help print a help message and exit.
  192. -s, --size sort the contents of the initramfs by size.
  193. -m, --mod list modules.
  194. -f, --file <filename> print the contents of <filename>.
  195. -k, --kver <kernel version> inspect the initramfs of <kernel version>.
  196.  
  197. [heat-admin@overcloud-cephstorage-0 boot]$ lsinitrd initramfs initramfs-3.10.0-327.10.1.el7.x86_64
  198. initramfs does not exist
  199.  
  200. Usage: lsinitrd [options] [<initramfs file> [<filename> [<filename> [...] ]]]
  201. Usage: lsinitrd [options] -k <kernel version>
  202.  
  203. -h, --help print a help message and exit.
  204. -s, --size sort the contents of the initramfs by size.
  205. -m, --mod list modules.
  206. -f, --file <filename> print the contents of <filename>.
  207. -k, --kver <kernel version> inspect the initramfs of <kernel version>.
  208.  
  209. [heat-admin@overcloud-cephstorage-0 boot]$ lsinitrd -m initramfs initramfs-3.10.0-327.10.1.el7.x86_64
  210. initramfs does not exist
  211.  
  212. Usage: lsinitrd [options] [<initramfs file> [<filename> [<filename> [...] ]]]
  213. Usage: lsinitrd [options] -k <kernel version>
  214.  
  215. -h, --help print a help message and exit.
  216. -s, --size sort the contents of the initramfs by size.
  217. -m, --mod list modules.
  218. -f, --file <filename> print the contents of <filename>.
  219. -k, --kver <kernel version> inspect the initramfs of <kernel version>.
  220.  
  221. [heat-admin@overcloud-cephstorage-0 boot]$ lsinitrd -m initramfs initramfs-3.10.0-327.10.1.el7.x86_64.img
  222. initramfs does not exist
  223.  
  224. Usage: lsinitrd [options] [<initramfs file> [<filename> [<filename> [...] ]]]
  225. Usage: lsinitrd [options] -k <kernel version>
  226.  
  227. -h, --help print a help message and exit.
  228. -s, --size sort the contents of the initramfs by size.
  229. -m, --mod list modules.
  230. -f, --file <filename> print the contents of <filename>.
  231. -k, --kver <kernel version> inspect the initramfs of <kernel version>.
  232.  
  233. [heat-admin@overcloud-cephstorage-0 boot]$ lsinitrd -m initramfs-3.10.0-327.10.1.el7.x86_64.img Image: initramfs-3.10.0-327.10.1.el7.x86_64.img: 45M
  234. ========================================================================
  235. Early CPIO image
  236. ========================================================================
  237. drwxr-xr-x 3 root root 0 Apr 8 14:46 .
  238. -rw-r--r-- 1 root root 2 Apr 8 14:46 early_cpio
  239. drwxr-xr-x 3 root root 0 Apr 8 14:46 kernel
  240. drwxr-xr-x 3 root root 0 Apr 8 14:46 kernel/x86
  241. drwxr-xr-x 2 root root 0 Apr 8 14:46 kernel/x86/microcode
  242. -rw-r--r-- 1 root root 662528 Apr 8 14:46 kernel/x86/microcode/GenuineIntel.bin
  243. ========================================================================
  244.  
  245. Version: dracut-033-360.el7_2
  246.  
  247. dracut modules:
  248. bash
  249. modsign
  250. nss-softokn
  251. i18n
  252. network
  253. ifcfg
  254. drm
  255. plymouth
  256. btrfs
  257. crypt
  258. dm
  259. kernel-modules
  260. lvm
  261. mdraid
  262. multipath
  263. qemu
  264. qemu-net
  265. iscsi
  266. nfs
  267. resume
  268. rootfs-block
  269. terminfo
  270. udev-rules
  271. virtfs
  272. biosdevname
  273. systemd
  274. usrmount
  275. base
  276. fs-lib
  277. shutdown
  278. ========================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement