Thanks for the updated instructions, I'm making progress here.
Code: Select all
[root@xxx-xx-xxx ~]# find /sys -type f -iname "scan" -print
/sys/devices/pci0000:00/0000:00:07.1/ata1/host1/scsi_host/host1/scan
/sys/devices/pci0000:00/0000:00:07.1/ata2/host2/scsi_host/host2/scan
/sys/devices/pci0000:00/0000:00:10.0/host0/scsi_host/host0/scan
/sys/module/scsi_mod/parameters/scan
[root@xxx-xx-xxx ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 350G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 255.5G 0 part
├─centos_xxx--xx--xxx-root 253:0 0 254.5G 0 lvm /
└─centos_xxx-xx--xxx-swap 253:1 0 1G 0 lvm [SWAP]
sdb 8:16 0 50G 0 disk
sr0 11:0 1 1024M 0 rom
As you can see I have sdb showing. This is probably blindingly obvious but in step 5 where do I obtain the value
some-large-string-that-points-to-your-sdX-device ? Also, I assume
/by-id/ is merely the number that follows sda/sdb, for example
/dev/sda2/some-large-string-that-points-to-your-sdX-device ?
Below is the pvdisplay and lvdisplay output, and so for steps 6 & 7 I would want vgextend centos_xxx-xx-xxx
/dev/sdb/some-large-string-that-points-to-your-sdX-device (whatever that last string might be) and
lvextend -r -L +50G /dev/centos_xxx-xx-xxx/root ?
Code: Select all
[root@xxx-xx-xxx ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name centos_xxx-xx-xxx
PV Size 255.51 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 65410
Free PE 0
Allocated PE 65410
PV UUID RzUrwz-911D-qL6Z-WFdL-Ommu-HL98-IEbFaO
[root@root@xxx-xx-xxx ~]# lvdisplay
--- Logical volume ---
LV Path /dev/centos_xxx-xx-xxx/swap
LV Name swap
VG Name centos_xxx-xx-xxx
LV UUID 1S1Cov-dzGf-CO53-gPI4-05MP-f0Nh-Z3nS7U
LV Write Access read/write
LV Creation host, time localhost, 2016-07-01 18:40:02 +0000
LV Status available
# open 2
LV Size 1.00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:1
--- Logical volume ---
LV Path /dev/centos_xxx-xx-xxx/root
LV Name root
VG Name centos_xxx-xx-xxx
LV UUID Kt1TBW-DaYw-1HqB-xydJ-fGZQ-exhp-NNT6f0
LV Write Access read/write
LV Creation host, time localhost, 2016-07-01 18:40:03 +0000
LV Status available
# open 1
LV Size 254.51 GiB
Current LE 65154
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:0