troubleshooting Question

Linux Questions 6

Avatar of Member_2_6368962
Member_2_6368962 asked on
LinuxUnix OS
2 Comments2 Solutions574 ViewsLast Modified:
Hi everybody,

I am completing a Linux test and I would like to know if someone is good at linux OS and could anwer theses questions for me to compare.

10- User is running a process, but it seems to be stuck, when attaching strace to the pid, strace shows an unfinished system call.

10.1- What is the meaning of an unfinished syscall?

10.2- What is the best approach to understand what is happening in this process?

10.3- How can one tell exactly where the process is stuck, or how to debug the problem further?

11- User is running a process, but it seems to be stuck, when attaching strace to the pid, strace shows nothing at all.

11.1- how can one understand what is happening and the status of the process?

11.2- What can one do to debug this case even further?

12- Superuser runs 'sync' on a linux system, but this command never returns, doing 'ps auxw | grep sync' the sysadmin notices that it is in 'D' state. Can the sysadmin kill this process? The sysadmin tried to strace the process, which only showed the unfinished sync() syscall.

Supposing that a support call will be opened to find the root cause of this issue, what kind of information would you try to obtain, and why?

13- By accident a sysadmin removed one of the disks belonging to an active VG. When rebooting the system they notice that the system does not boot anymore. The disk that was removed was part of the VG but contained no data. What is the procedure to bring the machine back to operation and the VG back with its LVs?

14- Write a shell command that lists all the RPMs installed in a system sorted by package size, largest package first (use dpkg and related commands if you're not familiar with RPM and related commands)

15-  A sysadmin just added a new TAPE drive to his system. The system already had a drive called /dev/st0, which works fine. The sysadmin added the tape drive and created a /dev/st1 for it:

# ls -l /dev/st1
brw-r--r-- 1 root root 8, 1 Mar  2 23:16 /dev/st1

The sysadmin loads a tape into the drive and runs a dd, to write his 3G file onto it, which should fit as the tape supports 200Gb.

# dd if=/tmp/backup.tar of=/dev/st1 bs=32k

However the dd finishes with an error saying that the device is full at 250Mb.

15.1- Is it a problem caused by the block size of the dd? Are there any situations where the block size used can change the behaviour of a drive?

15.2- Can you explain why this is not working as expected?

15.3- The sysadmin rebooted the system, and now the boot loader is not working properly, and GRUB complains about a problem at stage 1.5. What should one do?

Thank you very much
Join our community to see this answer!
Unlock 2 Answers and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros