파티션 생성


[root@LGDSSOP1 ~]# fdisk /dev/sdb
Command (m for help): n
 e   extended
 p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1958, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1958, default 1958):
Using default value 1958

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@LGDSSOP1 ~]#

[root@LGDSSOP1 ~]# fdisk /dev/sdc
Command (m for help): n
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1958, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1958, default 1958):
Using default value 1958

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@LGDSSOP1 ~]#.
 

 PV생성

[root@LGDSSOP1 ~]# pvcreate /dev/sdb1
Physical volume "/dev/sdb1" successfully created
[root@LGDSSOP1 ~]# pvcreate /dev/sdc1
Physical volume "/dev/sdc1" successfully created


 VG Groub 생성

[root@LGDSSOP1 ~]# vgcreate VGMASTER /dev/sdb1 /dev/sdc1
Volume group "VGMASTER" successfully created

 LV생성

[root@LGDSSOP1 ~]# lvcreate -L 1024 -n lv_root VGMASTER
 Logical volume "lv_root" created
[root@LGDSSOP1 ~]# lvcreate -L 5024 -n lv_usr VGMASTER
 Logical volume "lv_usr" created
[root@LGDSSOP1 ~]# lvcreate -L 10240 -n lv_home VGMASTER
  Logical volume "lv_home" created

 

'[IT] Linux > Volume' 카테고리의 다른 글

LV Size 확장 및 축소  (0) 2015.05.07
super block  (0) 2015.05.07
LVM Stripe LV 생성  (0) 2015.05.03
 
* 슈퍼블록 위치 확인 
#dumpe2fs /dev/sda1 | grep -i superblock
  Primary superblock at 1, Group descriptors at 2-2
  Backup superblock at 8193, Group descriptors at 8194-8194
  Backup superblock at 24577, Group descriptors at 24578-24578
  Backup superblock at 40961, Group descriptors at 40962-40962
  Backup superblock at 57345, Group descriptors at 57346-57346
  Backup superblock at 73729, Group descriptors at 73730-73730

메인 슈퍼블록 1
첫번째 백업 슈퍼블록 8193, 
두번째 백업 슈퍼블록 24577, 
세번째 백업 슈퍼블록 40961, 
네번째 백업 슈퍼블록 57345, 
다섯번째 백업 슈퍼블록 73729, 

메인 슈퍼블록이 깨지면 파일시스템 전체가 정상작동하지 않는다.
이에 백업 슈퍼블록을 이용해 메인슈퍼블록을 복구할 수 있다.

* 복구
#e2fsck -b 8193 -yf /dev/sda1
or
#e2fsck -b 8193 -yf /dev/sda1 -j ext3
-y : 질문에 yes하기
-f : 강제

'[IT] Linux > Volume' 카테고리의 다른 글

LV Size 확장 및 축소  (0) 2015.05.07
LVM PV, VG, LV 생성  (0) 2015.05.07
LVM Stripe LV 생성  (0) 2015.05.03
 

1. 단일본딩

  
1. 있는 경우에만 해줌
service NetworkManager stop
            chkconfig NetworkManager off


2. vi /etc/modprobe.d/bonding.conf  #<파일생셩
             alias bond0 bonding
             alias bond1 bonding

3. vi /etc/sysconfig/network-scripts/ifcfg-bond0           
             DEVICE=bond0
IPADDR=192.168.6.70
            NETMASK=255.255.255.0
GATEWAY=192.168.6.3
            ONBOOT=yes
            BOOTPROTO=none
            USERCTL=no
BONDING_OPTS="mode=1 miimon=100'"

3. vi /etc/sysconfig/network-scripts/ifcfg-bond0           
             DEVICE=bond0
IPADDR=192.168.6.70
            NETMASK=255.255.255.0
GATEWAY=192.168.6.3
            ONBOOT=yes
            BOOTPROTO=none
            USERCTL=no
BONDING_OPTS="mode=1 miimon=100 primary=em3'"


4. vi /etc/sysconfig/network-scripts/ifcfg-em1

             DEVICE=em1
             BOOTPROTO=none
             USERCTL=no
             MASTER=bond0
             SLAVE=yes
             ONBOOT=yes

4. vi /etc/sysconfig/network-scripts/ifcfg-em2

             DEVICE=em2
             BOOTPROTO=none
             USERCTL=no
             MASTER=bond0
             SLAVE=yes
             ONBOOT=yes

4. vi /etc/sysconfig/network-scripts/ifcfg-em3

             DEVICE=em3
             BOOTPROTO=none
             USERCTL=no
             MASTER=bond0
             SLAVE=yes
             ONBOOT=yes

4. vi /etc/sysconfig/network-scripts/ifcfg-em4

             DEVICE=em4
             BOOTPROTO=none
             USERCTL=no
             MASTER=bond0
             SLAVE=yes
             ONBOOT=yes


6. vi /etc/sysconfig/network
             GATEDEV=bond0

7. #modprobe bonding
 


 

 

'[IT] Linux > Network' 카테고리의 다른 글

Redhat enterpise 5.x Single Bonding  (0) 2015.05.03
Nic Speed Setting  (0) 2015.05.03

+ Recent posts