linux在线扩展文件系统空间
author:skate
time:2009/12/04
linux在线扩展文件系统空间
ext2resize是一款可以增大/减小ext2/ext3文件系统的工具,安装后有2个命令ext2resize和ext2online,ext2resize命令
必须要在卸载文件系统的情况下才能使用,ext2online可以实现在线重设文件系统大小。
下面就演示具体的操作,这是我们研发用的测试服务器,由于空间不够,现在要在线扩展空间
1.首先下载软件ext2resize
[root@svr-db-test ~]# wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/janptitan/SLE_10/x86_64/ext2resize-1.1.19-3.1.x86_64.rpm
2.安装ext2resize软件
[root@svr-db-test ~]# rpm -ivh ext2resize-1.1.19-3.1.x86_64.rpm
3. 创建物理卷PV
[root@svr-db-test ~]# pvcreate /dev/sdb1
4.把心添加的pv添加到要扩展的卷组里(VolGroup_ID_20886)
[root@svr-db-test ~]# vgextend VolGroup_ID_20886 /dev/sdb1
5. 查看现有系统的空间使用情况
[root@svr-db-test ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/mapper/VolGroup_ID_20886-LogVol1
3.9G 2.2G 1.6G 60% /
/dev/sda3 190M 26M 156M 14% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/mapper/VolGroup_ID_20886-LogVol2
3.9G 137M 3.6G 4% /tmp
/dev/mapper/VolGroup_ID_20886-LogVol5
24G 3.4G 19G 16% /usr
/dev/mapper/VolGroup_ID_20886-LogVol4
&nbs
相关文档:
1.
int (*func)();函数指针,指向的函数为空参数,返回整型;
2.
回调函数是一个程序员不能显式调用的函数;通过将回调函数的地址传给被调用者从而实现调用。
回调函数是一个通过函数指针调用的函数。如果你把函数的指针(地址)作为参数传递给另一个函数,当这个指针被用为调用它所指向的函数时,我们就说这是回调函 ......
When Linux Runs Out of Memory
http://linuxdevcenter.com/pub/a/linux/2006/11/30/linux-out-of-memory.html?page=1
Perhaps you rarely face it, but once you do, you surely know what's
wrong: lack of free memory, or Out of Memory (OOM). The results are
typical: you can no longer allocate more memory ......
Linux 虚拟文件系统概观
作者 Richard Gooch <rgooch@atnf.cs.iro.au>
翻译 albcamus <albcamus@gmail.com>
最后更新:2007 年 6 月 24 日
版权:1999, Richard Gooch
版权:2005, Pekka Enberg
本文件以 GPLv2 许可发放
[翻译说明:Richard Gooch 的这份 Overview of ......
Red-black Trees (rbtree) in Linux
January 18, 2007
Rob Landley <rob@landley.net>
=============================
red-black树是什么样的树,为什么需要red-black树?
------------------------------------------------
red-black tree(RB树)是一种平衡二叉树,它主要用于存储或者说 ......
查看磁盘以及分区命令:
fdisk -l
输出结果如下:
-----------------------------------------------------------------------
Disk /dev/sda: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot   ......