[cifs] cifs 마운트 할때 IP로

/etc/hosts 파일가지곤 안되더라요~

ip로 지정하시길!

mount -t cifs //server/share /mnt --verbose -o user=username
( man mount.cif)

server=ip로

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by ⓒ쟁이™

2008/11/26 20:49 2008/11/26 20:49
이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색
Response
No Trackback , No Comment
RSS :
http://funix.net/rss/response/35

xargs -t -i cp {}
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by ⓒ쟁이™

2008/11/17 16:27 2008/11/17 16:27
이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색
Response
No Trackback , No Comment
RSS :
http://funix.net/rss/response/33

복사 빠르게 하기

tar cvf - /home/foobar | (cd /var ; tar xvf -)
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by ⓒ쟁이™

2008/10/17 15:55 2008/10/17 15:55
이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색
Response
No Trackback , No Comment
RSS :
http://funix.net/rss/response/31

Error message 'Attempt to access beyond end of device'

Extracted from debian-isp
Tip provided by Ove Kaaven
 

> Well this harddrive never stops...  I've got about 200 lines like these in
> the syslog.  What exactly do they mean wand what could cause an error like
> this?  I get the basic jist that something tried to access sectors that
> didn't exist.
>
> Mar 20 01:19:50 server kernel: attempt to access beyond end of device
> Mar 20 01:19:50 server kernel: 03:41: rw=0, want=950783358, limit=11773912
> Mar 20 01:19:50 server kernel: attempt to access beyond end of device
> Mar 20 01:19:50 server kernel: 03:41: rw=0, want=1514515083, limit=11773912
> Mar 20 01:19:50 server kernel: attempt to access beyond end of device
> Mar 20 01:19:50 server kernel: 03:41: rw=0, want=1758954358, limit=11773912
 
 They mean "attempt to access beyond end of device".
 
 To put it another way: Something (probably some metadata on the disk, like
 directory entry or control block) said "the inode you want is at this
 position", the filesystem said "ok, accessing it now", the device driver
 said "hey, that's not anywhere on the surface of this disk"
 
 And well, it's likely to be caused by damaged meta-information (filesystem
 structure data) on the disk.
 
 I got it on my swap partitions once because of bad RAM chips, though
.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by ⓒ쟁이™

2008/10/16 19:09 2008/10/16 19:09
이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색
Response
No Trackback , No Comment
RSS :
http://funix.net/rss/response/30

[regexp] 정규식 쉽게 만들기 - RegexBuddy

* 출처 : http://bakion.com/426
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by ⓒ쟁이™

2008/08/20 01:15 2008/08/20 01:15
이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색
Response
No Trackback , No Comment
RSS :
http://funix.net/rss/response/27

[AIX] AIX 시스템 명령어

* 출처 : http://winsroot.net/contents/?mid=ref_o ··· rl%3D281

 // CPU 확인

[winsroot@AIX32 /]# prtconf  | grep Clock


// 전체 시스템 사양 보기

[winsroot@AIX32 /]# prtconf


//프로세서 보기 (물리적인 개수)

[winsroot@AIX32 /]# lsdev -Ccprocessor

proc0 Available 00-00 Processor
proc2 Available 00-02 Processor
proc4 Available 00-04 Processor


// 메모리 clock 확인

[winsroot@AIX32 /]# lsattr -El proc0

frequency   4704000000     Processor Speed       False
smt_enabled true           Processor SMT enabled False
smt_threads 2              Processor SMT threads False
state       enable         Processor state       False
type        PowerPC_POWER6 Processor type        False


 // 메모리 확인

[winsroot@AIX32 /]# lsdev -Ccmemory  

L2cache0 Available  L2 Cache
mem0     Available  Memory


// 메모리보기 Mb단위
[winsroot@AIX32 /]# lsattr -El mem0  

goodsize 4096 Amount of usable physical memory in Mbytes False
size     4096 Total amount of physical memory in Mbytes  Fals


 // 메모리보기 kb 단위

[winsroot@AIX32 /]# bootinfo -r

4194304


[winsroot@AIX32 /]# lsdev -Ccdisk

hdisk0 Available 09-08-00 SAS Disk Drive
hdisk1 Available 09-08-00 SAS Disk Drive


[winsroot@AIX32 /]# lspv

hdisk0          00c471d02233335a                    rootvg          active
hdisk1          none                                None        


// 디스크 용량확인

[winsroot@AIX32 /]# lsattr -El hdisk0


 // LAN or FC card 확인

[winsroot@AIX32 /]# lsdev -Ccadapter  

ent0      Available       Logical Host Ethernet Port (lp-hea)
ent1      Available       Logical Host Ethernet Port (lp-hea)
ent2      Available 03-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
ent3      Available 03-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
ent4      Available 04-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
ent5      Available 04-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
ent6      Available 06-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
ent7      Available 06-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
fcs0      Available 05-00 4Gb FC PCI Express Adapter (df1000fe)
lhea0     Available       Logical Host Ethernet Adapter (l-hea)
sa0       Available 01-08 2-Port Asynchronous EIA-232 PCI Adapter
sissas0   Available 09-08 PCI-X266 Planar 3Gb SAS Adapter
sisscsia0 Available 02-08 PCI-XDDR Dual Channel Ultra320 SCSI Adapter
usbhc0    Available 0A-08 USB Host Controller (33103500)
usbhc1    Available 0A-09 USB Host Controller (33103500)
vsa0      Available       LPAR Virtual Serial Adapter

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by ⓒ쟁이™

2008/08/19 20:51 2008/08/19 20:51
이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색
Response
No Trackback , No Comment
RSS :
http://funix.net/rss/response/26

[AIX] AIX 시스템 명령(cpu, memory, disk)

http://www.nicklib.com/bbs/board.php?bo ··· _id%3D48

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by ⓒ쟁이™

2008/08/19 11:49 2008/08/19 11:49
이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색테크노라티 태그검색태그스토리 태그검색티스토리 태그검색
Response
No Trackback , No Comment
RSS :
http://funix.net/rss/response/24

 

Linux/Unix commands: How to get copy, conversion power with dd


Sander van Vugt
02.19.2007




System administrators often have to copy data around. Copying and converting ordinary data is easily accomplished with the Linux command called cp. However, if the data is not ordinary, cp is not powerful enough. The needed power can be found in the dd command, and here are some ways to put that power to good use.

The dd command handles convert-and-copy tasks. Obviously, "cc" would have been a better name, but there already was a command with that name when dd was invented. It doesn't matter since it's a cool command.

Cloning a hard drive with dd

The dd command doesn't just copy files; it copies blocks, too. As a simple example, I'll show you how to clone your entire hard drive.

Assuming that /dev/sda is the drive that you want to clone, and /dev/sdb is an empty drive that can be used as the target, using the dd command rather easy:

dd if=/dev/sda of=/dev/sdb

In that example, dd is used with only two parameters only: if, which is used to specify an input file, and of, which is used to specify the output file. In this case, both input and output files are device files. Wait until the command is finished, and you will end up with an exact copy of the original hard drive.

In the latter example, the contents of a device were copied to another device. A slight variation to that is the way that dd is used to clone a DVD or CD-ROM and write it to an ISO file. If your optical drive can be accessed via /dev/cdrom, then you can clone the optical disk using:

dd if=/dev/cdrom of=/tmp/cdrom.iso. 

You can also mount that ISO-file using mount -o loop /tmp/cdrom.iso /mnt. Next, you can access the files in the ISO-file from the directory where the ISO is mounted.

Creating a backup of the Master Boot Record

So far, we have used dd to perform tasks that can be done with other utilities as well. Now, we can go beyond that. In the following example, create a backup of the Master Boot Record (MBR).

Copy the first 512 bytes of your hard drive, which contains the MBR, to a file. For instance, you could do this with the command

dd if=/dev/sda of=/boot/mbr_backup bs=512 count=1. 

In this scenario, two new parameters are used:

  • First, there's the parameter bs=512, which specifies that a blocksize of 512 bytes should be used.
  • Next, the parameter 1 is used to indicate that only one such block has to be copied. Without that parameter, you would copy your entire hard drive.

The backup copy of your MBR may be useful if, some day, you can't boot your server anymore because of a problem in the MBR. In case that happens, just boot from a rescue disk and use the command:

dd if=/boot/mbr_backup of=/dev/sda bs=446 count=1

In this restore command, only 446 bytes are written back. This is because you may have changed the partition table since you've created the backup. By writing back only the first 446 bytes of your backup file, you don't overwrite the original partition table, which is between bytes 447 and 511.

Extending swap space

In the last example of how dd can save your life, I'll show you how to extend your swap space by adding a swap file.

Let's say that you're alerted at 3 a.m. by a message saying your server is about to run out of memory entirely, due to an undiscovered memory leak. All you have to do is create an empty file and specify that it should be added to the swap space.

Creating this empty file is an excellent task for dd:

dd if=/dev/zero of=/swapfile bs=1024 count=1000000

This would write a file of one gigabyte, and that can be added to the swap space using mkswap /swapfile and swapon /swapfile.

In this article, you've learned how to do some basic troubleshooting using the dd utility. As you have read, dd is a very versatile utility that goes far beyond the capabilities of ordinary copy tools like cp. Its abilities to work with blocks instead of files are especially valuable.


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by ⓒ쟁이™

2008/03/14 02:05 2008/03/14 02:05
Response
No Trackback , No Comment
RSS :
http://funix.net/rss/response/10

Sun 에서 파일 오픈 갯수 늘리기

하나의 프로세스가 동시에 open할 수 있는 최대 화일의 개수는 디폴트로 64개이고, 1024개까지 화일의 갯수를 늘릴 수 있다.
shell에서 최대화일의 갯수를 512개로 늘이려면, 다음과 같이 지정한다.

csh 경우)
limit descriptors 512

sh, ksh 경우)

ulimit -n 512

shell에서 한번 지정되면 이후에 실행되는 모든 명령어에 이 영향이 반영된다.  이 명령은 시스템이 지정한 한계값 이내에서 변경이 가능한다. 따라서 만약 시스템이 정한 값이 256이상이면 그 이상의 값을 지정할 수 없다.


만일, 디폴트 값을 128로 하고 최대 화일의 갯수를 1500까지 늘릴 수 있도록 하려면, /etc/system 화일에 다음과 같은 내용을 추가하고, 시스템을 리부팅한다.

set rlim_fd_max=1500
set rlim_fd_cur=128

리눅스는 1024가 디폴트 선은 256이 디폴트
선은 4096정도?

 


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by ⓒ쟁이™

2008/02/27 19:10 2008/02/27 19:10
이올린 태그검색