易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关文档:

ZZ: When Linux Runs Out of Memory (OOM killer)


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 虚拟文件系统概观

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 ......

如何查看linux版本


1. 查看内核版本命令: 
  1) [root@q1test01 ~]# cat /proc/version 
   Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005 
  2) [root@q1test01 ~]# uname -a 
  Linux q1test0 ......

linux 播放声音文件程序代码

声音文件必须为Wave PCM unsigned 8bits mono格式
/* the *.wav must be 8000Hz 64kbps  8bits MONO(1)*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <linux/soundcard.h&g ......

linux 录音放音程序(从网上找来的)

/*
  Name: SndKit.c
  Copyright: GPLv2
  Author: rockins(ybc2084@163.com)
  Date: 15-10-06 18:22
  Description: implent raw sound record/play
  run: ./SndKit [-h] [-d device] [-c channel] [-b bits] [-f hz] [-l len] <-r|-p file>
  e.g.:
  ./SndKit ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号