Categories
Interior

Linux sysadmin how to manage lvms with a gui

Linux sysadmin how to manage lvms with a gui

我们曾经讨论过如何使用LVM,但是如果你想用一个舒适的图形界面完成相同的任务怎么办? HowTo Geek深入探讨了如何使用GUI管理LVM驱动器。

l ogical V olume 中号 anager或LVM,已经被覆盖上HTG以及为什么你应该使用它。 随着LVM变得越来越主流,一些主要的分销商喜欢CentOS和Ubuntu的最新版12.10版本,现在默认安装在LVM上,你可能会想到它会更快。 有了上面的内容,它可能不会很久以前你想要管理一个LVM,增加可用空间上的空间,例如. 说,什么可以更愉快,然后有一个漂亮的图形界面做工作? 没有什么,所以安装一个。

安装LVM GUI实用程序

我们将使用执行任务的实用程序是“ 系统配置,LVM ”从红帽。 因为这个实用程序已经重新打包为Ubuntu,两者之间的唯一区别,是如何安装它。

在CentOS

或者,您可能希望使用图形化程序包管理器安装程序包。 要做到这一点,去“系统” – >“管理” – >“添加/删除软件”。

Linux sysadmin how to manage lvms with a gui

Linux sysadmin how to manage lvms with a gui

选中复选框,然后选择“下一步” – >“下一步” – >“完成”接受安装,这是关键。 一旦安装(这也是CLI的方式),程序将显示在“系统” – >“管理” – >“逻辑卷管理”下。

Linux sysadmin how to manage lvms with a gui

在Ubuntu上

最新版本的Ubuntu(在撰写本文时为12.10),现在将LVM作为一个组成部分。 这是个好消息,因为在以前的版本中,虽然你可以安装system-config-lvm实用程序,你还需要安装大约180MB的LVM缺失的东西。 这将使“只是进入和退出与现场CD”用例有点慢。 此外,您必须发出手动命令,以便实用程序的所有功能,即文件系统重新调整大小,将工作。

Linux sysadmin how to manage lvms with a gui

Linux sysadmin how to manage lvms with a gui

因为LVM实用程序来自Linux“Universe”,我们必须首先通过单击“使用此源”启用存储库。 启用资源并更新软件包管理器(具有耐心性,因为这可能需要很短时间),您将获得安装程序的选项。 点击“安装”。

Linux sysadmin how to manage lvms with a gui

使用实用程序

如果你读过我们的“ 什么是逻辑卷管理以及你如何在Ubuntu中启用它? “指南,你可能已经注意到,所有的LVM设置在那里,是在命令行中完成。 使用此程序,您可以执行从GUI创建一个LVM所需的所有设置。

  1. 初始化“新空间”以使用LVM。
  2. 将“新空间”添加到物理卷(PV)。
  3. 将PV中的“新空间”分配给逻辑卷(LV)。
  4. 增加特定的逻辑卷大小。
  5. 增加LV上的文件系统。

初始化“新空间”

展开“未初始化的实体”树菜单,找到“新空间”(在我们的例子中是“/ dev / sdb”)并选择它。

Linux sysadmin how to manage lvms with a gui

Linux sysadmin how to manage lvms with a gui

将“新空间”添加到物理卷(PV)

Linux sysadmin how to manage lvms with a gui

单击“添加到现有卷组”后,系统将显示检测到的组的列表。 在我们的示例中,我们将添加到的卷组是安装了具有启用了LVM选项的12.10安装程序的Ubuntu。 由于卷组是由安装程序为我们创建的,它选择了名称“Ubuntu”。

Linux sysadmin how to manage lvms with a gui

将PV中的“新空间”分配给逻辑卷(LV)

Linux sysadmin how to manage lvms with a gui

增加特定的逻辑卷大小

Linux sysadmin how to manage lvms with a gui

Linux sysadmin how to manage lvms with a gui

增加LV上的文件系统

如果系统完全支持LVM,如CentOS和Ubuntu 12.10做的(对于12.04,请参阅安装段中的注释),单击确定,也将增加驻留在逻辑卷. 内的文件系统的大小。 🙂

命令行是伟大的复制和粘贴的可重复性,而不是为了猴子的理解或可用性. (Aviad Raviv 2009)

Author: Brian Jones

This app has absolutely nothing to do with guarding anything. KSysguard lets you manage processes and monitor resources on
local or remote systems. According to the documentation, it can be built
on Solaris, BSD, and Linux.

KSysguard is actually two applications; a GUI front end, where you can configure
sets of worksheets to represent different machines or different monitoring
scenarios, and a backend daemon which essentially feeds data to the front end.
The back end daemon can be started at boot time or invoked manually from the
front end, even if the daemon is on a remote host.

The GUI front end, by default (on SUSE 9.1, anyway), starts up with two sample
worksheets configured for you, browseable with a tabbed interface. On
the left is a tree view of the different hosts you’re connected to, and
expanding those trees gives you a view of what sensors are available for
them. Figure 1 gives you a view of the KSysguard workspace. Note the tabbed
interface on the right, where I have several worksheets configured, while the
tree view on the left shows a good number of sensors I have access to on my
local machine.

Going beyond defaults

Surprisingly, I found connecting to remote hosts and creating new
worksheets in the workspace to be very easy. There are various methods of
connecting to a remote host; the interface even lets you issue a “custom
command” to connect with. What I found easiest in my environment was to use
SSH (with SSH keys, by the way). The command I issued to talk to a test box
named opus, for example, was ssh opus ksysguard . Once the command is run,
a tree for opus appears in the left pane, and I can browse the available
sensors on opus.

To put these sensors to use, I need to create a worksheet. This couldn’t
be easier. Simply click the New icon to invoke a dialog
asking for a name for the worksheet, the number of rows and columns to
create, and the update interval. Fill this out, click OK, and you’re presented
with an empty worksheet, with empty table cells waiting to be used. Now, browse
the tree view for a sensor you want to use, and click and drag it into
whichever cell you want that sensor to appear in. If the sensor you’re using
doesn’t have “Table” in its name, you’ll be asked how you want it to look. The
choices are “Signal Plotter,” “Multimeter” (which is just a digital number
representing the value returned by the sensor), “Bar Graph,” and “SensorLogger.”
I haven’t found a use for these last two, but feedback from more experienced users is welcome, and
hereby solicited. The colors used and the ranges measured by each sensor are customizable.

Click to enlarge

In the first figure you probably noticed that there are three measurements being taken
in the “Physical Memory” cell. This is a result of dragging three separate
sensors into a single cell. This is probably not useful for many sensors,
especially if the value ranges vary greatly, which can make the output a little
hard to read. Experiment with this and you’ll find some useful combinations
that’ll save you some real estate on each worksheet.

For many of the sensors, and on most hosts, it should be simple enough to
create a 3×6 worksheet and drag 18 different sensors into the cells, pick
“Signal Plotter” as the view type, and you’re on your way! However, there are a
couple of sensors that should probably have their own worksheets. For example, on machines
that have a lot of users or a lot of processes, you’ll probably want to use the
“Process Controller” sensor in its own worksheet. This very useful sensor is
essentially a GUI version of the top command. You can sort by any field
(finding resource hogs has never been easier), see a tree view of the
processes, and even filter the list to view only your processes, system
processes, or user processes. Since you can’t use your space bar to update the
view (a la top ) there’s a refresh button, and there’s also a “kill” button.
If you’re running KSysguard as a normal user, of course, you can only kill
processes you own. The figure below shows the process control worksheet for my local
machine in “tree” mode.

Click to enlarge

Room for improvement

While I’ve started using KSysguard on a regular basis, and I recommend it to
others, there’s room for improvement. For one thing, this being a KDE
application, it would make sense to integrate it with KPopUp and
allow for alerts to be issued at certain threshholds, since it’s not
possible to view every sensor cell for every machine in a single worksheet.
Alternatively, maybe the developers could build a “Summary” worksheet so that these alerts
could simply be listed there, in a logview-type format. Also, it would be
useful to be able to configure color changes based on thresholds in the
signal plotter views. For example, I’d like my System Load signal plotter
sensors to turn orange if the load creeps beyond, say, 6, and red if it goes
over 10.

There are minor annoyances in the application, but they’re mostly
annoying only when you’re first getting started using it. For example, if you
drag two sensors to a cell, then discover that was not a stellar move on
your part, you can’t simply drag one sensor away from the cell — you have to
remove the sensor from the cell completely and start over. I understand why
this is the way it is, but it would be good if there were a friendly way of
reconfiguring a cell without starting over.

None of the abovementioned issues have kept me from
using KSysguard. What’s there works;
I’d just like more power. What kind of admin would I be if I wouldn’t? In the
end, I think that as the program develops and evolves, it will become an
extremely powerful tool. I highly recommend you check it out!

Linux sysadmin how to manage lvms with a gui

เราได้พูดคุยเกี่ยวกับวิธีการใช้ LVM มาก่อน แต่จะเกิดอะไรขึ้นถ้าคุณต้องการทำงานเดียวกันด้วยอินเตอร์เฟสกราฟิกที่สะดวกสบายเท่านั้น HowTo Geek ดำน้ำในวิธีการจัดการไดรฟ์ LVM ด้วย GUI.

Logical Volume Manager หรือ LVM ได้รับการกล่าวถึงใน HTG แล้วและทำไมคุณจึงควรใช้ เนื่องจาก LVM กำลังกลายเป็นกระแสหลักมากขึ้นเรื่อย ๆ ที่ผู้เล่นหลัก ๆ บางรายเช่น CentOS และ Ubuntu พร้อมกับรุ่นล่าสุด 12.10 ซึ่งตอนนี้ติดตั้งบน LVM เป็นค่าเริ่มต้นคุณอาจเจอกันเร็วกว่าที่คิด ด้วยวิธีการข้างต้นมันอาจจะไม่นานก่อนเวลาที่คุณต้องการจัดการ LVM เพื่อเพิ่มพื้นที่ว่างบนไดรฟ์ข้อมูลเช่น . ด้วยสิ่งที่กล่าวว่าสิ่งที่น่าพอใจมากขึ้นจากนั้นก็มีส่วนต่อประสานกราฟิกที่ดี ทำงานหรือไม่ ไม่มีอะไรให้ลองติดตั้ง.

ติดตั้งยูทิลิตี้ LVM GUI

ยูทิลิตี้ที่เราจะใช้ในการทำงานคือ“ system-config-lvm” จาก Redhat เนื่องจากยูทิลิตี้นี้ได้รับการบรรจุใหม่สำหรับ Ubuntu ความแตกต่างเพียงอย่างเดียวระหว่างสองคือวิธีที่คุณติดตั้ง.

บน CentOS

คุณสามารถติดตั้งแพ็กเกจโดยใช้ CLI โดยการออกในเทอร์มินัล:

เมื่อติดตั้งแล้วคุณสามารถออกชื่อยูทิลิตี้ด้วย sudo สำหรับสิทธิ์ผู้ดูแลระบบเพื่อเปิดใช้งาน:

หรือคุณอาจต้องการติดตั้งแพคเกจโดยใช้ตัวจัดการแพ็คเกจกราฟิก ในการทำเช่นนั้นไปที่ “ระบบ” -> “การบริหาร” -> “เพิ่ม / ลบซอฟต์แวร์”.

Linux sysadmin how to manage lvms with a gui

ค้นหา“ LVM” ในกล่องตัวกรองเพื่อค้นหายูทิลิตี“ system-config-lvm” ที่ด้านล่าง.

Linux sysadmin how to manage lvms with a gui

เลือกช่องทำเครื่องหมายและ“ ถัดไป -> ถัดไป -> เสร็จสิ้น” เพื่อยอมรับการติดตั้งและเป็นกุญแจ เมื่อติดตั้งแล้ว (นี่เป็นความจริงสำหรับวิธี CLI เช่นกัน) โปรแกรมจะปรากฏภายใต้“ ระบบ” ->“ การดูแลระบบ” ->“ การจัดการโลจิคัลวอลุ่ม”.

Linux sysadmin how to manage lvms with a gui

คลิกเพื่อเปิดโปรแกรม ณ จุดนี้คุณสามารถข้ามไปยังส่วน “ใช้” ที่ด้านล่าง.

บน Ubuntu

Ubuntu รุ่นล่าสุด (12.10 ณ เวลาที่เขียนนี้) ตอนนี้มาพร้อมกับ LVM เป็นส่วนหนึ่ง นั่นเป็นข่าวดีเพราะในรุ่นก่อนหน้านี้ในขณะที่คุณสามารถติดตั้งยูทิลิตี system-config-lvm ได้คุณจะต้องติดตั้ง LVM ที่หายไปประมาณ 180MB ด้วย สิ่งนี้จะทำให้“ เพิ่งเข้าและออกพร้อมไลฟ์ซีดี” ใช้เคสช้าลงเล็กน้อย ยิ่งกว่านั้นคุณต้องออกคำสั่งด้วยตนเองเพื่อให้ฟังก์ชั่นทั้งหมดของยูทิลิตี้นั่นคือการปรับขนาดระบบไฟล์ใหม่จะทำงานได้.

เปิด“ ศูนย์ซอฟต์แวร์ Ubuntu” และค้นหา“ LVM”.

Linux sysadmin how to manage lvms with a gui

คลิกที่แถว“ การจัดการปริมาณตรรกะ” แล้วคลิก“ ข้อมูลเพิ่มเติม”.

Linux sysadmin how to manage lvms with a gui

เนื่องจากยูทิลิตี้ LVM มาจาก Linux“ จักรวาล” เราต้องเปิดใช้พื้นที่เก็บข้อมูลก่อนโดยคลิกที่“ ใช้แหล่งข้อมูลนี้” เมื่อเปิดใช้งานทรัพยากรและตัวจัดการแพคเกจได้รับการปรับปรุง (มีความอดทนเนื่องจากอาจใช้เวลาสักครู่) คุณจะได้รับตัวเลือกในการติดตั้งโปรแกรม คลิก“ ติดตั้ง”.

Linux sysadmin how to manage lvms with a gui

เมื่อติดตั้งแล้วหากคุณใช้งานรุ่นก่อนหน้านี้แล้ว 12.10 คุณจะต้องทิ้งเชลล์ไว้เพื่อออกคำสั่งเดียวต่อไปนี้ซึ่งจะช่วยให้ความสามารถในการปรับขนาดระบบแฟ้มของยูทิลิตี้ใหม่.

การใช้ยูทิลิตี้

หากคุณอ่านคู่มือ“ การจัดการปริมาณแบบลอจิคัลคืออะไรและคุณเปิดใช้งานใน Ubuntu ได้อย่างไร” คุณอาจสังเกตเห็นว่าการตั้งค่า LVM ทั้งหมดนั้นทำในบรรทัดคำสั่ง ด้วยโปรแกรมนี้คุณสามารถทำการตั้งค่าทั้งหมดที่จำเป็นในการสร้าง LVM ตั้งแต่เริ่มต้นด้วย GUI.

จากตัวอย่างดังกล่าวเพื่อจุดประสงค์ของตัวอย่างนี้เราจะไม่ตั้งค่า LVM แต่ให้ลองผ่านสถานการณ์กรณีการใช้งานที่โดดเด่นที่สุดอย่างหนึ่งของ“ การเพิ่มพื้นที่ว่างในดิสก์ที่มีอยู่” สำหรับไดรฟ์ข้อมูล.

พื้นที่ใหม่สำหรับโวลุ่มสามารถมีได้หลายรูปแบบบางทีคุณอาจเพิ่มทางกายภาพและ HD ให้กับระบบบางทีคุณอาจเพิ่มดิสก์สำหรับ VM . มันไม่สำคัญว่าขั้นตอนการเพิ่มพื้นที่ลงในโวลุ่มคืออะไร คล้ายกันมาก.

  1. เริ่มต้น “พื้นที่ใหม่” สำหรับการใช้งาน LVM.
  2. เพิ่ม“ พื้นที่ใหม่” ลงในฟิสิคัลวอลุ่ม (PV).
  3. จัดสรร“ พื้นที่ใหม่” ใน PV ไปยัง Logical Volume (LV).
  4. เพิ่มขนาดโลจิคัลวอลุ่มเฉพาะ.
  5. เพิ่มระบบไฟล์บน LV.

การเริ่มต้น “พื้นที่ใหม่”

สำหรับตัวอย่างนี้เราได้เลือกที่จะไปเส้นทาง“ มี HD ใหม่ในระบบ” และตอนนี้เราจะเตรียมให้พร้อมสำหรับการใช้งาน LVM.

ขยายเมนูทรี“ Uninitialized Entities” และค้นหา“ พื้นที่ใหม่” (ในกรณีของเรานั่นคือ“ / dev / sdb”) และเลือก.

Linux sysadmin how to manage lvms with a gui

Linux sysadmin how to manage lvms with a gui

หมายเหตุ: ในตัวอย่างของเราเราไม่ได้แบ่งพาร์ติชั่นดิสก์เพื่อประโยชน์ของความเรียบง่าย แต่คุณได้รับคำแนะนำ (แม้โดยโปรแกรม) ให้ทำเช่นนั้น.

เพิ่ม“ พื้นที่ใหม่” ลงในฟิสิคัลวอลุ่ม (PV)

ตอนนี้“ เริ่มต้นพื้นที่ใหม่” ได้เริ่มต้นแล้วก็สามารถเพิ่มและ “กลุ่มปริมาณ” ที่มีอยู่.

Linux sysadmin how to manage lvms with a gui

เมื่อคุณคลิก“ เพิ่มไปยังกลุ่มวอลุ่มที่มีอยู่” คุณจะเห็นรายการของกลุ่มที่ตรวจพบในระบบ ในตัวอย่างของเรากลุ่มวอลุ่มที่เราจะเพิ่มนั้นเป็นหนึ่งใน Ubuntu ที่ถูกติดตั้งพร้อมกับตัวติดตั้ง 12.10 ซึ่งเปิดใช้งานตัวเลือก LVM เนื่องจากกลุ่มติดตั้งสร้างขึ้นสำหรับเราโดยผู้ติดตั้งจึงเลือกชื่อ“ Ubuntu”.

Linux sysadmin how to manage lvms with a gui

จัดสรร“ พื้นที่ใหม่” ใน PV ไปยัง Logical Volume (LV)

เมื่อเพิ่ม“ New space” ลงใน PV คุณจะเห็น“ Unused Space” ใหม่เป็นส่วนหนึ่งของ ตรรกะ กลุ่มวอลุ่มดังในภาพด้านล่าง.

Linux sysadmin how to manage lvms with a gui

เพิ่มขนาดโลจิคัลวอลุ่มเฉพาะ

ในการที่จะมี “โลจิคัลวอลุ่ม” ให้ใช้ “พื้นที่ใหม่” ให้ขยายเมนูทรี “มุมมองตรรกะ” และเลือกโลจิคัลวอลุ่มที่คุณต้องการเพิ่ม ในตัวอย่างของเรานั่นคือปริมาตร“ รูท”.

Linux sysadmin how to manage lvms with a gui

Linux sysadmin how to manage lvms with a gui

หน้าต่าง“ แก้ไขปริมาณตรรกะ” ช่วยให้คุณเปลี่ยนขนาดของโวลุ่มได้โดยใช้ตัวเลื่อนแบบง่ายหรือปุ่ม“ ใช้ที่เหลือ”.

เพิ่มระบบไฟล์บน LV

หากระบบรองรับ LVM อย่างเต็มที่เช่น CentOS และ Ubuntu 12.10 ทำ (สำหรับ 12.04 ดูความคิดเห็นในส่วนการติดตั้ง) คลิกตกลงจะเพิ่มขนาดสำหรับระบบไฟล์ที่อยู่ภายใน Logical Volume …เรียบร้อยหรือไม่ 🙂

มันเป็นความหวังของนักเขียนคนนี้ที่คู่มือนี้ได้เปลี่ยนสิ่งที่ครั้งหนึ่งเคยเป็น“ โอ้ที่รัก gowaaad ฉันจะต้องดึงคู่มือและผมของฉันออกมาอีกครั้ง” เป็น“ แน่นอนว่าปัญหาคืออะไร” …

บรรทัดคำสั่งนั้นยอดเยี่ยมสำหรับการทำซ้ำการคัดลอกและวางไม่ใช่เพื่อความเข้าใจหรือการใช้งานของลิง . (Aviad Raviv 2009)

Does anyone know if there is a GUI to manage LVMs in Oracle Linux 7? Something like system-config-lvm that was there in previous releases as I can’t seem to find it?

Hmm couldnt do it with gnome-disk-util so ended up going with CLI thanks to this really useful page I found – http://xmodulo.com/manage-lvm-volumes-centos-rhel-7-system-storage-manager.html so hopefully this will be useful for anyone searching and finding this thread.

Thanks for the help though, appreciated!

  • Where do you stack up against other IT pros? Take the Challenge »
  • rm -rf command without the slash
  • ssh hanging – seeing hard drive status
  • Need to pull some network traffic info out of Linux servers

The help desk software for IT. Free.

Track users’ IT needs, easily, and with only the features you need.

3 Replies

here is what I can find.

The system-config-lvm tool has been deprecated. Management of logical volumes can be performed via the gnome-disk-util or the lvm tools.”

Thanks. Found gnome-disk-util but couldnt see how to do LVM in it. Will dig a bit more though, thanks 🙂

A Linux administrators task is to typically install, upgrade, and monitor a company’s software and hardware while maintaining the essential applications and functions which include security tools, emails, LANs, WANs, web servers, etc.

Linux is undoubtedly a force to reckon with in computing technology and most system administrators work on Linux machines. You might think you are damned to using the command-line to complete administrative tasks but that is far from the truth.

Here are the 10 best GUI tools for Linux System Administrators.

1. MySQL Workbench

MySQL Workbench is arguably the most popular database administration application across OS platforms. With it, you can design, develop, and manage MYSQL databases using a wide variety of tools that allow you to work both locally and remotely.

It features the ability to migrate Microsoft Access, Microsoft SQL Server, PostgreSQL, Sybase ASE, and other RDBMS tables, objects, and data to MySQL among other capabilities.

MySQL Workbench Database Tool

2. phpMyAdmin

phpMyAdmin is a free and open-source PHP-based web app that allows you to create and manage MySQL databases using a web browser.

It is not as robust as MySQL Workbench but can also be used to perform various database administration tasks in a more user-friendly method – one of the reasons why it is a go-to app for students and beginner system admins.

PhpMyAdmin MySQL Database Administration

3. Apache Directory

Apache Directory is an Eclipse RCP application designed for ApacheDS but it can also work as an LDAP browser, LDIF, ApacheDS, and ACI editors, among other functions.

Apache Directory

4. cPanel

cPanel is arguably the best web-based administration tool ever. With it, you can manage websites, domains, apps and app files, databases, logs, mail, server security, etc.

cPanel is neither free nor open-source but it is worth every penny.

Cpanel Server Control Panel

5. Cockpit

Cockpit is an open-source easy-to-use web-based server manager developed by Red Hat to be efficient at monitoring and administering several servers at the same time without any interference.

Cockpit – Remote Linux Server Monitoring

6. Zenmap

Zenmap is a free and open-source whose main purpose is to scan for and troubleshoot network issues. Being the official Nmap Security Scanner GUI, it is designed to be easily used by beginners while still providing advanced tools for experts.

Zenmap – Nmap Security Scanner GUI

7. YaST

YaST (Yet another Setup Tool) can be used to setup entire systems whether they are hardware, networks, system services, and security profiles all from the YaST Control Center. It is the default configuration tool for enterprise-grade SUSE and openSUSE and ships with all SUSE and openSUSE platforms.

installation and configuration tool for openSUSE

8. CUPS

CUPS (Common Unix Printing System) is a printer service built by Apple Inc. for macOS and other UNIX-like OSes. It has a web-based GUI tool with which you can manage printers and printing jobs in both local and network printers using the Internet Printing Protocol (IPP).

Common Unix Printing System

9. Shorewall

Shorewall is a free and open-source GUI for creating and managing blacklists, configuring firewalls, gateways, VPNs, and controlling traffic. It takes advantage of the Netfilter (iptables/ipchains) system built into the Linux kernel to provide a greater level of abstraction for describing rules using text files to manage intricate configuration schemes.

Shorewall Firewall Tool

10. Webmin

Webmin is a web-based admin tool with which you can perform virtually all sysadmin tasks on a server including creating user accounts and databases as well as configuring and managing disk quota, PHP, MySQL, and other open source apps. its functionality can also be extended using any of the many 3rd-party modules available online.

Webmin Configuration

Are there any apps you think should have made it to our list? Maybe not as replacements but as notable mentions. Enter your comments and suggestions in the discussion section below.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

We are thankful for your never ending support.

Zero to SysAdmin: Getting Started

Authors: Both, David

  • First volume of a complete Linux self-study course
  • Learn to be a Linux sysadmin and expert user of the Linux operating system
  • Use a VM in a virtual network on a single physical host to create a network in which to safely experiment

see more benefits

Buy this book

  • ISBN 978-1-4842-5049-5
  • Digitally watermarked, DRM-free
  • Included format: EPUB, PDF
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase

Softcover 49,99 €

  • ISBN 978-1-4842-5048-8
  • Free shipping for individuals worldwide
  • Institutional customers should get in touch with their account manager
  • Covid-19 shipping restrictions
  • Usually ready to be dispatched within 3 to 5 business days, if in stock

Become a Linux sysadmin and expert user of Linux, even with no previous Linux experience and learn to manage complex systems with ease. Volume 1 of this three volume training course introduces operating systems in general and Linux in particular. It briefly explores the The Linux Philosophy for SysAdmins in preparation for the rest of the course. This book provides you with the tools necessary for mastering user management; installing, updating, and deleting software; and using command line tools to do performance tuning and basic problem determination.

You’ll begin by creating a virtual network and installing an instance of Fedora – a popular and powerful Linux distribution – on a VirtualBox VM that can be used for all of the experiments on an existing Windows or Linux computer. You’ll then move on to the basics of using the Xfce GUI desktop and the many tools Linux provides for working on the command line including virtual consoles, various terminal emulators, BASH, and other shells.

Explore data streams and the Linux tools used to manipulate them, and learn about the Vim text editor, which is indispensable to advanced Linux users and system administrators, and be introduced to some other text editors. You’ll also see how to install software updates and new software, learn additional terminal emulators, and some advanced shell skills. Examine the sequence of events that take place as the computer boots and Linux starts up, configure your shell to personalize it in ways that can seriously enhance your command line efficiency, and delve into all things file and filesystems.

What You Will Learn

  • Install Fedora Linux and basic configuration of the Xfce desktop
  • Access the root user ID, and the care that must be taken when working as root
  • Use Bash and other shells in the Linux virtual consoles and terminal emulators
  • Create and modify system configuration files with Use the Vim text editor
  • Explore administrative tools available to root that enable you to manage users, filesystems, processes, and basic network communications
  • Configure the boot and startup sequences

Who This Book Is For

Anyone who wants to learn Linux as an advanced user and system administrator at the command line while using the GUI desktop to leverage productivity.

David Both is an Open Source Software and GNU/Linux advocate, trainer, writer, and speaker. He has been working with Linux and Open Source Software for more than 20 years and has been working with computers for over 45 years. He is a strong proponent of and evangelist for the “Linux Philosophy for System Administrators.” David has been in the IT industry for over forty years.

He worked for IBM for 21 years and, while working as a Course Development Representative in Boca Raton, FL, in 1981, wrote the training course for the first IBM PC. He has taught RHCE classes for Red Hat and has worked at MCI Worldcom, Cisco, and the State of North Carolina. In most of the places he has worked since leaving IBM in 1995, he has taught classes on Linux ranging from Lunch’n’Learns to full five day courses. Helping others learn about Linux and open source software is one of his great pleasures.

David had some amazing teachers and mentors in his 40 years in IT and more than 20 years working with Linux. At their core, Linux and open source in general are about sharing and helping others and about contributing to the community. These books, along with “The Linux philosophy for SysAdmins,” are a continuation of his desire to pass on his knowledge and to provide mentoring to anyone interested in learning about Linux.

David is the author of The Linux Philosophy for SysAdmins (Apress, 2018) and can be found on Twitter @linuxgeek46.

Linux sysadmin how to manage lvms with a gui

User permissions tend to center around UGO and +rwx. If you understand that, you’re in good shape…if you only need the basics. But using the standard methods, UGO permission systems limits how you can manage permissions with multiple users or multiple groups. If you want a more flexible permission mechanism for Linux, you turn to Access Control Lists (ACLs).

For example, what if Haley owns a file and wants to allow Ash to read it, Mixi to read it, and Anneke to read and write to it? Add to that mixture that they are all in different groups. What do you do then?

You turn to ACLs.

However, if you want to gain the added functionality of ACLs in a standard Linux desktop environment, where do you start? Probably the single easiest route to success is with the handy GUI app, Eiciel. With this tool you can easily control the extended permissions offered by ACLs without having to dive into the command line that would look something like:

Naturally, for many a Linux system administrator, the command line will be the go-to tool. But for everyone else, a good GUI goes a long way. For ACLs, the best GUI in town is Eiciel. Let’s install it and use it.

How to Install Eiciel

Fortunately, Eiciel can be found in most standard repositories, so installation is only a matter of firing up your distribution’s package manager, searching for Eiciel, and clicking Install (who said installing apps on Linux was challenging?). I’ll be demonstrating the installation on Ubuntu 15.10 and, unfortunately, have discovered a rather odd bug in the available release of Eiciel (0.9.9). When selecting permissions, the checkboxes always appear empty. This is a GTK issue and is resolved in the latest release (0.9.11), which currently cannot be installed on the latest iteration of Ubuntu. I’ve tested the available release for Elementary OS Freya (Eiciel 0.9.8) and this bug doesn’t exist. Either way, Eiciel still works…only on Ubuntu 15.10 you have to guess what is checked and what is not. Hopefully this bug will be resolved asap.

Should you opt to go the installing from source route (and you’ve met the Eiciel dependencies), here are the steps for a successful installation:

Download the source into your Downloads folder

Open a terminal window

Change into the Downloads folder

Unpack the archive with the command tar xvfj eiciel-XXX.tar.bz2 (where XXX is the release number)

Change into the newly created folder with the command cd eiciel-XXX (where XXX is the release number)

Issue the command ./configure

Issue the command ./make

Issue the command sudo make install

Restart Nautilus with the command nautilus -q

NOTE: If you’re working with a distribution that doesn’t make use of sudo, you’ll need to su to the root user and then issue the final command make install without sudo.

That’s it; Eiciel is ready to run.

You might be thinking, “Doesn’t the kernel need ACL support rolled in? As of kernel 2.6.39, ACL is turned on by default. If you want to ensure that ACL is turned on and a drive is mounted with support for the feature, issue the following command in a terminal window:

Where XY is the specific location of your drive (for example /dev/sda1).

That command should report something like:

If you see acl, you’re good to go.

Should you want to go through the process of correcting the dependency issue and get a perfectly working instance of Eiciel running on Ubuntu 15.10, here are the steps:

Open a terminal and uninstall the current Eiciel (if still installed) with the command

(NOTE: This will install quite a lot of packages)

Build the dependencies for Eiciel with the following command

Download the latest version of Eiciel and untar the package and install from source as instructed earlier

How to Use Eiciel

Using Eiciel is surprisingly simple. If you installed the app from within your package manager, you will find the launcher in your desktop menu. If you installed via source, you can fire up the GUI tool from the command line, with the command eiciel. Either way, the Eiciel main window will open (Figure A), and you’re ready to rock.

You should notice that Eiciel reports that you have no file open. That is because this app works on a per-file basis. So in order to use it, you must open a file. To do that, click the Open button and locate the file you want to work with.

Once you have that file open, you should now see users and groups listed, so that you can manage the ACLs for those users/groups on that file (Figure B).

Linux sysadmin how to manage lvms with a gui

Take a look at the same app (only an earlier release), running on Elementary OS Freya (Figure C).

Linux sysadmin how to manage lvms with a gui

In the upper pane of the GUI you will see a list of the current ACL participants. To add a new participant, click on that user from the lower pane and then click Add participants to ACL. That user will now appear in the upper pane. You can now manage the permissions for that file by clicking to add read, write, and/or execute permissions. Once you’ve added the user as an ACL participant, you can then select what permissions they should have for the file. As you add them, the permissions take effect in real-time.

You can also add groups as participants to the file ACL, by selecting Group from the Participant List and then adding the groups you want in the same manner you added the user(s).

You will also find that the Eiciel functionality is built into the GNOME file manager. What this means is simple… open up the file manager, right-click on a file, select Properties, and you’ll see a tab for Access Control List. Click on that tab and you’ll have access to ACL permissions, thanks to Eiciel (Figure D).

Linux sysadmin how to manage lvms with a gui

There’s no doubt Eiciel easily overcomes the shortcomings of the standard Linux permissions system. If you have a need to work with Access Control Lists on your Linux system, and you’d prefer a GUI tool for the task, Eiciel is what you want. Just understand, if you’re working with a recent release of Ubuntu, you might be faced (for the time being) with having to guess if a permission is checked or not.

#1 theprogrammer

i just installed Ubuntu 16.04 but during the installation i choose “use LVM with the new Ubuntu installation”. After the installation i plugged live Ubuntu again and choose “Try Ubuntu” and used G Parted for partition but when i do that the disk (“lvm2 pv”) have a “key” symbol in it and said to un-mount before resize.but i couldn’t do that.
can someone help me with this issue.

BC AdBot (Login to Remove)

  • BleepingComputer.com
  • Register to remove ads

#2 JohnC_21

I am going to provide you with some links to get you started.

Note: I have not used the following partition tool but it is said to work on a LVM-LUKS disk. It’s available on the live distro of Fedora 26. After booting to the Fedora desktop open a terminal and input blivet-gui

Backup your important data first before doing any partition management.

Edited by JohnC_21, 14 July 2017 – 08:42 AM.

#3 theprogrammer

Im using Ubuntu.and i have gone through all those links even before posting here.but nothing worked so far anyway thanks for the effort.

#4 JohnC_21

The last link I provided did not work either, using a live Fedora disk and blivet?

#5 sivaprakashPB

The last link I provided did not work either, using a live Fedora disk and blivet?

is that only for fedora or is it compatible for ubuntu 16.04 too

i tried Gparted Live Cd and Logical Volume Management App

sorry to intrude i have the same issue too

Edited by sivaprakashPB, 18 July 2017 – 12:33 AM.

#6 JohnC_21

I don’t believe it is available on Ubuntu, only Redhat and Fedora. You can boot the live Fedora 26 DVD and use blivet-gui on your HDD. As I previously posted, I have no experience with it.

See this Ubuntu thread

Edited by JohnC_21, 18 July 2017 – 06:48 AM.

#7 theprogrammer

i gone through that Ubuntu thread before .its not working,

while using LVM app it says “device is not mounted but in use need to unmount it first “.couldn’t unmount it.

let me try fedora live CD

#8 Al1000

I’ve never used LVM, but a similar situation would exist with an extended partition that contains an active swap partition. In that case, switching swap off temporarily would do the trick. It may be worth a try to see if that’s what needs done in your situation too.

To switch swap off, run this command in a terminal:
Now refresh devices in GParted, and see if the padlock is gone.

Edited by Al1000, 20 July 2017 – 06:42 AM.

#9 ProfTheory

blivet-gui needs to be added to the live desktop but does come with the “Security spin”. I have used it and it isn’t quite ready for prime time as it does crash at times – but not always. It’s best to go a step at a time and you may need to reboot to keep the kernel in sync with any changes.
I’m also looking to dual boot Ubuntu 16.04 with Fedora 26 using separate LVMs. For custom installs I give Fedora higher marks in this area. But Fedora doesn’t give you any options as to where grub gets installed.

Backup your important data first before doing any partition management.

Edited by ProfTheory, 17 September 2017 – 09:13 PM.

#10 ProfTheory

Update: Actually blivet-gui is already installed in the Live Desktop as JohnC_21 mentioned.

#11 theprogrammer

The problem is solved. i Used the LVM gui tool .(looks like a kinda blue pipe).and there i added partition and after restarting it worked.

#12 JohnC_21

The problem is solved. i Used the LVM gui tool .(looks like a kinda blue pipe).and there i added partition and after restarting it worked.

Thanks for the update. I am providing a link that may help other people with the tool.

Step 1: Mount the required ISO into VM Manager.

]# mount -t iso9660 /dev/sr0 /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only

Step 2: Trigger the upgrade command

As part of precautionary action, it is recommended to take the Manual backup of Oracle VM Manager before execute the Upgrade task. In case of any failure, we can restore from backup. Please check my previous post for Oracle VM Manager Backup and Restore steps.

Before proceed to upgrade the Oracle VM Manager, please make sure you have valid MySQL database, admin and weblogic user password. If you set a system-wide password during the original installation and have not changed the user password at any stage, admin password should work for above users.

Since this is my lab purpose here I ignored the prerequisites check. But don’t use -n parameter if you are doing in Production server.

[[email protected] mnt]# ./runInstaller.sh –installtype Upgrade -n

Oracle VM Manager Release 3.3.5 Installer

Oracle VM Manager Installer log file:
/var/log/ovmm/ovm-manager-3-install-2017-12-19-041925.log

Ignoring prerequisites check .
Starting Upgrade .

Reading database parameters from config .

==========================
Typically the current Oracle VM Manager database password will be the same as the Oracle VM Manager application password.

==========================
Database Repository
==========================
Please enter the current Oracle VM Manager database password for user ovs: ##Enter OVS MySQL database password##

Oracle VM Manager application
=============================
Please enter the current Oracle VM Manager application password for user admin: ##Enter Oracle VM Manager admin password##

Oracle Weblogic Server 12c
==========================
Please enter the current password for the WebLogic domain administrator: ##Enter weblogic user password##

Please enter your fully qualified domain name, e.g. ovs123.us.oracle.com, (or IP address) of your management server for SSL certification generation 10.10.10.151 [ovm.lab.local]:

Upgrading from version 3.3.3.1085 to version 3.3.5.1109

Start upgrading Oracle VM Manager:
1: Continue
2: Abort

Select Number (1-2): 1

Running full database backup .
Successfully backed up database as 3.3.3_preUpgradeBackup-20171219_042023
Running ovm_preUpgrade script, please be patient this may take a long time .
Exporting weblogic embedded LDAP users
Stopping service on Linux: ovmcli .
Stopping service on Linux: ovmm .
Exporting core database, please be patient this may take a long time .
NOTE: To monitor progress, open another terminal session and run: tail -f /var/log/ovmm/ovm-manager-3-install-2017-12-19-041925.log

Product component : Java in ‘/u01/app/oracle/java’
Java is installed .

Removing Java installation .

DB component : MySQL RPM package
MySQL RPM package installed by OVMM was found.
Removing MySQL RPM package installation .

Installing Database Software.
Retrieving MySQL Database 5.6 .
Unzipping MySQL RPM File .
Installing MySQL 5.6 RPM package .
Configuring MySQL Database 5.6 .
Installing MySQL backup RPM package .

Product component : Oracle VM Manager in ‘/u01/app/oracle/ovm-manager-3/’
Oracle VM Manager is installed .
Removing Oracle VM Manager installation .

Product component : Oracle WebLogic Server in ‘/u01/app/oracle/Middleware/’
Oracle WebLogic Server is installed

Removing Oracle WebLogic Server installation .
Service ovmm is deleted.
Service ovmcli is deleted.

Retrieving Oracle WebLogic Server 12c and ADF .
Installing Oracle WebLogic Server 12c and ADF .
Applying patches to Weblogic .
Applying patch to ADF .

Installing Oracle VM Manager Core .
Retrieving Oracle VM Manager Application .
Extracting Oracle VM Manager Application .

Retrieving Oracle VM Manager Upgrade tool .
Extracting Oracle VM Manager Upgrade tool .
Installing Oracle VM Manager Upgrade tool .

Creating Oracle WebLogic Server domain .
Starting Oracle WebLogic Server 12c .
Importing weblogic embedded LDAP users
Upgrading core database, please be patient this may take a long time .
NOTE: To monitor progress, open another terminal session and run: tail -f /var/log/ovmm/ovm-manager-3-install-2017-12-19-041925.log

Retrieving Oracle VM Manager CLI tool .
Extracting Oracle VM Manager CLI tool.
Installing Oracle VM Manager CLI tool .

Configuring Existing Https Identity and Trust.
Deploying Oracle VM Manager Core container .
Configuring Client Cert Login.
Deploying Oracle VM Manager UI Console .
Deploying Oracle VM Manager Help .
Disabling HTTP access .

Retrieving Oracle VM Manager Shell & API .
Extracting Oracle VM Manager Shell & API .
Installing Oracle VM Manager Shell & API .

Retrieving Oracle VM Manager Wsh tool .
Extracting Oracle VM Manager Wsh tool .
Installing Oracle VM Manager Wsh tool .

Retrieving Oracle VM Manager Tools .
Extracting Oracle VM Manager Tools .
Installing Oracle VM Manager Tools .
Copying Oracle VM Manager shell to ‘/usr/bin/ovm_shell.sh’ .
Installing ovm_admin.sh in ‘/u01/app/oracle/ovm-manager-3/bin’ .
Installing ovm_upgrade.sh in ‘/u01/app/oracle/ovm-manager-3/bin’ .

Enabling Oracle VM Manager service .
Shutting down Oracle VM Manager instance .
Starting Oracle VM Manager instance .
Waiting for the application to initialize .
Oracle VM Manager is running .

Please wait while WebLogic configures the applications.

Installation Summary
——————–
Database configuration:
Database type : MySQL
Database host name : localhost
Database name : ovs
Database listener port : 49500
Database user : ovs

Weblogic Server configuration:
Administration username : weblogic

Oracle VM Manager configuration:
Username : admin
Core management port : 54321
UUID : 0004fb00000100009157557324ed168d

Passwords:
There are no default passwords for any users. The passwords to use for Oracle VM Manager, Database, and Oracle WebLogic Server have been set by you during this installation. In the case of a default install, all passwords are the same.

Oracle VM Manager UI:
https://ovm.lab.local:7002/ovm/console
Log in with the user ‘admin’, and the password you set during the installation.

Note that you must install the latest ovmcore-console package for your Oracle Linux distribution to gain VNC and serial console access to your Virtual Machines (VMs).
Please refer to the documentation for more information about this package.

For more information about Oracle Virtualization, please visit:
http://www.oracle.com/virtualization/

Oracle VM Manager upgrade complete.

Please remove configuration file /tmp/ovm_configTpvifE.