Dmesg : (hardisk yang baru, sebgai contoh adalah sdd)
| Code: |
|
scsi 5:0:0:0: Direct-Access ATA ST1000NM0033-9ZM SN04 PQ: 0 ANSI: 5 sd 5:0:0:0: Attached scsi generic sg3 type 0 sd 5:0:0:0: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB) sd 5:0:0:0: [sdd] Write Protect is off sd 5:0:0:0: [sdd] Mode Sense: 00 3a 00 00 sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdd: unknown partition table sd 5:0:0:0: [sdd] Attached SCSI disk |
| Code: |
|
[adpitVPS02 ~]# fdisk -l | grep ^Disk | sed '/mapper/d'| sed '/identifier:/d' Disk /dev/sda: 1000.2 GB, 1000204886016 bytes Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes |
# format mengunakan aplikasi fdisk
| Code: |
|
[adpitVPS02 ~]# fdisk /dev/sdd Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0xc1fc5b0c. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to |
# Pilih n untuk create drive lalu tekan p jika sebagai primary
| Code: |
|
Command (m for help): n Command action e extended p primary partition (1-4) p |
# pilih nomor 1, dan dilanjutkan dengan tekan2 enter
| Code: |
|
Partition number (1-4): 1 First cylinder (1-121601, default 1): Using default value 1 Last cylinder, +cylinders or +size{K,M,G} (1-121601, default 121601): Using default value 121601 |
# pilih t untuk merubah type, masukan 8e untuk type LVM
| Code: |
|
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) |
# pilih p, untuk melihat drive yang sudah dibuat
| Code: |
|
Command (m for help): p Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 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: 0xc1fc5b0c
Device Boot Start End Blocks Id System |
# jika sudah ok, tekan w untuk write
| Code: |
|
Command (m for help): w The partition table has been altered! |
# buat Physical volume pada Disk baru
| Code: |
|
[adpitVPS02 ~]# pvcreate /dev/sdd1 Physical volume "/dev/sdd1" successfully created |
# lalu buat grup untuk drive yang baru tersebut
| Code: |
|
[adpitVPS02 ~]# vgcreate adpitVPS02-A /dev/sdd1 Volume group "adpitVPS02-A" successfully created |
# login ke virtualizor untuk menambahkan hardisk baru, untuk hardisk baru set sebagai primary, hardisk lama unset-primary
