Guest User

jampreissue

a guest
May 19th, 2020
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.39 KB | None | 0 0
  1. jam@AH-NOC-SCR01:~$ df -h
  2. Filesystem Size Used Avail Use% Mounted on
  3. udev 7.9G 0 7.9G 0% /dev
  4. tmpfs 1.6G 1.1M 1.6G 1% /run
  5. /dev/mapper/AH--NOC--SCR01--vg-root 12G 12G 0 100% /
  6. tmpfs 7.9G 120K 7.9G 1% /dev/shm
  7. tmpfs 5.0M 0 5.0M 0% /run/lock
  8. tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
  9. /dev/sda1 472M 131M 317M 30% /boot
  10. tmpfs 1.6G 0 1.6G 0% /run/user/1000
  11. jam@AH-NOC-SCR01:~$ sudo df -h
  12. [sudo] password for jam:
  13. Filesystem Size Used Avail Use% Mounted on
  14. udev 7.9G 0 7.9G 0% /dev
  15. tmpfs 1.6G 1.2M 1.6G 1% /run
  16. /dev/mapper/AH--NOC--SCR01--vg-root 12G 12G 0 100% /
  17. tmpfs 7.9G 120K 7.9G 1% /dev/shm
  18. tmpfs 5.0M 0 5.0M 0% /run/lock
  19. tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
  20. /dev/sda1 472M 131M 317M 30% /boot
  21. overlay 12G 12G 0 100% /var/lib/docker/overlay2/889db7584e116b89c7f924d36230cf527fd24a8da427285f62e53356713aa45b/merged
  22. overlay 12G 12G 0 100% /var/lib/docker/overlay2/ccb822cdd6fc66f2ce7d91d8eb2398dca84620460ed5a54efbc856bbdc0573c6/merged
  23. overlay 12G 12G 0 100% /var/lib/docker/overlay2/1779fae0c00bcc63d41d44df0a77196ca57804ef372357769ff946def782f33a/merged
  24. overlay 12G 12G 0 100% /var/lib/docker/overlay2/823b312c46515614a5cc7770e324e27d65de068484a8b9545f9bee9b6aa947a0/merged
  25. overlay 12G 12G 0 100% /var/lib/docker/overlay2/397d17cb341b11e08ffab170fb3c6834bb9e4f3cee3bcb91c96d75af8e13cab4/merged
  26. shm 64M 0 64M 0% /var/lib/docker/containers/b8dc66ba6cf3dbe89f3711f79a527374127b4e6e6b4888774dc5cb333397fe2f/mounts/shm
  27. shm 64M 0 64M 0% /var/lib/docker/containers/d9fc034d09b38aa1ddb4ceef8b9f435f3f42d92c13bb87e3447bf0280c794b35/mounts/shm
  28. shm 64M 0 64M 0% /var/lib/docker/containers/be54ee6fc119b887959be6a17ca02a3d07d34aa6ad23406b5a8549d0bf895598/mounts/shm
  29. shm 64M 0 64M 0% /var/lib/docker/containers/da622b6c22d055fb85f75b006146c7db68771554a029cb435241b5c43c04157a/mounts/shm
  30. tmpfs 1.6G 0 1.6G 0% /run/user/1000
  31. overlay 12G 12G 0 100% /var/lib/docker/overlay2/bced540a1937fc88b25fff542608ab8dd3811c374d9d2efae7d94cefcef7614e/merged
  32. shm 64M 0 64M 0% /var/lib/docker/containers/7f62955f107b4057a7cd5fa2bf2a0356c6baeb2061c62b013675eceff8e3ac5c/mounts/shm
  33. jam@AH-NOC-SCR01:~$
  34. jam@AH-NOC-SCR01:~$ sudo apt-get install cloud-guest-utils
  35. Reading package lists... Done
  36. Building dependency tree
  37. Reading state information... Done
  38. cloud-guest-utils is already the newest version (0.30-0ubuntu5).
  39. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  40. jam@AH-NOC-SCR01:~$ sudo swapoff -a
  41. jam@AH-NOC-SCR01:~$ sudo parted
  42. GNU Parted 3.2
  43. Using /dev/sda
  44. Welcome to GNU Parted! Type 'help' to view a list of commands.
  45. (parted)
  46. (parted)
  47. (parted)
  48. (parted)
  49. (parted) print all
  50. Model: VMware Virtual disk (scsi)
  51. Disk /dev/sda: 17.2GB
  52. Sector size (logical/physical): 512B/512B
  53. Partition Table: msdos
  54. Disk Flags:
  55.  
  56. Number Start End Size Type File system Flags
  57. 1 1049kB 512MB 511MB primary ext2 boot
  58. 2 513MB 17.2GB 16.7GB extended
  59. 5 513MB 17.2GB 16.7GB logical lvm
  60.  
  61.  
  62. Model: Linux device-mapper (linear) (dm)
  63. Disk /dev/mapper/AH--NOC--SCR01--vg-swap_1: 4295MB
  64. Sector size (logical/physical): 512B/512B
  65. Partition Table: loop
  66. Disk Flags:
  67.  
  68. Number Start End Size File system Flags
  69. 1 0.00B 4295MB 4295MB linux-swap(v1)
  70.  
  71.  
  72. Model: Linux device-mapper (linear) (dm)
  73. Disk /dev/mapper/AH--NOC--SCR01--vg-root: 12.4GB
  74. Sector size (logical/physical): 512B/512B
  75. Partition Table: loop
  76. Disk Flags:
  77.  
  78. Number Start End Size File system Flags
  79. 1 0.00B 12.4GB 12.4GB ext4
  80.  
  81.  
  82. Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
  83. Model: NECVMWar VMware SATA CD00 (scsi)
  84. Disk /dev/sr0: 869MB
  85. Sector size (logical/physical): 2048B/2048B
  86. Partition Table: mac
  87. Disk Flags:
  88.  
  89. Number Start End Size File system Name Flags
  90. 1 2048B 6143B 4096B Apple
  91. 2 212MB 214MB 2490kB EFI
  92.  
  93.  
  94. (parted)
  95. (parted) rm 2
  96. Error: Partition(s) 5 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now
  97. before making further changes.
  98. Ignore/Cancel? c
  99. (parted) rm 3
  100. Error: Partition doesn't exist.
  101. (parted) print all
  102. Model: VMware Virtual disk (scsi)
  103. Disk /dev/sda: 17.2GB
  104. Sector size (logical/physical): 512B/512B
  105. Partition Table: msdos
  106. Disk Flags:
  107.  
  108. Number Start End Size Type File system Flags
  109. 1 1049kB 512MB 511MB primary ext2 boot
  110.  
  111.  
  112. Model: Linux device-mapper (linear) (dm)
  113. Disk /dev/mapper/AH--NOC--SCR01--vg-swap_1: 4295MB
  114. Sector size (logical/physical): 512B/512B
  115. Partition Table: loop
  116. Disk Flags:
  117.  
  118. Number Start End Size File system Flags
  119. 1 0.00B 4295MB 4295MB linux-swap(v1)
  120.  
  121.  
  122. Model: Linux device-mapper (linear) (dm)
  123. Disk /dev/mapper/AH--NOC--SCR01--vg-root: 12.4GB
  124. Sector size (logical/physical): 512B/512B
  125. Partition Table: loop
  126. Disk Flags:
  127.  
  128. Number Start End Size File system Flags
  129. 1 0.00B 12.4GB 12.4GB ext4
  130.  
  131.  
  132. Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
  133. Model: NECVMWar VMware SATA CD00 (scsi)
  134. Disk /dev/sr0: 869MB
  135. Sector size (logical/physical): 2048B/2048B
  136. Partition Table: mac
  137. Disk Flags:
  138.  
  139. Number Start End Size File system Name Flags
  140. 1 2048B 6143B 4096B Apple
  141. 2 212MB 214MB 2490kB EFI
  142.  
  143.  
  144. () sudo growpart /dev/vda 1
  145. align-check TYPE N check partition N for TYPE(min|opt) alignment
  146. help [COMMAND] print general help, or help on COMMAND
  147. mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
  148. mkpart PART-TYPE [FS-TYPE] START END make a partition
  149. name NUMBER NAME name partition NUMBER as NAME
  150. print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
  151. quit exit program
  152. rescue START END rescue a lost partition near START and END
  153. resizepart NUMBER END resize partition NUMBER
  154. rm NUMBER delete partition NUMBER
  155. select DEVICE choose the device to edit
  156. disk_set FLAG STATE change the FLAG on selected device
  157. disk_toggle [FLAG] toggle the state of FLAG on selected device
  158. set NUMBER FLAG STATE change the FLAG on partition NUMBER
  159. toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
  160. unit UNIT set the default unit to UNIT
  161. version display the version number and copyright information of GNU Parted
  162. align-check TYPE N check partition N for TYPE(min|opt) alignment
  163. help [COMMAND] print general help, or help on COMMAND
  164. mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
  165. mkpart PART-TYPE [FS-TYPE] START END make a partition
  166. name NUMBER NAME name partition NUMBER as NAME
  167. print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
  168. quit exit program
  169. rescue START END rescue a lost partition near START and END
  170. resizepart NUMBER END resize partition NUMBER
  171. rm NUMBER delete partition NUMBER
  172. select DEVICE choose the device to edit
  173. disk_set FLAG STATE change the FLAG on selected device
  174. disk_toggle [FLAG] toggle the state of FLAG on selected device
  175. set NUMBER FLAG STATE change the FLAG on partition NUMBER
  176. toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
  177. unit UNIT set the default unit to UNIT
  178. version display the version number and copyright information of GNU Parted
  179. align-check TYPE N check partition N for TYPE(min|opt) alignment
  180. help [COMMAND] print general help, or help on COMMAND
  181. mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
  182. mkpart PART-TYPE [FS-TYPE] START END make a partition
  183. name NUMBER NAME name partition NUMBER as NAME
  184. print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
  185. quit exit program
  186. rescue START END rescue a lost partition near START and END
  187. resizepart NUMBER END resize partition NUMBER
  188. rm NUMBER delete partition NUMBER
  189. select DEVICE choose the device to edit
  190. disk_set FLAG STATE change the FLAG on selected device
  191. disk_toggle [FLAG] toggle the state of FLAG on selected device
  192. set NUMBER FLAG STATE change the FLAG on partition NUMBER
  193. toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
  194. unit UNIT set the default unit to UNIT
  195. version display the version number and copyright information of GNU Parted
  196. align-check TYPE N check partition N for TYPE(min|opt) alignment
  197. help [COMMAND] print general help, or help on COMMAND
  198. mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
  199. mkpart PART-TYPE [FS-TYPE] START END make a partition
  200. name NUMBER NAME name partition NUMBER as NAME
  201. print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
  202. quit exit program
  203. rescue START END rescue a lost partition near START and END
  204. resizepart NUMBER END resize partition NUMBER
  205. rm NUMBER delete partition NUMBER
  206. select DEVICE choose the device to edit
  207. disk_set FLAG STATE change the FLAG on selected device
  208. disk_toggle [FLAG] toggle the state of FLAG on selected device
  209. set NUMBER FLAG STATE change the FLAG on partition NUMBER
  210. toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
  211. unit UNIT set the default unit to UNIT
  212. version display the version number and copyright information of GNU Parted
  213. (parted) exit
  214. align-check TYPE N check partition N for TYPE(min|opt) alignment
  215. help [COMMAND] print general help, or help on COMMAND
  216. mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
  217. mkpart PART-TYPE [FS-TYPE] START END make a partition
  218. name NUMBER NAME name partition NUMBER as NAME
  219. print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
  220. quit exit program
  221. rescue START END rescue a lost partition near START and END
  222. resizepart NUMBER END resize partition NUMBER
  223. rm NUMBER delete partition NUMBER
  224. select DEVICE choose the device to edit
  225. disk_set FLAG STATE change the FLAG on selected device
  226. disk_toggle [FLAG] toggle the state of FLAG on selected device
  227. set NUMBER FLAG STATE change the FLAG on partition NUMBER
  228. toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
  229. unit UNIT set the default unit to UNIT
  230. version display the version number and copyright information of GNU Parted
  231. (parted)
  232. (parted) q
  233. Information: You may need to update /etc/fstab.
  234.  
  235. jam@AH-NOC-SCR01:~$
  236. jam@AH-NOC-SCR01:~$
  237. jam@AH-NOC-SCR01:~$ sudo growpart /dev/vda 1
  238. FAILED: /dev/vda: does not exist
  239. jam@AH-NOC-SCR01:~$ df -h
  240. Filesystem Size Used Avail Use% Mounted on
  241. udev 7.9G 0 7.9G 0% /dev
  242. tmpfs 1.6G 1.1M 1.6G 1% /run
  243. /dev/mapper/AH--NOC--SCR01--vg-root 12G 12G 0 100% /
  244. tmpfs 7.9G 120K 7.9G 1% /dev/shm
  245. tmpfs 5.0M 0 5.0M 0% /run/lock
  246. tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
  247. /dev/sda1 472M 131M 317M 30% /boot
  248. tmpfs 1.6G 0 1.6G 0% /run/user/1000
  249. jam@AH-NOC-SCR01:~$ sudo growpart /dev/vda1
  250. growpart disk partition
  251. rewrite partition table so that partition takes up all the space it can
  252. options:
  253. -h | --help print Usage and exit
  254. --fudge F if part could be resized, but change would be
  255. less than 'F' bytes, do not resize (default: 1048576)
  256. -N | --dry-run only report what would be done, show new 'sfdisk -d'
  257. -v | --verbose increase verbosity / debug
  258. -u | --update R update the the kernel partition table info after growing
  259. this requires kernel support and 'partx --update'
  260. R is one of:
  261. - 'auto' : [default] update partition if possible
  262. - 'force' : try despite sanity checks (fail on failure)
  263. - 'off' : do not attempt
  264. - 'on' : fail if sanity checks indicate no support
  265.  
  266. Example:
  267. - growpart /dev/sda 1
  268. Resize partition 1 on /dev/sda
  269. must supply partition-number
  270. jam@AH-NOC-SCR01:~$ sudo growpart /dev/-bash: cannot create temp file for here-document: No space left on device
  271. -bash: cannot create temp file for here-document: No space left on device
  272. -bash: cannot create temp file for here-document: No space left on device
  273. -bash: cannot create temp file for here-document: No space left on device
  274. -bash: cannot create temp file for here-document: No space left on device
  275. -bash: cannot create temp file for here-document: No space left on device
  276. -bash: cannot create temp file for here-document: No space left on device
  277. -bash: cannot create temp file for here-document: No space left on device
  278. -bash: cannot create temp file for here-document: No space left on device
  279. -bash: cannot create temp file for here-document: No space left on device
  280. -bash: cannot create temp file for here-document: No space left on device
  281. -bash: cannot create temp file for here-document: No space left on device
  282. -bash: cannot create temp file for here-document: No space left on device
  283. -bash: cannot create temp file for here-document: No space left on device
  284. -bash: cannot create temp file for here-document: No space left on device
  285. -bash: cannot create temp file for here-document: No space left on device
  286. ^C
  287. jam@AH-NOC-SCR01:~$ ls /dev/
  288. agpgart console ecryptfs input loop5 net random shm tty1 tty18 tty26 tty34 tty42 tty50 tty59 ttyprintk ttyS16 ttyS24 ttyS4 userio vcsa1 vhost-net
  289. AH-NOC-SCR01-vg core fb0 kmsg loop6 network_latency rfkill snapshot tty10 tty19 tty27 tty35 tty43 tty51 tty6 ttyS0 ttyS17 ttyS25 ttyS5 vcs vcsa2 vhost-vsock
  290. autofs cpu_dma_latency fd lightnvm loop7 network_throughput rtc snd tty11 tty2 tty28 tty36 tty44 tty52 tty60 ttyS1 ttyS18 ttyS26 ttyS6 vcs1 vcsa3 vmci
  291. block cuse full log loop-control null rtc0 sr0 tty12 tty20 tty29 tty37 tty45 tty53 tty61 ttyS10 ttyS19 ttyS27 ttyS7 vcs2 vcsa4 vsock
  292. bsg disk fuse loop0 mapper port sda stderr tty13 tty21 tty3 tty38 tty46 tty54 tty62 ttyS11 ttyS2 ttyS28 ttyS8 vcs3 vcsa5 zero
  293. btrfs-control dm-0 hpet loop1 mcelog ppp sda1 stdin tty14 tty22 tty30 tty39 tty47 tty55 tty63 ttyS12 ttyS20 ttyS29 ttyS9 vcs4 vcsa6
  294. cdrom dm-1 hugepages loop2 mem psaux sda5 stdout tty15 tty23 tty31 tty4 tty48 tty56 tty7 ttyS13 ttyS21 ttyS3 uhid vcs5 vfio
  295. cdrw dri hwrng loop3 memory_bandwidth ptmx sg0 tty tty16 tty24 tty32 tty40 tty49 tty57 tty8 ttyS14 ttyS22 ttyS30 uinput vcs6 vga_arbiter
  296. char dvd initctl loop4 mqueue pts sg1 tty0 tty17 tty25 tty33 tty41 tty5 tty58 tty9 ttyS15 ttyS23 ttyS31 urandom vcsa vhci
  297. jam@AH-NOC-SCR01:~$ sudo growpart /dev/sda 1
  298. failed [pt_update:1] pt_update /dev/sda 1
  299. partx: /dev/sda: error updating partition 1
  300. FAILED: pt_resize failed
  301. jam@AH-NOC-SCR01:~$ sudo reboot now
Add Comment
Please, Sign In to add comment