Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Linux prod-vn-webitel-voip 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- Last login: Tue Sep 6 01:04:03 2022 from 10.77.10.231
- webitel@prod-vn-webitel-voip:~$ sudo su
- root@prod-vn-webitel-voip:/home/webitel# lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- sda 8:0 0 200G 0 disk
- └─sda1 8:1 0 100G 0 part
- └─vg01-lv01 254:0 0 100G 0 lvm /
- sdb 8:16 0 600G 0 disk /opt/storage/recordings
- sr0 11:0 1 1024M 0 rom
- root@prod-vn-webitel-voip:/home/webitel#
- root@prod-vn-webitel-voip:/home/webitel#
- root@prod-vn-webitel-voip:/home/webitel# fdisk /dev/sda
- Welcome to fdisk (util-linux 2.33.1).
- Changes will remain in memory only, until you decide to write them.
- Be careful before using the write command.
- Command (m for help): p
- Disk /dev/sda: 200 GiB, 214748364800 bytes, 419430400 sectors
- Disk model: Virtual disk
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0xd43cd900
- Device Boot Start End Sectors Size Id Type
- /dev/sda1 * 2048 209713151 209711104 100G 8e Linux LVM
- Command (m for help): d
- Selected partition 1
- Partition 1 has been deleted.
- Command (m for help): n
- Partition type
- p primary (0 primary, 0 extended, 4 free)
- e extended (container for logical partitions)
- Select (default p): e
- Partition number (1-4, default 1):
- First sector (2048-419430399, default 2048):
- Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-419430399, default 419430399):
- Created a new partition 1 of type 'Extended' and of size 200 GiB.
- Partition #1 contains a LVM2_member signature.
- Do you want to remove the signature? [Y]es/[N]o: n
- Command (m for help): p
- Disk /dev/sda: 200 GiB, 214748364800 bytes, 419430400 sectors
- Disk model: Virtual disk
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0xd43cd900
- Device Boot Start End Sectors Size Id Type
- /dev/sda1 2048 419430399 419428352 200G 5 Extended
- Command (m for help): w
- The partition table has been altered.
- Syncing disks.
- root@prod-vn-webitel-voip:/home/webitel# df -h
- Filesystem Size Used Avail Use% Mounted on
- udev 12G 0 12G 0% /dev
- tmpfs 2.4G 9.3M 2.4G 1% /run
- /dev/mapper/vg01-lv01 98G 60G 34G 65% /
- tmpfs 12G 20K 12G 1% /dev/shm
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 12G 0 12G 0% /sys/fs/cgroup
- /dev/sdb 492G 461G 6.0G 99% /opt/storage/recordings
- tmpfs 2.4G 0 2.4G 0% /run/user/0
- tmpfs 2.4G 0 2.4G 0% /run/user/1000
- root@prod-vn-webitel-voip:/home/webitel# lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- sda 8:0 0 200G 0 disk
- └─sda1 8:1 0 200G 0 part
- └─vg01-lv01 254:0 0 100G 0 lvm /
- sdb 8:16 0 600G 0 disk /opt/storage/recordings
- sr0 11:0 1 1024M 0 rom
- 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
- New size (25599 extents) matches existing size (25599 extents).
- root@prod-vn-webitel-voip:/home/webitel# lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- sda 8:0 0 200G 0 disk
- └─sda1 8:1 0 200G 0 part
- └─vg01-lv01 254:0 0 100G 0 lvm /
- sdb 8:16 0 600G 0 disk /opt/storage/recordings
- sr0 11:0 1 1024M 0 rom
- root@prod-vn-webitel-voip:/home/webitel# vgs
- VG #PV #LV #SN Attr VSize VFree
- vg01 1 1 0 wz--n- <100.00g 0
- root@prod-vn-webitel-voip:/home/webitel# pvresize /dev/sda1
- Physical volume "/dev/sda1" changed
- 1 physical volume(s) resized or updated / 0 physical volume(s) not resized
- root@prod-vn-webitel-voip:/home/webitel# pvs
- PV VG Fmt Attr PSize PFree
- /dev/sda1 vg01 lvm2 a-- <200.00g 100.00g
- root@prod-vn-webitel-voip:/home/webitel# lvextend -l +100%FREE /dev/vg01/lv01
- Size of logical volume vg01/lv01 changed from <100.00 GiB (25599 extents) to <200.00 GiB (51199 extents).
- Logical volume vg01/lv01 successfully resized.
- root@prod-vn-webitel-voip:/home/webitel# lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- sda 8:0 0 200G 0 disk
- └─sda1 8:1 0 200G 0 part
- └─vg01-lv01 254:0 0 200G 0 lvm /
- sdb 8:16 0 600G 0 disk /opt/storage/recordings
- sr0 11:0 1 1024M 0 rom
- root@prod-vn-webitel-voip:/home/webitel# df -h
- Filesystem Size Used Avail Use% Mounted on
- udev 12G 0 12G 0% /dev
- tmpfs 2.4G 9.3M 2.4G 1% /run
- /dev/mapper/vg01-lv01 98G 60G 34G 65% /
- tmpfs 12G 20K 12G 1% /dev/shm
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 12G 0 12G 0% /sys/fs/cgroup
- /dev/sdb 492G 461G 6.0G 99% /opt/storage/recordings
- tmpfs 2.4G 0 2.4G 0% /run/user/0
- tmpfs 2.4G 0 2.4G 0% /run/user/1000
- root@prod-vn-webitel-voip:/home/webitel# resize2fs /dev/mapper/vg01-lv01
- resize2fs 1.44.5 (15-Dec-2018)
- Filesystem at /dev/mapper/vg01-lv01 is mounted on /; on-line resizing required
- old_desc_blocks = 13, new_desc_blocks = 25
- The filesystem on /dev/mapper/vg01-lv01 is now 52427776 (4k) blocks long.
- root@prod-vn-webitel-voip:/home/webitel# df -h
- Filesystem Size Used Avail Use% Mounted on
- udev 12G 0 12G 0% /dev
- tmpfs 2.4G 9.3M 2.4G 1% /run
- /dev/mapper/vg01-lv01 197G 60G 128G 32% /
- tmpfs 12G 20K 12G 1% /dev/shm
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 12G 0 12G 0% /sys/fs/cgroup
- /dev/sdb 492G 461G 6.0G 99% /opt/storage/recordings
- tmpfs 2.4G 0 2.4G 0% /run/user/0
- tmpfs 2.4G 0 2.4G 0% /run/user/1000
- root@prod-vn-webitel-voip:/home/webitel# resize2fs /dev/sdb
- resize2fs 1.44.5 (15-Dec-2018)
- Filesystem at /dev/sdb is mounted on /opt/storage/recordings; on-line resizing required
- old_desc_blocks = 63, new_desc_blocks = 75
- The filesystem on /dev/sdb is now 157286400 (4k) blocks long.
- root@prod-vn-webitel-voip:/home/webitel# df -h
- Filesystem Size Used Avail Use% Mounted on
- udev 12G 0 12G 0% /dev
- tmpfs 2.4G 9.3M 2.4G 1% /run
- /dev/mapper/vg01-lv01 197G 60G 128G 32% /
- tmpfs 12G 20K 12G 1% /dev/shm
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 12G 0 12G 0% /sys/fs/cgroup
- /dev/sdb 590G 461G 101G 83% /opt/storage/recordings
- tmpfs 2.4G 0 2.4G 0% /run/user/0
- tmpfs 2.4G 0 2.4G 0% /run/user/1000
- root@prod-vn-webitel-voip:/home/webitel# shutdown -r now
Advertisement
Add Comment
Please, Sign In to add comment