Alterar o espaço da unidade de partição

1

Ok, estou tendo alguns problemas aqui - bastante novos no ambiente Linux e preciso de ajuda. Eu tenho uma matriz RAID de 2,7 TB, e alguém configurou uma partição em torno de 200 GB, mas ela realmente precisa ser maior, como 2,2 TB. Como faço para aumentar a partição?

Além disso, parece que há uma partição duplicada de 2,2 TB.

Eu preciso que o disco, /dev/mapper/vg_orchestrator1-lv_home , a partição de 219,9 GB, seja o de 2,2 TB, e não tenho certeza de como / se eu posso redimensionar essa partição ou se preciso fazer algo novo e copiar o conteúdo.

Aqui estão algumas informações de alguns comandos que eu executei.

Lista de discos usando fdisk

[root@orchestrator1 ~]# fdisk -l

Disk /dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d0e98

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       36405   291908608   8e  Linux LVM

Disk /dev/sdb: 2698.6 GB, 2698581639168 bytes
255 heads, 63 sectors/track, 328083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3d468517

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       60735   487849952+  83  Linux

Disk /dev/mapper/vg_orchestrator1-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders 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


Disk /dev/mapper/vg_orchestrator1-lv_swap: 25.4 GB, 25367150592 bytes
255 heads, 63 sectors/track, 3084 cylinders
Units = cylinders 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

Disk /dev/mapper/3600508e000000000cad0b2b5c22f8d02: 2698.6 GB, 2698581639168 bytes
255 heads, 63 sectors/track, 328083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3d468517

Device Boot      Start         End      Blocks   Id  System
/dev/mapper/3600508e000000000cad0b2b5c22f8d02p1               1       60735   487849952+  83  Linux

Disk /dev/mapper/3600508e000000000cad0b2b5c22f8d02p1: 2199.0 GB, 2199020350464 bytes
255 heads, 63 sectors/track, 267348 cylinders
Units = cylinders 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

Device Boot      Start         End      Blocks   Id  System

Disk /dev/mapper/vg_orchestrator1-lv_home: 219.9 GB, 219857027072 bytes
255 heads, 63 sectors/track, 26729 cylinders
Units = cylinders 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

Disk /dev/mapper/3600508e000000000cad0b2b5c22f8d02p1p1: 2199.0 GB, 2199020318208 bytes
255 heads, 63 sectors/track, 267348 cylinders
Units = cylinders 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

df -h command

[root@orchestrator1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_orchestrator1-lv_root
                   50G   45G  1.7G  97% /
tmpfs                  24G   80K   24G   1% /dev/shm
/dev/sda1             477M  123M  325M  28% /boot
/dev/mapper/vg_orchestrator1-lv_home
                  202G   61M  192G   1% /home

E cat /etc/fstab comando:

[root@orchestrator1 ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Mon Apr 27 13:14:35 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
/dev/mapper/vg_orchestrator1-lv_root /                       ext4   defaults        1 1
UUID=62e2c26b-9f29-4de4-96b1-d76ff142d23d /boot                   ext4    defaults        1 2
/dev/mapper/vg_orchestrator1-lv_home /home                   ext4    defaults        1 2
/dev/mapper/vg_orchestrator1-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/sdb                /home                   ext4    defaults        1 2

pvs

[root@orchestrator1 ~]# pvs
  PV  VG               Fmt  Attr PSize   PFree
/dev/disk/by-id/scsi-3600508e000000000e30eb35adb098c03-part2 vg_orchestrator1 lvm2 a--  278.38g    0

lvs

[root@orchestrator1 ~]# lvs
LV   VG  Attr LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
lv_home vg_orchestrator1 -wi-ao---- 204.76g
lv_root vg_orchestrator1 -wi-ao----  50.00g
lv_swap vg_orchestrator1 -wi-ao----  23.62g
    
por Luke 22.05.2015 / 21:39

0 respostas

Tags