Re: Problems with blkid hanging. (Samuel Sieb)

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

 



Sam,

Thanks for your response.

First the good news. I just installed a fresh FC33 in a separate VM. typed in "blkid"... got a nice display and NO hang. I usually do a bunch of group installs on fresh systems but haven't yet. I thought I'd do my "usual" system changes one at a time... maybe to find what causes the hang. Do you have a better idea? I'm all ears.

Meanwhile, back at the ranch...

I have a blkid.strace file... ctrl-c does NOT end the command. They really meant Uninterruptible. Sigh...

Notice the lseek at the bottom. This is the swap partition defined as 12G. Here's the whole drive (a 2TB seagate hybrid):    2.946168] scsi 0:0:0:0: Direct-Access     ATA      ST2000LX001-1RG1 SDM1 PQ: 0 ANSI: 5

Device     Boot     Start        End    Sectors  Size Id Type
/dev/sda1  *         2048    4196351    4194304    2G 83 Linux
/dev/sda2         4196352    8390655    4194304    2G 83 Linux
/dev/sda3         8390656   33556479   25165824   12G 82 Linux swap / Solaris
/dev/sda4        33556480 3907029167 3873472688  1.8T  5 Extended
/dev/sda5        33558528  167776255  134217728   64G 83 Linux
/dev/sda6       167778304  301996031  134217728   64G 83 Linux
/dev/sda7       301998080  436215807  134217728   64G 83 Linux
/dev/sda8       436217856 3907029167 3470811312  1.6T 83 Linux



that offset in the lseek seems like an awfully big number don't you think? The "blkid" command is going after /dev/sda3. 

Here's the "fun stuff":

392 261523 lstat("/dev", {st_dev=makedev(0, 0x6), st_ino=3, st_mode=S_IFDIR|0755, st_nlink=22, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=4280, st_atime=1582623769 /* 2020
392 -02-25T01:42:49.887552191-0800 */, st_atime_nsec=887552191, st_mtime=1582537150 /* 2020-02-24T01:39:10.912641452-0800 */, st_mtime_nsec=912641452, st_ctime=1582537150 /* 2020-02-24T0
392 1:39:10.912641452-0800 */, st_ctime_nsec=912641452}) = 0
393 261523 lstat("/dev/sda3", {st_dev=makedev(0, 0x6), st_ino=2227, st_mode=S_IFBLK|0660, st_nlink=1, st_uid=0, st_gid=6, st_blksize=4096, st_blocks=0, st_rdev=makedev(0x8, 0x3), st_atim393 e=1582536899 /* 2020-02-24T01:34:59.922441488-0800 */, st_atime_nsec=922441488, st_mtime=1582536864 /* 2020-02-24T01:34:24.860780764-0800 */, st_mtime_nsec=860780764, st_ctime=158253393 6864 /* 2020-02-24T01:34:24.860780764-0800 */, st_ctime_nsec=860780764}) = 0
394 261523 stat("/dev/sda3", {st_dev=makedev(0, 0x6), st_ino=2227, st_mode=S_IFBLK|0660, st_nlink=1, st_uid=0, st_gid=6, st_blksize=4096, st_blocks=0, st_rdev=makedev(0x8, 0x3), st_atime394 =1582536899 /* 2020-02-24T01:34:59.922441488-0800 */, st_atime_nsec=922441488, st_mtime=1582536864 /* 2020-02-24T01:34:24.860780764-0800 */, st_mtime_nsec=860780764, st_ctime=1582536394 864 /* 2020-02-24T01:34:24.860780764-0800 */, st_ctime_nsec=860780764}) = 0
395 261523 lstat("/dev", {st_dev=makedev(0, 0x6), st_ino=3, st_mode=S_IFDIR|0755, st_nlink=22, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=4280, st_atime=1582623769 /* 2020395 -02-25T01:42:49.887552191-0800 */, st_atime_nsec=887552191, st_mtime=1582537150 /* 2020-02-24T01:39:10.912641452-0800 */, st_mtime_nsec=912641452, st_ctime=1582537150 /* 2020-02-24T0395 1:39:10.912641452-0800 */, st_ctime_nsec=912641452}) = 0
396 261523 lstat("/dev/sda3", {st_dev=makedev(0, 0x6), st_ino=2227, st_mode=S_IFBLK|0660, st_nlink=1, st_uid=0, st_gid=6, st_blksize=4096, st_blocks=0, st_rdev=makedev(0x8, 0x3), st_atim396 e=1582536899 /* 2020-02-24T01:34:59.922441488-0800 */, st_atime_nsec=922441488, st_mtime=1582536864 /* 2020-02-24T01:34:24.860780764-0800 */, st_mtime_nsec=860780764, st_ctime=158253396 6864 /* 2020-02-24T01:34:24.860780764-0800 */, st_ctime_nsec=860780764}) = 0
397 261523 access("/dev/sda3", F_OK)        = 0
398 261523 stat("/dev/sda3", {st_dev=makedev(0, 0x6), st_ino=2227, st_mode=S_IFBLK|0660, st_nlink=1, st_uid=0, st_gid=6, st_blksize=4096, st_blocks=0, st_rdev=makedev(0x8, 0x3), st_atime398 =1582536899 /* 2020-02-24T01:34:59.922441488-0800 */, st_atime_nsec=922441488, st_mtime=1582536864 /* 2020-02-24T01:34:24.860780764-0800 */, st_mtime_nsec=860780764, st_ctime=1582536398 864 /* 2020-02-24T01:34:24.860780764-0800 */, st_ctime_nsec=860780764}) = 0
399 261523 openat(AT_FDCWD, "/sys/dev/block/8:3", O_RDONLY|O_CLOEXEC) = 4
400 261523 openat(4, "dm/uuid", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
401 261523 close(4)                         = 0
402 261523 openat(AT_FDCWD, "/dev/sda3", O_RDONLY|O_NONBLOCK|O_CLOEXEC) = 4
403 261523 fadvise64(4, 0, 0, POSIX_FADV_RANDOM) = 0
404 261523 fstat(4, {st_dev=makedev(0, 0x6), st_ino=2227, st_mode=S_IFBLK|0660, st_nlink=1, st_uid=0, st_gid=6, st_blksize=4096, st_blocks=0, st_rdev=makedev(0x8, 0x3), st_atime=15825368404 99 /* 2020-02-24T01:34:59.922441488-0800 */, st_atime_nsec=922441488, st_mtime=1582536864 /* 2020-02-24T01:34:24.860780764-0800 */, st_mtime_nsec=860780764, st_ctime=1582536864 /* 20404 20-02-24T01:34:24.860780764-0800 */, st_ctime_nsec=860780764}) = 0
405 261523 ioctl(4, BLKGETSIZE64, [12884901888]) = 0
406 261523 openat(AT_FDCWD, "/sys/dev/block/8:3", O_RDONLY|O_CLOEXEC) = 5
407 261523 openat(5, "dm/uuid", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
408 261523 close(5)                         = 0
409 261523 openat(AT_FDCWD, "/sys/dev/block/8:3", O_RDONLY|O_CLOEXEC) = 5
410 261523 faccessat(5, "partition", F_OK)  = 0
411 261523 readlink("/sys/dev/block/8:3", "../../devices/pci0000:00/0000:00"..., 4095) = 83
412 261523 openat(AT_FDCWD, "/sys/block/sda/dev", O_RDONLY|O_CLOEXEC) = 6
413 261523 fstat(6, {st_dev=makedev(0, 0x15), st_ino=20233, st_mode=S_IFREG|0444, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=4096, st_atime=1582623769 /* 2020-413 02-25T01:42:49.888552218-0800 */, st_atime_nsec=888552218, st_mtime=1582623769 /* 2020-02-25T01:42:49.888552218-0800 */, st_mtime_nsec=888552218, st_ctime=1582623769 /* 2020-02-25T01413 :42:49.888552218-0800 */, st_ctime_nsec=888552218}) = 0
414 261523 read(6, "8:0\n", 4096)           = 4
415 261523 close(6)                         = 0
416 261523 close(5)                         = 0
417 261523 lseek(4, 12884836352, SEEK_SET


Any thoughts?

Regards,

George...


------------------------------

Date: Mon, 24 Feb 2020 17:23:20 -0800
From: Samuel Sieb <samuel@xxxxxxxx>
Subject: Re: Problems with blkid hanging.
To: test@xxxxxxxxxxxxxxxxxxxxxxx
Message-ID: <379c4480-b0ef-37c9-cac3-b4c69f5a31fa@xxxxxxxx>
Content-Type: text/plain; charset=utf-8; format=flowed

On 2/24/20 3:07 PM, George R Goffe via test wrote:
> I can get a "strace -xvf blkid" trace file if that would help.

I was just going to suggest something like this.  Once it's hung, it's 
usually too late to strace it.  You need to run it with strace to start 
with.
Try "strace -s200 -f -o blkid.trace blkid".  That will generate a file 
called "blkid.trace" in the current directory containing all the output. 
  Once it's hung, you should be able to ^C it.  Check the last lines of 
that file to see what it was trying to do at the point it got stuck.

------------------------------
_______________________________________________
test mailing list -- test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to test-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/test@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux