Answer the question
In order to leave comments, you need to log in
How to mount a hard drive on a partition of another hard drive?
There is a 128 GB SSD drive - it runs CENTOS and a web verser.
The /home folder is not enough for websites.
I inserted a 1TB disk - can I increase the home partition with a new disk? if so, how? Tell me please.
df -h command
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
50G 8,6G 39G 19% /
tmpfs 3,9G 0 3,9G 0% /dev/shm
/dev/sdb1 477M 63M 389M 14% /boot
/dev/mapper/VolGroup-lv_home
64G 42G 2G 97% /home
Диск /dev/sda: 1000.2 ГБ, 1000204886016 байт
255 heads, 63 sectors/track, 121601 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Диск /dev/sdb: 128.0 ГБ, 128035676160 байт
255 heads, 63 sectors/track, 15566 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00048110
Устр-во Загр Начало Конец Блоки Id Система
/dev/sdb1 * 1 64 512000 83 Linux
Раздел 1 не заканчивается на границе цилиндра.
/dev/sdb2 64 15567 124521472 8e Linux LVM
Диск /dev/mapper/VolGroup-lv_root: 53.7 ГБ, 53687091200 байт
255 heads, 63 sectors/track, 6527 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Диск /dev/mapper/VolGroup-lv_swap: 4110 МБ, 4110417920 байт
255 heads, 63 sectors/track, 499 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Диск /dev/mapper/VolGroup-lv_home: 69.7 ГБ, 69709332480 байт
255 heads, 63 sectors/track, 8475 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Answer the question
In order to leave comments, you need to log in
Lord, what are you talking about? The system after all obviously costs on LVM. The device is called /dev/mapper/ VolGroup - lv _home A
banal expansion of space due to a new disk is an elementary action. xgu.ru/wiki/LVM
But then the meaning of SSD becomes mysterious, in this I agree with Denis Verbin
Something much dofiga allocated to the root /
10-15GB is usually enough.
You can mount it instead of /home and move all sites there, but in this case, the whole point of ssd is lost.
I would put only "thick" folders of sites on the HDD with symlinks, for example, with uploads.
How to mount a hard drive on a partition of another hard drive?
The /home folder is not enough for websites.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question