mr-graffity
Профессор
- Регистрация
- 29 Июл 2010
- Сообщения
- 189
- Реакции
- 43
- Автор темы
- #1
Сервер имеет 4 ТБ дискового пространства. которые складываются из двух дисков по 4 ТБ
один диск /dev/md3 подмонтирован к папке home и использован на 100% вторый диск /dev/md2 подмонтирован к корню и использован на 1%
Вопрос, можно ли расширить пространство папки home за счет второго диска?
************************************************************************
************************************************************************
root@Debian-86-jessie-64-LAMP ~ # df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/md2 ext4 2.0T 9.4G 1.9T 1% /
udev devtmpfs 10M 0 10M 0% /dev
tmpfs tmpfs 6.3G 665M 5.7G 11% /run
tmpfs tmpfs 16G 0 16G 0% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md3 ext4 1.7T 1.6T 0 100% /home
/dev/md1 ext3 488M 80M 383M 18% /boot
tmpfs tmpfs 3.2G 0 3.2G 0% /run/user/0
************************************************************************
************************************************************************
root@Debian-86-jessie-64-LAMP ~ # fdisk -l
Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 9DB86FD0-F0CA-45CD-9B27-47E0EC4E6DE6
Device Start End Sectors Size Type
/dev/sdb1 4096 33558527 33554432 16G Linux RAID
/dev/sdb2 33558528 34607103 1048576 512M Linux RAID
/dev/sdb3 34607104 4258271231 4223664128 2T Linux RAID
/dev/sdb4 4258271232 7814037134 3555765903 1.7T Linux RAID
/dev/sdb5 2048 4095 2048 1M BIOS boot
Partition table entries are not in disk order.
Disk /dev/sda: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 1BCA5678-05EB-4581-A624-B1F43AA2A765
Device Start End Sectors Size Type
/dev/sda1 4096 33558527 33554432 16G Linux RAID
/dev/sda2 33558528 34607103 1048576 512M Linux RAID
/dev/sda3 34607104 4258271231 4223664128 2T Linux RAID
/dev/sda4 4258271232 7814037134 3555765903 1.7T Linux RAID
/dev/sda5 2048 4095 2048 1M BIOS boot
Partition table entries are not in disk order.
Disk /dev/md0: 16 GiB, 17163091968 bytes, 33521664 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
Disk /dev/md1: 511.4 MiB, 536281088 bytes, 1047424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
Disk /dev/md2: 2 TiB, 2162381815808 bytes, 4223401984 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
Disk /dev/md3: 1.7 TiB, 1820417916928 bytes, 3555503744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
root@Debian-86-jessie-64-LAMP ~
************************************************************************
root@Debian-86-jessie-64-LAMP ~ # cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda4[0] sdb4[1]
1777751872 blocks super 1.2 [2/2] [UU]
[=====>...............] check = 25.1% (446940160/1777751872) finish=3299.4min speed=6721K/sec
bitmap: 2/14 pages [8KB], 65536KB chunk
md2 : active raid1 sda3[0] sdb3[1]
2111700992 blocks super 1.2 [2/2] [UU]
bitmap: 2/16 pages [8KB], 65536KB chunk
md1 : active raid1 sda2[0] sdb2[1]
523712 blocks super 1.2 [2/2] [UU]
resync=DELAYED
md0 : active raid1 sda1[0] sdb1[1]
16760832 blocks super 1.2 [2/2] [UU]
unused devices: <none>
root@Debian-86-jessie-64-LAMP ~ #
один диск /dev/md3 подмонтирован к папке home и использован на 100% вторый диск /dev/md2 подмонтирован к корню и использован на 1%
Вопрос, можно ли расширить пространство папки home за счет второго диска?
************************************************************************
************************************************************************
root@Debian-86-jessie-64-LAMP ~ # df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/md2 ext4 2.0T 9.4G 1.9T 1% /
udev devtmpfs 10M 0 10M 0% /dev
tmpfs tmpfs 6.3G 665M 5.7G 11% /run
tmpfs tmpfs 16G 0 16G 0% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md3 ext4 1.7T 1.6T 0 100% /home
/dev/md1 ext3 488M 80M 383M 18% /boot
tmpfs tmpfs 3.2G 0 3.2G 0% /run/user/0
************************************************************************
************************************************************************
root@Debian-86-jessie-64-LAMP ~ # fdisk -l
Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 9DB86FD0-F0CA-45CD-9B27-47E0EC4E6DE6
Device Start End Sectors Size Type
/dev/sdb1 4096 33558527 33554432 16G Linux RAID
/dev/sdb2 33558528 34607103 1048576 512M Linux RAID
/dev/sdb3 34607104 4258271231 4223664128 2T Linux RAID
/dev/sdb4 4258271232 7814037134 3555765903 1.7T Linux RAID
/dev/sdb5 2048 4095 2048 1M BIOS boot
Partition table entries are not in disk order.
Disk /dev/sda: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 1BCA5678-05EB-4581-A624-B1F43AA2A765
Device Start End Sectors Size Type
/dev/sda1 4096 33558527 33554432 16G Linux RAID
/dev/sda2 33558528 34607103 1048576 512M Linux RAID
/dev/sda3 34607104 4258271231 4223664128 2T Linux RAID
/dev/sda4 4258271232 7814037134 3555765903 1.7T Linux RAID
/dev/sda5 2048 4095 2048 1M BIOS boot
Partition table entries are not in disk order.
Disk /dev/md0: 16 GiB, 17163091968 bytes, 33521664 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
Disk /dev/md1: 511.4 MiB, 536281088 bytes, 1047424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
Disk /dev/md2: 2 TiB, 2162381815808 bytes, 4223401984 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
Disk /dev/md3: 1.7 TiB, 1820417916928 bytes, 3555503744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical 512 bytes / 4096 bytes
I/O size (minimum/optimal 4096 bytes / 4096 bytes
root@Debian-86-jessie-64-LAMP ~
************************************************************************
root@Debian-86-jessie-64-LAMP ~ # cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda4[0] sdb4[1]
1777751872 blocks super 1.2 [2/2] [UU]
[=====>...............] check = 25.1% (446940160/1777751872) finish=3299.4min speed=6721K/sec
bitmap: 2/14 pages [8KB], 65536KB chunk
md2 : active raid1 sda3[0] sdb3[1]
2111700992 blocks super 1.2 [2/2] [UU]
bitmap: 2/16 pages [8KB], 65536KB chunk
md1 : active raid1 sda2[0] sdb2[1]
523712 blocks super 1.2 [2/2] [UU]
resync=DELAYED
md0 : active raid1 sda1[0] sdb1[1]
16760832 blocks super 1.2 [2/2] [UU]
unused devices: <none>
root@Debian-86-jessie-64-LAMP ~ #
Последнее редактирование модератором: