麒麟linux连接存储-截图加命令加multipath配置文件

multipath -v2
multipath -v3
mpathconf --enable --with_multipathd y
multipath -ll
Mpathconf
mount /dev/mapper/scratch /zkhw/

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
接下来是multipath配置文件,位置:/etc/multipath.conf

This is a basic configuration file for device mapper multipath.

Most comments have been removed for brevity, but you can find more information

in the multipath.conf.annotated file or by visiting the multipath documentation.

Blacklist all devices by default. Remove this to enable multipathing

on the default devices.

blacklist {
devnode “^sda”
devnode “^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*”
devnode “^hd[a-z]”
}

Use user friendly names, instead of using WWIDs as names.

defaults {
find_multipaths yes
user_friendly_names yes
path_grouping_policy multibus

getuid_callout “/usr/lib/udev/scsi_id -g -u -s /block/%n”

    path_selector round-robin
    failback immediate

}

Example multipath configuration

multipaths {
multipath {
wwid “3600c0ff000f8bb81f91a116701000000”
alias “my_multipath”
path_grouping_policy multibus
path_selector “round-robin 0”
failback immediate
rr_weight priorities
no_path_retry 5
}
}

Example device specific configuration

devices {
device {
vendor “HPE”
product “MSA 2060 FC”
path_grouping_policy multibus

getuid_callout “/usr/lib/udev/scsi_id -g -u -s /block/%n”

            path_selector round-robin
            hardware_handler "0"
            failback immediate
            rr_weight uniform
            no_path_retry 12
    }

}

还有配置命令:

[root@localhost ~]# history
1 df -h
2 passwd root
3 ls
4 lsblk
5 df -h
6 ls /sys/class/fc_host/
7 cat /sys/class/fc_host/host16/port_name
8 cat /sys/class/fc_host/host18/port_name
9 cat /sys/class/fc_host/host16/symbolic_name
10 cat /etc/redhat-release
11 cat /proc/scsi/scsi
12 fdisk -l
13 reboot
14 fdisk -l
15 lsblk
16 rpm -qa |grep device-mapper-multipath*
17 rpm -qa |grep device-mapper
18 mpathconf --enable
19 mpathconf --find_multipaths -y
20 mpathconf --find_multipaths y
21 mpathconf
22 service multipathd start
23 mpathconf
24 mpathconf -k
25 mpathconf -K
26 multipathd -k
27 multipath -ll
28 fdisk -l
29 lsblk
30 cat /etc/multipath.conf
31 cd /
32 ls
33 multipath -ll
34 cd /
35 ls
36 mkdir /zkhw
37 ls
38 cd dev
39 ls
40 cd mapper/
41 ls
42 cat mpatha
43 gdisk /dev/mapper/mpatha
44 lsblk
45 partprobe /dev/mapper/mpatha
46 ll /dev/mapper/mpatha
47 mkfs.xfs /dev/mapper/mpatha
48 lsblk
49 fdisk -l
50 reboot
51 fdisk -l
52 lsblk
53 cd /
54 ls
55 cd dev/
56 ls
57 cd mapper/
58 ls
59 cd /
60 ls
61 cd dev/
62 ls
63 cd mapper/
64 ls
65 multipath -ll
66 mpathconf --enable
67 mpathconf --find_multipaths y
68 mpathconf
69 service multipathd start
70 mpathconf
71 multipath -ll
72 cat /etc/multipath.conf
73 multipath -ll
74 service multipathd reload
75 multipath -v2
76 multipath -ll
81 cd mapper/
82 ls
83 lsblk
84 ll /dev sd*
85 fdisk -l
86 lsblk
87 cd /
88 ls
89 cd dev
90 ls
91 mkfs.xfs /dev/mapper/mpatha
92 mkfs.xfs -f /dev/mapper/mpatha
93 lsblk
94 mkfs.ext4 /dev/mapper/mpatha
95 lsblk
96 reboot
97 ls /
98 mkdir /swap
99 rm -rf /swap/
100 mkdir -p /swap
101 mkdir -p /data
102 ls /
103 ls -l /
104 lsblk
105 mpathconf --enable --with_multipathd y
106 lsblk
107 ll /dev/sd*
108 cd /
109 ls
110 cd dev
111 ls
112 cd mapper/
113 ls
114 gdisk /dev/mapper/mpathb
115 lsblk
116 fdisk -l
117 lsblk
118 cd /
119 ls
120 cd dev/
121 ls
122 cd mapper/
123 ls
124 gdisk /dev/mapper/
125 gdisk /dev/mapper/mpathb
126 ls
127 cd /
128 lsblk
129 mkfs.xfs /dev/mapper/mpathb
130 mkfs.xfs -f /dev/mapper/mpathb
131 mkfs.ext4 -f /dev/mapper/mpathb
132 mkfs.ext4 /dev/mapper/mpathb
133 lsblk
134 cd /
135 ls
136 mount /dev/mapper/mpathb /zkhw
137 reboot
138 fdisk -l
139 lsblk
140 gdisk /dev/sdb
141 lsblk
142 ls
143 df -h
144 mount /dev/sdb1 /zkhw/
145 ls /zkhw/
146 ls -l /zkhw/
147 mount /zkhw/ /dev/sdb1
148 mount /dev/sdb1 /zkhw/
149 df -h
150 lsblk
151 df -h
152 mount /dev/sdb1 /zkhw/
153 ls /etc/
154 fdisk -l
155 lsblk
156 df -Th
157 mkfs.xfs /dev/sdb1
158 lsblk
159 cd /
160 ls
161 mount /dev/sdb1 /zkhw/
162 df -Th
163 cd /
164 ls
165 cd zkhw/
166 ls
167 touch 1.txt
168 ls
169 vi 1.txt
170 cat 1.txt
171 cd /etc/sys
172 cd /etc/system
173 cd /etc/systemd
174 ls
175 cd …
176 ls
177 cd /
178 ls
179 cd etc/
180 ls
181 cd …
182 ls
183 cd dev/
184 ls
185 named.conf rc4.d systemd
186 bluetooth firewalld kylin-release named.rfc1912.zones rc5.d system-release
187 cgconfig.conf fonts kylin_security named.root.key rc6.d system-release-cpe
188 cgsnapshot_blacklist.conf freetds.conf kysec
189 multipath -ll
190 named.conf rc4.d systemd
191 bluetooth firewalld kylin-release named.rfc1912.zones rc5.d system-release
192 cgconfig.conf fonts kylin_security named.root.key rc6.d system-release-cpe
193 cgsnapshot_blacklist.conf freetds.conf kysec
194 mpathconf --enable
195 mpathconf --find_multipaths y
196 mpathconf
197 service multipathd start
198 mpathconf
199 multipath -ll
200 lsblk
201 fdisk -l
202 multipathd -k
203 multipath -ll
204 mpathconf
205 multipath -ll
206 cat /etc/multipath.conf
207 vi /etc/multipath.conf
208 cat /etc/multipath.conf
209 multipath -ll
210 service multipathd reload
211 multipath -v2
212 service multipathd restart
213 multipath -ll
214 fdisk -l
215 cd /
216 ls
217 df -Th
218 umount /dev/sdb1
219 df -Th
220 multipath -ll
221 mpathconf
222 fdisk -l
223 lsblk
224 gsisk /dev/sdb
225 gdisk /dev/sdb
226 lsblk
227 df -Th
228 gdisk -l
229 fdisk -l
230 multipath -ll
231 reboot
232 lsblk
233 df -h
234 free
235 fdisk -l
236 mpathconf --enable --with_multipathd y
237 mpathconf
238 multipath -ll
239 fdisk -l
240 reboot
241 hostname
242 cd /
243 ls
244 fdisk -l
245 mpathconf --enable --with_multipathd y
246 mpathconf
247 multipath -ll
248 fdisk -l
249 cat /etc/multipath.conf
250 service multipathd reload
251 multipath -ll
252 fdisk -l
253 rpm -qa |grep device-mapper-multipath
254 rpm -qa |grep device-mapper-multipath*
255 rpm -qa |grep device-mapper
256 multipath -ll
257 multipath
258 mpathconf
259 cat /proc/version
260 yum -y install device-mapper-multipath
261 yum clean packages
262 yum -y install device-mapper-multipath
263 mpathconf --enable --with_multipathd y
264 mpathconf
265 fdisk -l
266 multipath -ll
267 cd /
268 ls
269 cd etc/
270 ls
271 cd /
272 ls
273 cd dev/
274 ls
275 cd mapper/
276 ls
277 cd /
278 ls
279 cat /etc/multipath.conf
280 cd /etc
281 ls
282 cat /etc/multipath.conf.old
283 cd /
284 ls
285 mpathconf --enable
286 mpathconf
287 history
288 rpm -qa |grep device-mapper-multipath
289 rpm -qa |grep device-mapper-mul*
290 rpm -qa |grep device-mappe
291 cat /etc/multipath.conf
292 vim /etc/multipath.conf
293 modprobe dm-multipath
294 service multipathd start
295 multipath -v2
296 multipath -F
297 rpm -qa | grep device-mapper
298 vim /etc/multipath.conf
299 multipath -v3
300 vim /etc/multipath.conf
301 multipath -v3
302 lsblk
303 df -h
304 vim /etc/multipath.conf
305 multipath -ll
306 /etc/init.d/multipathd start chkconfig multipathd on
307 cp etc/multipath.conf /root/multipath.conf
308 ls /root
309 vim /etc/multipath.conf
310 multipath -v3
311 multipath -ll
312 lsblk
313 fdisk -l
314 lsblk
315 cd /
316 ls
317 cd dev
318 ls
319 cd mapper/
320 ls
321 ls
322 ls -l
323 vim /etc/multipath.conf
324 cd /
325 ls
326 cd etc/
327 ls
328 cat /etc/multipath.conf
329 vim /etc/multipath.conf
330 cat /etc/multipath.conf
331 service multipathd reload
332 multipath -v2
333 service multipathd restart
334 multipath -ll
335 vim multipath.conf
336 reboot
337 cd “/”
338 cat /proc/sisi/sisi
339 cat /proc/sisi/si
340 cat /proc/sisi/si*
341 cd /proc
342 ls
343 cat /proc/scsi/scsi
344 /lib/udev/sisi_id -g -u /dev/sdb
345 cat /lib/udev/sisi_id -g -u /dev/sdb
346 /lib/udev/scsi_id -g -u /etc/sdb
347 /lib/udev/scsi_id -g -u /etc/sdc
348 /lib/udev/scsi_id -g -u /etc/sdc
349 /lib/udev/scsi_id -g -u /dev/sdc
350 /lib/udev/scsi_id -g -u /dev/sdb
351 multipath -ll
352 lsblk
353 multipath -v2
354 lsblk
355 multipath -ll
356 cat /etc/multipath.conf
357 history
358 multipath -v3
359 lsblk
360 multipath -ll
361 multipath -ll
362 lsblk
363 fdisk -l
364 mpathconf --enable --with_multipathd y
365 mpathconf
366 multipath -ll
367 cd /
368 ls
369 cd dev/
370 ls
371 cd mapper/
372 ls
373 gdik /dev/mapper/scratch
374 rpm -qa |grep gdisk
375 gdisk /dev/mapper/scratch
376 mkfs.xfs /dev/mapper/scratch
377 cd /
378 ls
379 mount /dev/mapper/scratch /zkhw/
380 mkfs.xfs -f /dev/mapper/scratch
381 df -Th
382 mount /dev/mapper/scratch /zkhw/
383 df -Th
384 cd /
385 ls
386 cd zkhw/
387 ls
388 touch 1.txt
389 ls
390 vi 1.txt
391 cat /zkhw/1.txt
392 mv /root/multipath.conf .
393 ls
394 ls
395 cat 1.txt
396 vi /zkhw/1.txt
397 cat 1.txt
398 cd /
399 ls
400 cd zkhw/
401 ls
402 vi 1.txt
403 cat 1.txt
404 cd /
405 ls
406 cd zkhw/
407 ls
408 vi 1.txt
409 cat 1.txt
410 reboot
411 cd “/zkhw”
412 打符-好
413 df -h
414 multipath -ll
415 mpathconf
416 systemctl status multipathd.service
417 history
418 cd /etc/
419 sz multipath.conf
420
421 mpathconf --enable --with_multipathd y
422 multipath -ll
423 cd /dev/
424 ls
425 multipath -v2
426 multipath -v3
427 multipath -ll
428 reboot
429 lsblk
430 multipath -v2
431 multipath -v3
432 mpathconf --enable --with_multipathd y
433 mpathconf
434 multipath -ll
435 mount /dev/mapper/scratch /zkhw/
436 ls /zkhw/
437 cat /zkhw/
438 cat /zkhw/1.txt
439 ls -lh /zkhw/
440 ls -lh /zkhw
441 ls -lh /
442 df -h
443 mount /dev/mapper/scratch /zkhw/lsb
444 lsblk
445 df -h
446 df -h
447 cd /
448 ls
449 cd zkhw/
450 ls
451 cd /
452 ls
453 umount /zkhw
454 df -Th
455 cd /
456 ls
457 cd dev/
458 ls
459 cd mapper/
460 ls
461 blkid /dev/mapper/scratch
462 cat /etc/fstab
463 UUID=“949bdf75-8103-4fea-a844-3da293edc547”
464 blkid /dev/mapper/scratch |awk’{print $2}’ >> //etc/fstab
465 blkid /dev/mapper/scratch | awk’{print $2}‘ >> //etc/fstab
466 blkid /dev/mapper/scratch | awk’{print $2}‘ >> //etc/fstab
467 blkid /dev/mapper/scratch | awk’{print $2}‘ >> //etc/fstab
468 ls
469 blkid /dev/mapper/scratch
470 vim /etc/fstab
471 vi /etc/fstab
472 blkid /dev/mapper/scratch
473 vi /etc/fstab
474 cat /etc/fstab
475 df -Th
476 cd
477 cd /
478 ls
479 mount -a
480 df -Th
481 umount /zkhw/
482 vim /etc/fstab
483 mount -a
484 umount /dev/sdc
485 ls b
486 lsblk
487 df -Th
488 mount -a
489 cat /etc/fstab
490 lsof /dev/sdc
491 vim /etc/fstab
492 mount -a
493 lsblk
494 blid
495 blkid
496 blkid /dev/mapper/scratch
497 cat /etc/fstab
498 df -Th
499 mount -a
500 umount /dev/sdc
501 umount -f /dev/sdc
502 fuser -m /dev/sdc
503 fsck /dev/sdc
504 vim /etc/fstab
505 reboot
506 lsblk
507 cat /etc/fstab
508 df -Th
509 mpathconf --enable --with_multipathd y
510 mpathconf
511 mpathconf -ll
512 fsdisk -l
513 fdisk -l
514 df -Th
515 blkid
516 cd /
517 ls
518 cd dev/
519 ls
520 cd mapper/
521 ls
522 blkid /dev/mapper/scratch
523 cat /etc/fstab
524 cd
525 cd /
526 ls
527 mount /dev/mapper/scratch /zkhw/
528 df -Th
529 umount /zkhw
530 df -Th
531 vi /etc/fstab
532 umount -f /zkhw/
533 df -h
534 mount -a
535 df -Th
536 lsblk
537 cat /etc/fstab
538 cd /
539 ls
540 cd zkhw/
541 ls
542 cat 1.txt
543 vi 1.txt
544 cat /etc/fstab
545 vim /etc/fstab
546 reboot
547 multipath -v2
548 multipath -v3
549 mpathconf --enable --with_multipathd y
550 multipath -ll
551 vim /etc/fstab
552 history
553 lsblk
554 reboot
555 multipath -v3
556 multipath -v2
557 multipath -v3
558 lsblk
559 mpathconf --enable --with_multipathd y
560 lsblk
561 mpathconf
562 lsblk
563 multipath -F
564 lsblk
565 multipath
566 multipath -ll
567 mpathconf --enable --with_multipathd y
568 mpathconf
569 mpathconf --find_multipaths y
570 mpathconf
571 mpathconf -ll
572 multipath -ll
573 cd /
574 sls
575 ls
576 cd dev
577 ls
578 cd mapper/
579 ls
580 lsblk
581 systemctl reload multipathd.service
582 service multipathd status
583 df -Th
584 fdisk -l
585 lsblk
586 cd /
587 ls
588 multipath -ll
589 cd /
590 ls
591 cd etc/
592 cat multipath.conf
593 lsblk
594 ls /zkhw/
595 reboot
596 df -h
597 lsblk
598 multipath -v2
599 multipath -v3
600 mpathconf --enable --with_multipathd y
601 multipath -ll
602 mpathconf
603 lsblk
604 mount -a
605 vim /etc/fstab
606 lsblk
607 vim /etc/fstab
608 mount -a
609 lsblk
610 ls /dev/mapper/
611 ls
612 cd /dev/mapper/
613 ls
614 cat scratch
615 ls
616 ls /zkhw/
617 history
618 gdisk /dev/mapper/scratch
619 blkid /dev/mapper/scratch
620 vim /etc/fstab
621 mount -a
622 lsblk
623 ls /zkhw/
624 cat /zkhw/1.txt
625 vim set.sh
626 cd
627 vim /etc/rc.local
628 chmod +x /etc/rc.local
629 systemctl daemon-reload
630 systemctl start rc-local.service
631 systemctl enable rc-local.service
632 vim /etc/rc.local
633 vim /etc/systemd/system/银河麒麟操作系统中,确实可以通过创建systemd服务来实现在系统启动时执行特定命令。但是,根据您提供的信息,如果单元文件中没有安装配置(例如WantedBy=RequiredBy=等设置),那么这些服务就不会被systemctl启用。
634 在银河麒麟系统中,您可以通过以下步骤来确保在执行完特定命令后再执行/etc/fstab中的挂载操作:
635 1. 创建systemd服务文件
636 创建一个新的systemd服务文件,例如multipath-config.service
637 bash 638 sudo nano /etc/systemd/system/multipath-config.service 639
640 这样配置后,multipath-config.service服务将在local-fs.target之前运行,确保在/etc/fstab中的挂载操作之前执行了multipathmpathconf命令。
641 sudo nano /etc/systemd/system/multipath-config.service
642 3. 启用并启动服务
643 启用该服务,并在启动时运行:
644 bash 645 sudo systemctl enable multipath-config.service 646 sudo systemctl start multipath-config.service 647
648 vim /etc/systemd/system/multipath-config.service
649 systemctl daemon-reload
650 systemctl enable multipath-config.service
651 systemctl start multipath-config.service
652 cat /etc/fstab
653 vim /etc/fstab
654 ls /zkhw/
655 lsblk
656 reboot
657 lsblk
658 systemctl start multipath-config.service
659 journalctl -xe
660 systemctl status multipath-config.service
661 lsblk
662 df -h
663 multipath -v2
664 multipath -v3
665 rm -rf
666 cat /etc/multipath.conf
667 vim /etc/multipath.conf
668 3600c0ff000f8bb81f91a116701000000
669 cp /etc/multipath.conf /etc/multipath.conf.backup
670 systemctl restart multipath-config.service
671 systemctl status multipath-config.service
672 systemctl restart multipath-config.service
673 systemctl status multipathd.service
674 cat /etc/systemd/system
675 cd /etc/systemd/system/
676 ls
677 cd multi-user.target.wants/
678 ls
679 cd …
680 ls
681 cat cron.service
682 cat multipath-config.service
683 rm multipath-config.service
684 cat multipath-config.service
685 cd
686 reboot
687 /sbin/scsi_id -g -u -s /block/%n
688 lsblk
689 cat /etc/fstab
690 vim /etc/multipath.conf
691 cat /etc/multipath.conf
692 lsblk
693 df -h
694 ls /dev/
695 ls /dev/mapper/
696 ls /
697 cat /etc/multipath.conf
698 multipath -v2
699 multipath -v3
700 mpathconf --enable --with_multipathd y
701 multipath -ll
702 lsblk
703 vim /etc/multipath.conf
704 sudo systemctl restart multipathd
705 lsblk
706 multipath -ll
707 vim /etc/multipath.conf
708 systemctl restart multipathd
709 lsblk
710 multipath -ll
711 vim /etc/multipath.conf
712 systemctl restart multipathd
713 multipath -ll
714 lsblk
715 multipath -v
716 systemctl status multipathd
717 journalctl -u multipathd
718 multipath -Fv -a multipath.conf
719 multipath -Fv -a /etc/multipath.conf
720 multipath -v3 -ll
721 lsdev -Cc disk
722 lsscsi
723 lsscsi /dev/sdb
724 /lib/udev/scsi_id -g -u /dev/sdx
725 /lib/udev/scsi_id -g -u /dev/sdb
726 /lib/udev/scsi_id -g -u /dev/sdc
727 vim /etc/multipath.conf
728 multipath -Fv -W 3600c0ff000f8bb81f91a116701000000
729 multipath -a
730 lsblk
731 multipath -a 3600c0ff000f8bb81f91a116701000000
732 systemctl restart multipathd
733 multipath -ll
734 lsblk
735 multipath -Fv /dev/sdc
736 which scsi_id
737 ls -l /sbin/scsi_id
738 ls -l /dev/sdb
739 /sbin/scsi_id -g -u -s /dev/sdb
740 which scsi_id
741 apt-get update
742 yum clean all
743 yum repolist
744 yum -y install install sg3-utils
745 yum update
746 yum -y install install sg3-utils
747 vim /etc/yum.repos.d/kylin.repo
748 sudo yum clean all
749 sudo yum makecache
750 yum repolist
751 vim /etc/yum.repos.d/kylin.repo
752 sudo yum clean all
753 cd /etc/yum.repos.d/
754 ls
755 vi kylin_x86_64.repo
756 vim /etc/yum.repos.d/kylin.repo
757 sudo yum clean all
758 cat kylin_x86_64.repo
759 vim kylin.repo
760 yum clean all
761 yum repolist
762 yum update
763 ping www.baidu.com
764 sudo yum makecache
765 yum repolist
766 sudo yum install sg3_utils
767 echo $PATH
768 which scsi_id
769 sudo find / -name scsi_id
770 usr/lib/udev/scsi_id -g -u -s /dev/sdb
771 /usr/lib/udev/scsi_id -g -u -s /dev/sdb
772 lsblk
773 sudo ln -s /usr/lib/udev/scsi_id /usr/local/bin/scsi_id
774 echo P A T H 775 e c h o ′ e x p o r t P A T H = PATH 775 echo 'export PATH= PATH775echoexportPATH=PATH:/usr/local/bin’ >> ~/.bashrc
776 source ~/.bashrc
777 which scsi_id
778 systemctl restart multipathd.service
779 multipath -ll
780 df -h
781 lsblk
782 lsscsi
783 cat /sys/block/sdb/device/wwid
784 scsi_id /dev/sdb
785 scsi_id --whitelisted --device=/dev/sdb
786 cat /etc/multipath.conf
787 vim /etc/multipath.conf
788 systemctl restart multipathd.service
789 cat /etc/multipath.conf
790 multipath -ll
791 lsblk
792 [root@localhost yum.repos.d]# cat /etc/multipath.conf
793 # This is a basic configuration file for device mapper multipath.
794 # Most comments have been removed for brevity, but you can find more information
795 # in the multipath.conf.annotated file or by visiting the multipath documentation.
796 # Blacklist all devices by default. Remove this to enable multipathing
797 # on the default devices.
798 blacklist {
799 devnode “^sda”
800 devnode “^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*”
801 devnode “^hd[a-z]”
802 }
803 # Use user friendly names, instead of using WWIDs as names.
804 defaults {
805 find_multipaths yes
806 user_friendly_names yes
807 path_grouping_policy multibus
808 getuid_callout “/sbin/scsi_id -g -u -s /block/%n”
809 path_selector round-robin
810 failback immediate
811 }
812 # Example multipath configuration
813 multipaths {
814 multipath {
815 wwid “3600c0ff000f8bb81f91a116701000000”
816 alias “my_multipath”
817 path_grouping_policy multibus
818 path_selector “round-robin 0”
819 failback immediate
820 rr_weight priorities
821 no_path_retry 5
822 }
823 }
824 # Example device specific configuration
825 devices {
826 device {
827 vendor “HPE”
828 product “MSA 2060 FC”
829 path_grouping_policy multibus
830 getuid_callout “/sbin/scsi_id -g -u -s /block/%n”
831 path_selector round-robin
832 hardware_handler “0”
833 failback immediate
834 rr_weight uniform
835 no_path_retry 12
836 }
837 }
838 [root@localhost yum.repos.d]# multipath -ll
839 [root@localhost yum.repos.d]# lsblk
850 [root@localhost yum.repos.d]#
851 systemctl status multipath
852 systemctl status multipath.service
853 systemctl status multipath.server
854 systemctl status multipathd
855 vim /etc/multipath.conf
856 systemctl restart multipathd
857 multipath -ll
858 ls -l /usr/lib/udev/scsi_id
859 chmod +x /usr/lib/udev/scsi_id
860 systemctl restart multipathd
861 multipath -ll
862 lsblk
863 vim /etc/multipath.conf
864 multipath -v2
865 multipath -v3
866 cd “/etc/yum.repos.d”
867 /usr/lib/udev/scsi_id -g -u -s /bl
868 /sbin/scsi_id -g -u -s /block
869 /sbin/scsi_id
870 /usr/lib/udev/scsi_id
871 /usr/lib/udev/scsi_id -g
872 /usr/lib/udev/scsi_id -g -u
873 /usr/lib/udev/scsi_id -g -u -s
874 /usr/lib/udev/scsi_id -g -u -s /dev/sdb
875 vim /etc/multipath.conf
876 sudo chmod +x /usr/lib/udev/scsi_id
877 systemctl restart multipathd
878 /usr/lib/udev/scsi_id -g -u -s /dev/sdb
879 lsscsi --scsi_id
880 cat /sys/block/sdb/device/wwid
881 udevadm info --query=all --name=/dev/sdb | grep SCSI_ID
882 lsblk
883 cat /etc/multipath.conf
884 multipath -ll
885 multipath -v3
886 cd
887 vim /etc/multipath.conf
888 systemctl restart multipathd.service
889 multipath -ll
890 multipath -v2
891 lsblk
892 lsscsi
893 vim /etc/multipath.conf
894 systemctl restart multipathd.service
895 multipath -ll
896 lsblk
897 journalctl -u multipathd
898 multipathd enable devnode sdb
899 lsblk
900 cat /etc/multipath.conf
901 lsscsi --scsi_id
902 lsscsi --scsi_id /dev/sdc
903 echo “1” > /sys/class/scsi_host/HOST_NAME/scan
904 vim /etc/multipath.conf
905 systemctl restart multipathd.service
906 multipath
907 multipath -ll
908 vim /etc/multipath.conf
909 systemctl restart multipathd.service
910 multipath -ll
911 reboot
912 lsblk
913 multipath -v2
914 vim /etc/multipath.conf
915 multipath -v2
916 multipath -t
917 sudo modprobe dm-multipath
918 sudo systemctl start multipathd
919 sudo systemctl status multipathd
920 lsblk
921 multipath -v3
922 multipath -ll
923 reboot
924 multipath -v2
925 multipath -v3
926 multipath -v4
927 lsblk
928 lsscsi
929 multipath -v5
930 multipath -ll
931 mpathconf --enable --with_multipathd y
932 lsblk
933 multipath -ll
934 lsblk
935 vim /etc/fstab
936 mount -a
937 vim /etc/fstab
938 cat /etc/fstab
939 mount /dev/mapper/my_multipath /zkhw/
940 ls /zkhw/
941 cat /zkhw/1.txt
942 multipath -ll
943 rpm -qa | grep install device-mapper-multipath
944 rpm -qa | grep device-mapper-multipath
945 yum -y install device-mapper-multipath
946 mpathconf --enable
947 systemctl start multipathd
948 systemctl enable multipathd
949 multipath -ll
950 reboot
951 lsblk
952 multipath -ll
957 vim /etc/fstab
959 mount -a
960 lsof /dev/sd
961 lsof /dev/sdc
962 lsblk
963 mount | grep sdc
964 dmsetup status
965 dmsetup remove_all
966 lsblk
967 mount -a
968 cat /etc/fstab
969 blkid /dev/mapper/my_multipath
970 multipath -ll
971 mount /dev/mapper/my_multipath /zkhw
972 ls /zkhw/
973 cat /zkhw/1.txt
974 ls
975 multipath -ll
977 umount /zkhw
978 mount -a
979 ls /dev/mapper/my_multipath
980 vim /etc/fstab
981 ls /zkhw/
982 mount -a

[END] 2024/10/18 17:42:12

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值