LINUX.ORG.RU

История изменений

Исправление bredis, (текущая версия) :

Вот выхлоп

[root@xxx ~]# lsblk -o +uuid,name
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
                                                UUID                                 NAME
sda           8:0    0     7T  0 disk                                                sda
└─sda1        8:1    0     7T  0 part /files    7c83d929-8446-4e81-8be1-ca4fb9127f88 sda1
sdb           8:16   0 893,8G  0 disk                                                sdb
├─sdb1        8:17   0   255M  0 part /boot/efi 8BEA-9E08                            sdb1
├─sdb2        8:18   0  31,4G  0 part [SWAP]    58737899-ab3f-4096-abac-4434f25421c8 sdb2
├─sdb3        8:19   0  23,8G  0 part /         dc86399b-67cf-4698-b273-b308149bcc21 sdb3
└─sdb4        8:20   0 838,2G  0 part /var      a0009db3-075c-4674-a244-61ea9c6d9e76 sdb4
sdc           8:32   0   3,6T  0 disk                                                sdc
└─sdc1        8:33   0   3,6T  0 part           7CACFADDACFA913E                     sdc1
nvme0n1     259:0    0   1,5T  0 disk                                                nvme0n1
└─nvme0n1p1 259:1    0   1,5T  0 part /database 17be7270-32c9-4d53-9f4c-2c5108bfbc3d nvme0n1p1
[root@xxx ~]# lsblk -o +uuid,name | awk '$8 ~ "^(34E030F1E030BB46|7CACFADDACFA913E)$" {print $7}'
[root@xxx ~]# lsblk -o +uuid,name | awk '/34E0|7CAC/ {print $7}'
7CACFADDACFA913E
[root@xxx ~]#

Исправление bredis, :

Вот выхлоп

[root@xxx ~]# lsblk -o +uuid,name
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
                                                UUID                                 NAME
sda           8:0    0     7T  0 disk                                                sda
└─sda1        8:1    0     7T  0 part /files    7c83d929-8446-4e81-8be1-ca4fb9127f88 sda1
sdb           8:16   0 893,8G  0 disk                                                sdb
├─sdb1        8:17   0   255M  0 part /boot/efi 8BEA-9E08                            sdb1
├─sdb2        8:18   0  31,4G  0 part [SWAP]    58737899-ab3f-4096-abac-4434f25421c8 sdb2
├─sdb3        8:19   0  23,8G  0 part /         dc86399b-67cf-4698-b273-b308149bcc21 sdb3
└─sdb4        8:20   0 838,2G  0 part /var      a0009db3-075c-4674-a244-61ea9c6d9e76 sdb4
sdc           8:32   0   3,6T  0 disk                                                sdc
└─sdc1        8:33   0   3,6T  0 part           7CACFADDACFA913E                     sdc1
nvme0n1     259:0    0   1,5T  0 disk                                                nvme0n1
└─nvme0n1p1 259:1    0   1,5T  0 part /database 17be7270-32c9-4d53-9f4c-2c5108bfbc3d nvme0n1p1
[root@serv1c-01 ~]# lsblk -o +uuid,name | awk '$8 ~ "^(34E030F1E030BB46|7CACFADDACFA913E)$" {print $7}'
[root@xxx ~]# lsblk -o +uuid,name | awk '/34E0|7CAC/ {print $7}'
7CACFADDACFA913E
[root@xxx ~]#

Исходная версия bredis, :

Вот выхлоп

[root@xxx ~]# lsblk -o +uuid,name
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
                                                UUID                                 NAME
sda           8:0    0     7T  0 disk                                                sda
└─sda1        8:1    0     7T  0 part /files    7c83d929-8446-4e81-8be1-ca4fb9127f88 sda1
sdb           8:16   0 893,8G  0 disk                                                sdb
├─sdb1        8:17   0   255M  0 part /boot/efi 8BEA-9E08                            sdb1
├─sdb2        8:18   0  31,4G  0 part [SWAP]    58737899-ab3f-4096-abac-4434f25421c8 sdb2
├─sdb3        8:19   0  23,8G  0 part /         dc86399b-67cf-4698-b273-b308149bcc21 sdb3
└─sdb4        8:20   0 838,2G  0 part /var      a0009db3-075c-4674-a244-61ea9c6d9e76 sdb4
sdc           8:32   0   3,6T  0 disk                                                sdc
└─sdc1        8:33   0   3,6T  0 part           7CACFADDACFA913E                     sdc1
nvme0n1     259:0    0   1,5T  0 disk                                                nvme0n1
└─nvme0n1p1 259:1    0   1,5T  0 part /database 17be7270-32c9-4d53-9f4c-2c5108bfbc3d nvme0n1p1
[root@serv1c-01 ~]# lsblk -o +uuid,name | awk '$8 ~ "^(34E030F1E030BB46|7CACFADDACFA913E)$" {print $7}'
[root@xxx ~]# lsblk -o +uuid,name | awk '/35E0|7CAC/ {print $7}'
7CACFADDACFA913E
[root@xxx ~]#