[root@testsvrdwa01 ~]# fdisk -l
Disk /dev/sda: 193.3 GB, 193273528320 bytes <늘어난 용량 체크 255 heads, 63 sectors/track, 23497 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000b22b4
Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 3264 25701376 8e Linux LVM /dev/sda3 3264 10051 54520257+ 8e Linux LVM
[root@testsvrdwa01 ~]# fdisk /dev/sda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u').
Command (m for help): p
Disk /dev/sda: 193.3 GB, 193273528320 bytes 255 heads, 63 sectors/track, 23497 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000b22b4
Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 3264 25701376 8e Linux LVM /dev/sda3 3264 10051 54520257+ 8e Linux LVM
Command (m for help): n Command action e extended p primary partition (1-4) p <- 만약 차후 더 확장할 계획이 있다면 e 키를 눌러 extended 로 하여야 한다. Selected partition 4 <- 현재 시스템은 1~3번까지 쓰고 있으므로 4번 First cylinder (10052-23497, default 10052): 10052 Last cylinder, +cylinders or +size{K,M,G} (10052-23497, default 23497): Using default value 23497
Command (m for help): p
Disk /dev/sda: 193.3 GB, 193273528320 bytes 255 heads, 63 sectors/track, 23497 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000b22b4
Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 3264 25701376 8e Linux LVM /dev/sda3 3264 10051 54520257+ 8e Linux LVM /dev/sda4 10052 23497 108004995 83 Linux <- 4번 볼륨이 추가됨
Command (m for help): t <- change a partition's system id Partition number (1-4): 4 <- 4번 볼륨 선택 Hex code (type L to list codes): 8e <- Linux LVM용으로 만들기 위해 partition system id를 8e 로 정의한다. Changed system type of partition 4 to 8e (Linux LVM)
Command (m for help): w <- 설정한 내용을 저장 The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: 장치나 자원이 동작 중. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks. |