After increasing the disk in the control panel, you need to make it available to the operating system:
Open a terminal (see connection instructions ) as root and enter the following commands:
[code]
root@Debian7x64:~# echo 1 > /sys/block/sda/device/rescan
[/code]
Run the parted utility:
[code]
root@Debian7x64:~# parted
[/code]
Next, execute the commands in the parted utility interface: Remember the size of the disk ZZ.ZGB Leave the “Start” value by default – press Enter The “End” value – enter the new disk size in gigabytes – the value from the output of (parted) p, which you remember earlier Exit parted: The following information will be displayed:
[code]
[code]
Disk /dev/sda: ZZ.ZGB
(parted) resize
[/code]
[/code]
Partition number? 2
[code]
Start? [XXXMB]?
End? [YY.YGB]? ZZ.ZGB
[/code]
(parted) quit
Information: You may need to update /etc/fstab.
Run fdisk:
[code]
root@Debian7x64:~# fdisk /dev/sda
[/code]
Next, execute the commands in the fdisk utility interface:
Create a partition:
Command (m for help): n
Select the type of partition - logical (L)
Select (default p): l
Adding logical partition X
Remember the partition number created during the execution of the command (in the example it is indicated as X)
Accept the default values - press Enter twice: Change the partition type, while specifying the partition number that we remembered earlier (in the example it is indicated as X ) changes: In the displayed response, we see the line
[code]
First sector (XXX-YYY, default ZZZ):
Last sector, +sectors or +size{K,M,G} (XXX-YYY, default ZZZ):
[/code]
[code]
[code]
Command (m for help): t
[/code]
Partition number (1-X): X Hex code (type L to list codes): 8e
[/code]
...
Command (m for help): w
[code]
root@Debian7x64:~# partx -v -a /dev/sda
[/code]
...
/dev/sda: partition #X added
...
We initialize the section, instead of X we again use the section number that we remembered earlier
[code]
root@Debian7x64:~# pvcreate /dev/sdaX
[/code]
Physical volume "/dev/sdaX" successfully created
Add a physical partition to an existing volume group:
[code]
root@Debian7x64:~# vgextend debian /dev/sdaX
[/code]
Volume group "debian" successfully extended
Expanding a logical volume
[code]
root@Debian7x64:~# lvextend -l +100%FREE /dev/debian/root
[/code]
Extending logical volume root to YY.ZZ GiB
Logical volume root successfully resized
Expanding the file system
[code]
root@Debian7x64:~# resize2fs /dev/debian/root
[/code]
Done.
Welcome to the world of DomainRooster, where roosters (and hens) rule the roost! We're a one-stop shop for all your entrepreneurial needs, bringing together domain names and website hosting, and all the tools you need to bring your ideas to life. With our help, you'll soar to new heights and hatch great success. Think of us as your trusty sidekick, always there to lend a wing and help you navigate the sometimes-complex world of domain names and web hosting. Our team of roosters are experts in their fields and are always on hand to answer any questions and provide guidance. So why wait? Sign up today and join the ranks of the world's greatest entrepreneurs. With DomainRooster, the sky's the limit! And remember, as the saying goes, "Successful people do what unsuccessful people are not willing to do." So don't be afraid to take that leap of faith - DomainRooster is here to help you reach for the stars. Caw on!