[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where do I find the definitive man page for mdadm?



On Saturday 13 November 2021 18:37:34 Greg Wooledge wrote:

> On Sat, Nov 13, 2021 at 04:06:43PM -0700, Charles Curley wrote:
> > On Sat, 13 Nov 2021 16:57:01 -0500
> >
> > Gene Heskett <gheskett@shentel.net> wrote:
> > > So which of these various UUID's is actually valid in an fstab
> >
> > Thanks, Andy. This is nice to know about.
> >
> > Gene, the answer is, anythng the TYPE of which is a valid file
> > system. Try, e.g.:
> >
> > blkid | grep -E -i \(ext\|ntfs\|fat\)
>
> lsblk is a lot easier and prettier for this purpose.
>
> unicorn:~$ sudo lsblk -o +UUID
> NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT UUID
> sda      8:0    0 931.5G  0 disk
> ├─sda1   8:1    0   260M  0 part /boot/efi  4C30-7972
> ├─sda2   8:2    0    16M  0 part
> ├─sda3   8:3    0  92.2G  0 part            7294B93794B8FEA3
> ├─sda4   8:4    0   980M  0 part            609E71C79E71966E
> ├─sda5   8:5    0  11.5G  0 part            6858F6A458F66FE4
> ├─sda6   8:6    0  11.2G  0 part [SWAP]    
> 08c87bdb-17f4-40ab-9b2f-5cb2f29149fb ├─sda7   8:7    0  23.3G  0 part
> /          c4691ccb-2090-491e-8e82-d7cc822db04a ├─sda8   8:8    0 
> 23.3G  0 part /home      19fb397b-a113-4536-a03d-d60e176cbfdf └─sda9  
> 8:9    0 651.9G  0 part /stuff    
> 95058c4a-44e2-4a90-87b5-2a5fe40d3cdb sr0     11:0    1 418.7M  0 rom
Is not me thats confused but both lsblk and blkid spitting out 4 sets of identical UUID's as all drives are identical.  

Example:
root@coyote:etc$ lsblk -o +UUID
NAME    MAJ:MIN RM   SIZE RO TYPE   MOUNTPOINT   UUID
sda       8:0    0   1.8T  0 disk
├─sda1    8:1    0   953M  0 part   /boot        06aa3215-a6a6-4fbb-86ca-186c47e1334c
├─sda2    8:2    0  14.9G  0 part   [SWAP]       8b675a91-5aa5-401b-bf50-d8afc3e8115a
├─sda3    8:3    0  46.6G  0 part   /var         ee491e5c-7394-434f-b50a-f4354f6c9869
├─sda4    8:4    0     1K  0 part
└─sda5    8:5    0   1.8T  0 part   /            0e698024-1cf3-4dbc-812d-10552c01caab
sdb       8:16   0 223.6G  0 disk
└─sdb1    8:17   0 223.6G  0 part   /sdb         4982ee4c-58c4-4d2b-b9d5-69344c3cb090
sdc       8:32   0   1.8T  0 disk
└─sdc1    8:33   0   1.8T  0 part   /amandatapes 3b6848c1-7b09-43be-a7aa-ae63d82f5f26
sde       8:64   0 931.5G  0 disk
├─sde1    8:65   0 878.9G  0 part                3d5a3621-c0e3-2c8a-e3f7-ebb3318edbfb
│ └─md0   9:0    0   1.7T  0 raid10 /home2       708320b3-10af-4c15-b5b1-a9ff7be06d99
└─sde2    8:66   0  48.8G  0 part                ddb6ffa2-e068-b701-f316-cc5f83938a13
  └─md1   9:1    0  97.6G  0 raid10 /snapshot    733718b2-e7f8-4b00-a390-264e5c73c453
sdf       8:80   0 931.5G  0 disk
├─sdf1    8:81   0 878.9G  0 part                3d5a3621-c0e3-2c8a-e3f7-ebb3318edbfb
│ └─md0   9:0    0   1.7T  0 raid10 /home2       708320b3-10af-4c15-b5b1-a9ff7be06d99
└─sdf2    8:82   0  48.8G  0 part                ddb6ffa2-e068-b701-f316-cc5f83938a13
  └─md1   9:1    0  97.6G  0 raid10 /snapshot    733718b2-e7f8-4b00-a390-264e5c73c453
sdg       8:96   0 931.5G  0 disk
├─sdg1    8:97   0 878.9G  0 part                3d5a3621-c0e3-2c8a-e3f7-ebb3318edbfb
│ └─md0   9:0    0   1.7T  0 raid10 /home2       708320b3-10af-4c15-b5b1-a9ff7be06d99
└─sdg2    8:98   0  48.8G  0 part                ddb6ffa2-e068-b701-f316-cc5f83938a13
  └─md1   9:1    0  97.6G  0 raid10 /snapshot    733718b2-e7f8-4b00-a390-264e5c73c453
sdh       8:112  0 931.5G  0 disk
├─sdh1    8:113  0 878.9G  0 part                3d5a3621-c0e3-2c8a-e3f7-ebb3318edbfb
│ └─md0   9:0    0   1.7T  0 raid10 /home2       708320b3-10af-4c15-b5b1-a9ff7be06d99
└─sdh2    8:114  0  48.8G  0 part                ddb6ffa2-e068-b701-f316-cc5f83938a13
  └─md1   9:1    0  97.6G  0 raid10 /snapshot    733718b2-e7f8-4b00-a390-264e5c73c453
sr0      11:0    1  1024M  0 rom

So we are talking at cross purposes here as this did not answer my question well enough
to make it work on the first try.

I'll use labels, /home2 and /snapshot, thank you.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply to: