/etc/hosts 파일가지곤 안되더라요~
ip로 지정하시길!
mount -t cifs //server/share /mnt --verbose -o user=username
( man mount.cif)
server=ip로
Posted by ⓒ쟁이™
/etc/hosts 파일가지곤 안되더라요~
ip로 지정하시길!
mount -t cifs //server/share /mnt --verbose -o user=username
( man mount.cif)
server=ip로
Posted by ⓒ쟁이™




,
ip



,
mount



,
samba



,
smbfs








,
mv



,
t -i



,
xargs








,
cpio



,
mv



,
rsync



,
ssh



,
tar




Posted by ⓒ쟁이™




,
ext3



,
filesystem



,
fs








,
Regular Expression



,
정규표현식




// 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
Posted by ⓒ쟁이™




,
명령어



,
시스템








,
cpu



,
memory



,
ps



,
명령어



,
시스템




|
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. 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:
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. |
Posted by ⓒ쟁이™
하나의 프로세스가 동시에 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정도?
Posted by ⓒ쟁이™

