kirychuk

Untitled

Sep 5th, 2022
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.59 KB | None | 0 0
  1. Linux prod-vn-webitel-voip 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64
  2.  
  3. The programs included with the Debian GNU/Linux system are free software;
  4. the exact distribution terms for each program are described in the
  5. individual files in /usr/share/doc/*/copyright.
  6.  
  7. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  8. permitted by applicable law.
  9. Last login: Tue Sep 6 01:04:03 2022 from 10.77.10.231
  10. webitel@prod-vn-webitel-voip:~$ sudo su
  11. root@prod-vn-webitel-voip:/home/webitel# lsblk
  12. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  13. sda 8:0 0 200G 0 disk
  14. └─sda1 8:1 0 100G 0 part
  15. └─vg01-lv01 254:0 0 100G 0 lvm /
  16. sdb 8:16 0 600G 0 disk /opt/storage/recordings
  17. sr0 11:0 1 1024M 0 rom
  18. root@prod-vn-webitel-voip:/home/webitel#
  19. root@prod-vn-webitel-voip:/home/webitel#
  20. root@prod-vn-webitel-voip:/home/webitel# fdisk /dev/sda
  21.  
  22. Welcome to fdisk (util-linux 2.33.1).
  23. Changes will remain in memory only, until you decide to write them.
  24. Be careful before using the write command.
  25.  
  26.  
  27. Command (m for help): p
  28. Disk /dev/sda: 200 GiB, 214748364800 bytes, 419430400 sectors
  29. Disk model: Virtual disk
  30. Units: sectors of 1 * 512 = 512 bytes
  31. Sector size (logical/physical): 512 bytes / 512 bytes
  32. I/O size (minimum/optimal): 512 bytes / 512 bytes
  33. Disklabel type: dos
  34. Disk identifier: 0xd43cd900
  35.  
  36. Device Boot Start End Sectors Size Id Type
  37. /dev/sda1 * 2048 209713151 209711104 100G 8e Linux LVM
  38.  
  39. Command (m for help): d
  40. Selected partition 1
  41. Partition 1 has been deleted.
  42.  
  43. Command (m for help): n
  44. Partition type
  45. p primary (0 primary, 0 extended, 4 free)
  46. e extended (container for logical partitions)
  47. Select (default p): e
  48. Partition number (1-4, default 1):
  49. First sector (2048-419430399, default 2048):
  50. Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-419430399, default 419430399):
  51.  
  52. Created a new partition 1 of type 'Extended' and of size 200 GiB.
  53. Partition #1 contains a LVM2_member signature.
  54.  
  55. Do you want to remove the signature? [Y]es/[N]o: n
  56.  
  57. Command (m for help): p
  58.  
  59. Disk /dev/sda: 200 GiB, 214748364800 bytes, 419430400 sectors
  60. Disk model: Virtual disk
  61. Units: sectors of 1 * 512 = 512 bytes
  62. Sector size (logical/physical): 512 bytes / 512 bytes
  63. I/O size (minimum/optimal): 512 bytes / 512 bytes
  64. Disklabel type: dos
  65. Disk identifier: 0xd43cd900
  66.  
  67. Device Boot Start End Sectors Size Id Type
  68. /dev/sda1 2048 419430399 419428352 200G 5 Extended
  69.  
  70. Command (m for help): w
  71. The partition table has been altered.
  72. Syncing disks.
  73.  
  74. root@prod-vn-webitel-voip:/home/webitel# df -h
  75. Filesystem Size Used Avail Use% Mounted on
  76. udev 12G 0 12G 0% /dev
  77. tmpfs 2.4G 9.3M 2.4G 1% /run
  78. /dev/mapper/vg01-lv01 98G 60G 34G 65% /
  79. tmpfs 12G 20K 12G 1% /dev/shm
  80. tmpfs 5.0M 0 5.0M 0% /run/lock
  81. tmpfs 12G 0 12G 0% /sys/fs/cgroup
  82. /dev/sdb 492G 461G 6.0G 99% /opt/storage/recordings
  83. tmpfs 2.4G 0 2.4G 0% /run/user/0
  84. tmpfs 2.4G 0 2.4G 0% /run/user/1000
  85. root@prod-vn-webitel-voip:/home/webitel# lsblk
  86. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  87. sda 8:0 0 200G 0 disk
  88. └─sda1 8:1 0 200G 0 part
  89. └─vg01-lv01 254:0 0 100G 0 lvm /
  90. sdb 8:16 0 600G 0 disk /opt/storage/recordings
  91. sr0 11:0 1 1024M 0 rom
  92. root@prod-vn-webitel-voip:/home/webitel# systemctl stop engine call_center webitel-api webitel-app webitel-uac webitel-dsa freeswitch opensips storage flow_manager lvextend -l +100%FREE /dev/vg01/lv01
  93. New size (25599 extents) matches existing size (25599 extents).
  94. root@prod-vn-webitel-voip:/home/webitel# lsblk
  95. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  96. sda 8:0 0 200G 0 disk
  97. └─sda1 8:1 0 200G 0 part
  98. └─vg01-lv01 254:0 0 100G 0 lvm /
  99. sdb 8:16 0 600G 0 disk /opt/storage/recordings
  100. sr0 11:0 1 1024M 0 rom
  101. root@prod-vn-webitel-voip:/home/webitel# vgs
  102. VG #PV #LV #SN Attr VSize VFree
  103. vg01 1 1 0 wz--n- <100.00g 0
  104. root@prod-vn-webitel-voip:/home/webitel# pvresize /dev/sda1
  105. Physical volume "/dev/sda1" changed
  106. 1 physical volume(s) resized or updated / 0 physical volume(s) not resized
  107. root@prod-vn-webitel-voip:/home/webitel# pvs
  108. PV VG Fmt Attr PSize PFree
  109. /dev/sda1 vg01 lvm2 a-- <200.00g 100.00g
  110. root@prod-vn-webitel-voip:/home/webitel# lvextend -l +100%FREE /dev/vg01/lv01
  111. Size of logical volume vg01/lv01 changed from <100.00 GiB (25599 extents) to <200.00 GiB (51199 extents).
  112. Logical volume vg01/lv01 successfully resized.
  113. root@prod-vn-webitel-voip:/home/webitel# lsblk
  114. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  115. sda 8:0 0 200G 0 disk
  116. └─sda1 8:1 0 200G 0 part
  117. └─vg01-lv01 254:0 0 200G 0 lvm /
  118. sdb 8:16 0 600G 0 disk /opt/storage/recordings
  119. sr0 11:0 1 1024M 0 rom
  120. root@prod-vn-webitel-voip:/home/webitel# df -h
  121. Filesystem Size Used Avail Use% Mounted on
  122. udev 12G 0 12G 0% /dev
  123. tmpfs 2.4G 9.3M 2.4G 1% /run
  124. /dev/mapper/vg01-lv01 98G 60G 34G 65% /
  125. tmpfs 12G 20K 12G 1% /dev/shm
  126. tmpfs 5.0M 0 5.0M 0% /run/lock
  127. tmpfs 12G 0 12G 0% /sys/fs/cgroup
  128. /dev/sdb 492G 461G 6.0G 99% /opt/storage/recordings
  129. tmpfs 2.4G 0 2.4G 0% /run/user/0
  130. tmpfs 2.4G 0 2.4G 0% /run/user/1000
  131. root@prod-vn-webitel-voip:/home/webitel# resize2fs /dev/mapper/vg01-lv01
  132. resize2fs 1.44.5 (15-Dec-2018)
  133. Filesystem at /dev/mapper/vg01-lv01 is mounted on /; on-line resizing required
  134. old_desc_blocks = 13, new_desc_blocks = 25
  135. The filesystem on /dev/mapper/vg01-lv01 is now 52427776 (4k) blocks long.
  136.  
  137. root@prod-vn-webitel-voip:/home/webitel# df -h
  138. Filesystem Size Used Avail Use% Mounted on
  139. udev 12G 0 12G 0% /dev
  140. tmpfs 2.4G 9.3M 2.4G 1% /run
  141. /dev/mapper/vg01-lv01 197G 60G 128G 32% /
  142. tmpfs 12G 20K 12G 1% /dev/shm
  143. tmpfs 5.0M 0 5.0M 0% /run/lock
  144. tmpfs 12G 0 12G 0% /sys/fs/cgroup
  145. /dev/sdb 492G 461G 6.0G 99% /opt/storage/recordings
  146. tmpfs 2.4G 0 2.4G 0% /run/user/0
  147. tmpfs 2.4G 0 2.4G 0% /run/user/1000
  148. root@prod-vn-webitel-voip:/home/webitel# resize2fs /dev/sdb
  149. resize2fs 1.44.5 (15-Dec-2018)
  150. Filesystem at /dev/sdb is mounted on /opt/storage/recordings; on-line resizing required
  151. old_desc_blocks = 63, new_desc_blocks = 75
  152. The filesystem on /dev/sdb is now 157286400 (4k) blocks long.
  153.  
  154. root@prod-vn-webitel-voip:/home/webitel# df -h
  155. Filesystem Size Used Avail Use% Mounted on
  156. udev 12G 0 12G 0% /dev
  157. tmpfs 2.4G 9.3M 2.4G 1% /run
  158. /dev/mapper/vg01-lv01 197G 60G 128G 32% /
  159. tmpfs 12G 20K 12G 1% /dev/shm
  160. tmpfs 5.0M 0 5.0M 0% /run/lock
  161. tmpfs 12G 0 12G 0% /sys/fs/cgroup
  162. /dev/sdb 590G 461G 101G 83% /opt/storage/recordings
  163. tmpfs 2.4G 0 2.4G 0% /run/user/0
  164. tmpfs 2.4G 0 2.4G 0% /run/user/1000
  165. root@prod-vn-webitel-voip:/home/webitel# shutdown -r now
Advertisement
Add Comment
Please, Sign In to add comment