Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dev]# ls sd*
- sda sda1 sda2 sdb sdb1
- dev]# ls /sys/class/scsi_device/
- 0:0:0:0 0:0:1:0 2:0:0:0
- [root@lsaa21d dev]# echo 1 > /sys/class/scsi_device/0:0:0:0/device/rescan
- [root@lsaa21d dev]# echo 1 > /sys/class/scsi_device/0:0:1:0/device/rescan
- [root@lsaa21d dev]# echo 1 > /sys/class/scsi_device/2:0:0:0/device/rescan
- dev]# fdisk -l
- Disk /dev/sdb: 96.6 GB, 96636764160 bytes, 188743680 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk label type: dos
- Disk identifier: 0x283108d4
- Device Boot Start End Blocks Id System
- /dev/sdb1 2048 146800639 73399296 83 Linux <<< Volume to expand
- /dev/sdb2 146800640 188743679 20971520 83 Linux <<< Drive expansion
- Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk label type: dos
- Disk identifier: 0x000e448c
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2048 1026047 512000 83 Linux
- /dev/sda2 1026048 167772159 83373056 8e Linux LVM
- Disk /dev/mapper/rhel_lor9p-root: 51.6 GB, 51636076544 bytes, 100851712 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk /dev/mapper/rhel_lor9p-swap: 8455 MB, 8455716864 bytes, 16515072 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk /dev/mapper/rhel_lor9p-home: 25.2 GB, 25211961344 bytes, 49242112 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- dev]# pvcreate /dev/sdb2
- Physical volume "/dev/sdb2" successfully created.
- dev]# vgdisplay
- --- Volume group ---
- VG Name rhel_lor9p
- System ID
- Format lvm2
- Metadata Areas 1
- Metadata Sequence No 4
- VG Access read/write
- VG Status resizable
- MAX LV 0
- Cur LV 3
- Open LV 3
- Max PV 0
- Cur PV 1
- Act PV 1
- VG Size 79.51 GiB
- PE Size 4.00 MiB
- Total PE 20354
- Alloc PE / Size 20338 / 79.45 GiB
- Free PE / Size 16 / 64.00 MiB
- VG UUID 2IY7ZG-H4yn-1RrK-eHUI-RxSd-T8Qi-faCBAV
- dev]# pvdisplay
- --- Physical volume ---
- PV Name /dev/sda2
- VG Name rhel_lorx19p
- PV Size 79.51 GiB / not usable 3.00 MiB
- Allocatable yes
- PE Size 4.00 MiB
- Total PE 20354
- Free PE 16
- Allocated PE 20338
- PV UUID ToJPjk-ICWd-KG2T-Rjl0-88Lj-q4zR-e16HuK
- "/dev/sdb2" is a new physical volume of "20.00 GiB"
- --- NEW Physical volume ---
- PV Name /dev/sdb2
- VG Name
- PV Size 20.00 GiB
- Allocatable NO
- PE Size 0
- Total PE 0
- Free PE 0
- Allocated PE 0
- PV UUID BdzW42-Yi8u-priM-Uuiy-Z8B2-aaLP-1WS4vh
- dev]# lvextend -L+20G /dev/rhel_lorx19p/u01
- Logical volume u01 not found in volume group rhel_lorx19p.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement