Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. dev]# ls sd*
  2. sda sda1 sda2 sdb sdb1
  3. dev]# ls /sys/class/scsi_device/
  4. 0:0:0:0 0:0:1:0 2:0:0:0
  5. [root@lsaa21d dev]# echo 1 > /sys/class/scsi_device/0:0:0:0/device/rescan
  6. [root@lsaa21d dev]# echo 1 > /sys/class/scsi_device/0:0:1:0/device/rescan
  7. [root@lsaa21d dev]# echo 1 > /sys/class/scsi_device/2:0:0:0/device/rescan
  8.  
  9. dev]# fdisk -l
  10.  
  11. Disk /dev/sdb: 96.6 GB, 96636764160 bytes, 188743680 sectors
  12. Units = sectors of 1 * 512 = 512 bytes
  13. Sector size (logical/physical): 512 bytes / 512 bytes
  14. I/O size (minimum/optimal): 512 bytes / 512 bytes
  15. Disk label type: dos
  16. Disk identifier: 0x283108d4
  17.  
  18. Device Boot Start End Blocks Id System
  19. /dev/sdb1 2048 146800639 73399296 83 Linux <<< Volume to expand
  20. /dev/sdb2 146800640 188743679 20971520 83 Linux <<< Drive expansion
  21.  
  22. Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
  23. Units = sectors of 1 * 512 = 512 bytes
  24. Sector size (logical/physical): 512 bytes / 512 bytes
  25. I/O size (minimum/optimal): 512 bytes / 512 bytes
  26. Disk label type: dos
  27. Disk identifier: 0x000e448c
  28.  
  29. Device Boot Start End Blocks Id System
  30. /dev/sda1 * 2048 1026047 512000 83 Linux
  31. /dev/sda2 1026048 167772159 83373056 8e Linux LVM
  32.  
  33. Disk /dev/mapper/rhel_lor9p-root: 51.6 GB, 51636076544 bytes, 100851712 sectors
  34. Units = sectors of 1 * 512 = 512 bytes
  35. Sector size (logical/physical): 512 bytes / 512 bytes
  36. I/O size (minimum/optimal): 512 bytes / 512 bytes
  37.  
  38. Disk /dev/mapper/rhel_lor9p-swap: 8455 MB, 8455716864 bytes, 16515072 sectors
  39. Units = sectors of 1 * 512 = 512 bytes
  40. Sector size (logical/physical): 512 bytes / 512 bytes
  41. I/O size (minimum/optimal): 512 bytes / 512 bytes
  42.  
  43. Disk /dev/mapper/rhel_lor9p-home: 25.2 GB, 25211961344 bytes, 49242112 sectors
  44. Units = sectors of 1 * 512 = 512 bytes
  45. Sector size (logical/physical): 512 bytes / 512 bytes
  46. I/O size (minimum/optimal): 512 bytes / 512 bytes
  47.  
  48. dev]# pvcreate /dev/sdb2
  49. Physical volume "/dev/sdb2" successfully created.
  50.  
  51. dev]# vgdisplay
  52. --- Volume group ---
  53. VG Name rhel_lor9p
  54. System ID
  55. Format lvm2
  56. Metadata Areas 1
  57. Metadata Sequence No 4
  58. VG Access read/write
  59. VG Status resizable
  60. MAX LV 0
  61. Cur LV 3
  62. Open LV 3
  63. Max PV 0
  64. Cur PV 1
  65. Act PV 1
  66. VG Size 79.51 GiB
  67. PE Size 4.00 MiB
  68. Total PE 20354
  69. Alloc PE / Size 20338 / 79.45 GiB
  70. Free PE / Size 16 / 64.00 MiB
  71. VG UUID 2IY7ZG-H4yn-1RrK-eHUI-RxSd-T8Qi-faCBAV
  72.  
  73. dev]# pvdisplay
  74. --- Physical volume ---
  75. PV Name /dev/sda2
  76. VG Name rhel_lorx19p
  77. PV Size 79.51 GiB / not usable 3.00 MiB
  78. Allocatable yes
  79. PE Size 4.00 MiB
  80. Total PE 20354
  81. Free PE 16
  82. Allocated PE 20338
  83. PV UUID ToJPjk-ICWd-KG2T-Rjl0-88Lj-q4zR-e16HuK
  84.  
  85. "/dev/sdb2" is a new physical volume of "20.00 GiB"
  86. --- NEW Physical volume ---
  87. PV Name /dev/sdb2
  88. VG Name
  89. PV Size 20.00 GiB
  90. Allocatable NO
  91. PE Size 0
  92. Total PE 0
  93. Free PE 0
  94. Allocated PE 0
  95. PV UUID BdzW42-Yi8u-priM-Uuiy-Z8B2-aaLP-1WS4vh
  96.  
  97. dev]# lvextend -L+20G /dev/rhel_lorx19p/u01
  98. Logical volume u01 not found in volume group rhel_lorx19p.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement