Guest User

Untitled

a guest
Oct 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. [root@web1 ~]# iscsiadm --mode node --targetname iqn.1991-05.com.microsoft:smb-web-target --login
  2.  
  3. Logging in to [iface: default, target: iqn.1991-05.com.microsoft:smb-web-target, portal: 192.168.0.18,3260] (multiple)
  4. Login to [iface: default, target: iqn.1991-05.com.microsoft:smb-web-target, portal: 192.168.0.18,3260] successful.
  5.  
  6. [root@web1 ~]# lsblk
  7.  
  8. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  9. sda 8:0 0 127G 0 disk
  10. ├─sda1 8:1 0 200M 0 part /boot/efi
  11. ├─sda2 8:2 0 1G 0 part /boot
  12. └─sda3 8:3 0 125.8G 0 part
  13. ├─cl-root 253:0 0 50G 0 lvm /
  14. ├─cl-swap 253:1 0 2G 0 lvm [SWAP]
  15. └─cl-home 253:2 0 73.8G 0 lvm /home
  16. sdb 8:16 0 10G 0 disk
  17. sdc 8:32 0 512M 0 disk
  18. sdd 8:48 0 4G 0 disk
  19. ├─sdd1 8:49 0 2G 0 part
  20. └─sdd2 8:50 0 2G 0 part
  21. sr0 11:0 1 1024M 0 rom
  22.  
  23. [root@web1 ~]# pvs
  24. PV VG Fmt Attr PSize PFree
  25. /dev/sda3 cl lvm2 a-- 125.80g 4.00m
  26. /dev/sdb web_vg lvm2 a-- <10.00g <3.00g
  27. /dev/sdd1 db_vg lvm2 a-- <2.00g 0
  28. /dev/sdd2 db_vg lvm2 a-- <2.00g 0
  29. [root@web1 ~]# vgs
  30. VG #PV #LV #SN Attr VSize VFree
  31. cl 1 3 0 wz--n- 125.80g 4.00m
  32. db_vg 2 1 0 wz--n- 3.99g 0
  33. web_vg 1 3 0 wz--n- <10.00g <3.00g
  34. [root@web1 ~]# lvs
  35. LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
  36. home cl -wi-ao---- <73.80g
  37. root cl -wi-ao---- 50.00g
  38. swap cl -wi-ao---- 2.00g
  39. mysql_lv db_vg -wi------- 3.99g
  40. db_lv web_vg -wi------- 3.00g
  41. lv_drbd web_vg -wi------- 1.00g
  42. wp_lv web_vg -wi------- 3.00g
  43.  
  44. [root@web1 ~]# ll /dev/web_vg
  45. ls: cannot access /dev/web_vg: No such file or directory
  46. [root@web1 ~]# ll /dev/db_vg
  47. ls: cannot access /dev/db_vg: No such file or directory
  48. [root@web1 ~]# ll /dev/mapper/
  49. total 0
  50. lrwxrwxrwx. 1 root root 7 Oct 21 19:17 cl-home -> ../dm-2
  51. lrwxrwxrwx. 1 root root 7 Oct 21 19:17 cl-root -> ../dm-0
  52. lrwxrwxrwx. 1 root root 7 Oct 21 19:17 cl-swap -> ../dm-1
  53. crw-------. 1 root root 10, 236 Oct 21 19:17 control
  54.  
  55. [root@web1 ~]# pcs resource show MySQL_fs
  56. Resource: MySQL_fs (class=ocf provider=heartbeat type=Filesystem)
  57. Attributes: device=/dev/db_vg/mysql_lv directory=/var/lib/mysql fstype=ext4
  58. Operations: monitor interval=20 timeout=40 (MySQL_fs-monitor-interval-20)
  59. notify interval=0s timeout=60 (MySQL_fs-notify-interval-0s)
  60. start interval=0s timeout=60 (MySQL_fs-start-interval-0s)
  61. stop interval=0s timeout=60 (MySQL_fs-stop-interval-0s)
  62.  
  63. [root@web1 ~]# vgchange -ay web_vg
  64. 0 logical volume(s) in volume group "web_vg" now active
Add Comment
Please, Sign In to add comment