LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2016, 07:56 AM   #31
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled

Thank you very much for your valuable comments. I think I have nothing in the "/boot" folder. However, I have some files in the "/mnt/sysimage/boot" folder (attached).
Quote:
The /mnt/sysimage is just how the rescue mode mounts your file systems. If the system ever boots they will be as usual. Since you are using LVM /boot can not be moved.
Does it mean after booting up I can recover all my previous files? Should I need to copy the files from "/mnt/sysimage/boot" to "/boot"? How can I do this? Will it work?
Quote:
Keep it separate. Part of the problem is that you will HAVE to impose quotas on the users
How can I do this? Would you please to give me some command line example.

Best Regards
Zillur
Attached Thumbnails
Click image for larger version

Name:	13898646_10209629472638272_1657922789_o.jpg
Views:	17
Size:	102.3 KB
ID:	22626  

Last edited by zillur; 08-01-2016 at 07:59 AM.
 
Old 08-01-2016, 08:39 AM   #32
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Use different filesystems.

Quotas are based on the filesystem. You DON'T want to impose quotas on root/daemons (if the quota blocks their writes the system may not boot, and services may/will abort).

Other problems with a merged user/system space are that it is MUCH harder to replace a faulty system. It is much easier to have an alternate root to use (just use the root= kernel option to direct it to a backup root), but if user files are mixed in... you just can't do that (the resulting system will not have the users files unless you can afford two 20TB root systems - and then it takes forever to make backups...).

Your system should have the quota tools installed. To find out if you have the documentation, just do a "man -k quota".
My system shows:
Code:
$ man -k quota
btrfs-qgroup (8)     - control the quota group of a btrfs filesystem
btrfs-quota (8)      - control the quota of a btrfs filesystem
convertquota (8)     - convert quota from old file format to new one
edquota (8)          - edit user quotas
euare-accountgetsummary (1) - Display account-level information about account...
ext_time_quota_acl (8) - Squid time quota external acl helper.
quota (1)            - display disk usage and limits
quotacheck (8)       - scan a filesystem for disk usage, create, check and re...
quotactl (2)         - manipulate disk quotas
quotaoff (8)         - turn filesystem quotas on and off
quotaon (8)          - turn filesystem quotas on and off
quotastats (8)       - Program to query quota statistics
quotasync (1)        - synchronize in-kernel file system usage and limits to ...
repquota (8)         - summarize quotas for a filesystem
setquota (8)         - set disk quotas
smbcquotas (1)       - Set or get QUOTAs of NTFS 5 shares
systemd-quotacheck (8) - File system quota checker logic
systemd-quotacheck.service (8) - File system quota checker logic
vfs_default_quota (8) - store default quota records for Windows clients
xfs_quota (8)        - manage use of quota on XFS filesystems
xqmstats (8)         - Display XFS quota manager statistics from /proc
As shown, there are slightly different quota controls depending on WHICH filesystem type is used. Note: there is usually a requirement to enable quotas when mounting filesystems (fstab entries).

One good use for quotas (even if you don't enforce limits) is to identify the user(s) that happen be pigs when the complaints start. Checking the current usage is easy with quotas, but can be rather time consuming when using du (disk usage), and isn't necessarily accurate. Some users allow other users to store files in their directory - joint projects tend to do that. du will report the amount used by directory -but that can misattribute usage in such shared cases.

Also, politically it is MUCH easier to set up quotas before the users are on the system than it is to do after users become pigs...

There are a number of things that can be done by separating users from the system files - for instance, removing setuid/setgid capability (prevents account sharing, and if /tmp is mounted that way it also tends to prevent root hacks. Policy: no user writable filesystem should be mounted with setuid/setgid; and sometimes nice to make /tmp noexec as well).

Last edited by jpollard; 08-01-2016 at 08:49 AM.
 
Old 08-01-2016, 01:30 PM   #33
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much for your comments and suggestions. It seems I am unable to boot by any means. When I want to install OS, it asks me for a installation destination. But, I have no space in any disk (attached). I have tried to delete everything from my 10.92TB disk (sdc) then it started to boot up, but nothing happens. I created root password and then a user account. After the system starting to reboot, it just failing everytime. Any suggestion about this?

Best Regads
Zillur
Attached Thumbnails
Click image for larger version

Name:	13898748_10209631407566644_873864184_o.jpg
Views:	13
Size:	47.2 KB
ID:	22629  
 
Old 08-01-2016, 01:51 PM   #34
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Still trying to determine what happened. Not sure but I am wondering if an update messed you up. You have several kernels from the elrepo repository in your menu. The 3.10.0 kernel name in your menu does not match the actual kernel file in your /boot directory.

I don't know if updating grub would fix your problem but your latest post would make this suggestion a bit late. You need to select manual partitioning then select the old partitions and logical volumes as currently exist on your drives.

/boot has to remain on a separate partition. Assuming you have backups you can start completely over and have the installer create everything from scratch.
 
Old 08-01-2016, 08:13 PM   #35
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much for your insight.
Quote:
Not sure but I am wondering if an update messed you up.
I also think something like that.
Quote:
I don't know if updating grub would fix your problem but your latest post would make this suggestion a bit late.
How can I update grub?
Quote:
You need to select manual partitioning then select the old partitions and logical volumes as currently exist on your drives.
How can I do this? Apparently it seems I have no space in all three disk !!! (attached)
Quote:
Assuming you have backups you can start completely over and have the installer create everything from scratch.
I have no idea about backups. How can I take backups? How can I start completely over so that installer create everything from scratch?
Thank you again.

Best Regards
Zillur
Attached Thumbnails
Click image for larger version

Name:	13898748_10209631407566644_873864184_o.jpg
Views:	13
Size:	47.2 KB
ID:	22633  
 
Old 08-01-2016, 09:36 PM   #36
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
You can try rebuilding the grub menu using grub2-mkconfig.
https://wiki.centos.org/HowTos/Grub2

It looks like the installer is trying to create partitions using unallocated space. Since there isn't enough it fails. How was CentOS originally installed?
 
1 members found this post helpful.
Old 08-01-2016, 09:40 PM   #37
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much for your help. I was trying to select installation destination sdc (my 10TB disk), set root password, user account, then the system tells me that was a successful installation and after reboot I can use centos7. But after reboot the following two screen appears. It takes a long time to reboot every time (more than 10-15 minutes). Any suggestion about that? How can I boot up the machine?

Best Regards
Zillur
Attached Thumbnails
Click image for larger version

Name:	13835941_10209634922814523_281256555_o.jpg
Views:	15
Size:	111.9 KB
ID:	22634   Click image for larger version

Name:	13918977_10209634923014528_297118395_o.jpg
Views:	15
Size:	76.0 KB
ID:	22635  
 
Old 08-01-2016, 09:49 PM   #38
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
The second picture is the installer. You click on each item to setup the configuration. It will automatically check the DVD for errors if you do not manually select install.

You are booting the machine. It is booting from the DVD instead of the hard drive. To run the command I posted above you have to boot back to rescue mode and run the chroot command as displayed on the monitor when you get to that point.

As stated since the kernel name is not the same as the original I do not know if it will work at all.

https://access.redhat.com/documentat...ide/index.html

Last edited by michaelk; 08-01-2016 at 10:05 PM.
 
Old 08-01-2016, 10:10 PM   #39
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much. I have updated the grub menu as attached. What I need to do? Just reboot?

Best Regards
Zillur
Attached Thumbnails
Click image for larger version

Name:	13918472_10209635217061879_2063612230_o.jpg
Views:	14
Size:	124.4 KB
ID:	22636  
 
Old 08-01-2016, 10:11 PM   #40
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Yes.
 
Old 08-01-2016, 10:43 PM   #41
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you. I just reboot and again the installer showed up. It seems nothing new. How many times i need to configure the installer.
Best Regards
Zillur
Attached Thumbnails
Click image for larger version

Name:	13898187_10209635432627268_1153149550_o.jpg
Views:	12
Size:	65.7 KB
ID:	22638  
 
Old 08-02-2016, 04:36 AM   #42
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Remove the dvd disc.
 
1 members found this post helpful.
Old 08-02-2016, 03:15 PM   #43
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much. After removing the DVD I have directed to grub rescue. Here, After trying to several time I successfully login to : zillur@localhost: (attached)
Now, it seems my network has changed!!! My previous IP address was 136.145.... like this. now it s 127.0.0.1 and my network is unreachable. yum is also not working.
I have lost my previous 16TB disk. I ran a command
Code:
mount /dev/sdc1 /mnt/sysimage
Did it cause the problem? How can I fix it?

Best Regards
Zillur
Attached Thumbnails
Click image for larger version

Name:	13682517_10209641646382608_1092366776_o.jpg
Views:	12
Size:	80.9 KB
ID:	22645   Click image for larger version

Name:	13898254_10209641495218829_967182163_o.jpg
Views:	11
Size:	80.9 KB
ID:	22646  
 
Old 08-02-2016, 05:31 PM   #44
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
I was hoping for the best but expected the worst.
In summary:
mv /boot / at face value would of failed since you can not move files to the same location (Someone correct me if I am wrong) You have not admitted to what else you did so we have no idea how you got where you are presently.

You installed the 4.x kernels from the elrepo repository which if you using this as a "production" server with many users you could have stability problems.

You deleted everything but the 3.10.0 kernel and the rescue kernel files but somehow but the kernel name was changed i.e ...3.10.0-327.13.1.el7... to ...3.10.0-327.el7 which is curious.

I hoped the grub mkconfig command would figure everything out. Not sure what steps you took to get the OS booted and impossible to know what happened or what you did when you tried to reinstall and the point you are currently at.

At this time reinstalling might be best but maybe others have a better idea.

If you use the same mount point or directory that currently has data it will appear hidden. mount /dev/sdc1 to another mount point.

Last edited by michaelk; 08-02-2016 at 05:34 PM.
 
1 members found this post helpful.
Old 08-03-2016, 04:36 PM   #45
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you. I think I am doomed. I tried to use grub2-install in different disks like "/dev/sdc1", "/dev/mapper/centos-home", "/dev/mapper/centos-root" but nothing working. Any suggestion for this.

Best Regards
Zillur
Attached Thumbnails
Click image for larger version

Name:	13898524_10209650863173022_631972508_o.jpg
Views:	16
Size:	82.9 KB
ID:	22651  
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failing to boot up due to failing to acces the GRUB spenot09 Linux - Software 7 10-19-2015 10:56 AM
Jessie boot cd failing to boot on a Poweredge R905 Jasambo Debian 5 06-15-2015 04:38 PM
Boot Problem in Grub (Chainloader failing? /boot messed up?) gjemmott Linux - Desktop 2 03-15-2010 10:26 AM
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 07:34 AM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration