Welcome to fdisk (util-linux 2.39.3). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
Device does not contain a recognized partition table. Created a new DOS (MBR) disklabel with disk identifier 0x61faa1a8.
Command (m forhelp): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): First sector (2048-419430399, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-419430399, default 419430399):
Created a new partition 1 of type'Linux' and of size 200 GiB.
Command (m forhelp): t Selected partition 1 Hex code or alias (type L to list all): L
00 Empty 27 Hidden NTFS Win 82 Linux swap / So c1 DRDOS/sec (FAT- 01 FAT12 39 Plan 9 83 Linux c4 DRDOS/sec (FAT- 02 XENIX root 3c PartitionMagic 84 OS/2 hidden or c6 DRDOS/sec (FAT- 03 XENIX usr 40 Venix 80286 85 Linux extended c7 Syrinx 04 FAT16 <32M 41 PPC PReP Boot 86 NTFS volume set da Non-FS data 05 Extended 42 SFS 87 NTFS volume set db CP/M / CTOS / . 06 FAT16 4d QNX4.x 88 Linux plaintext de Dell Utility 07 HPFS/NTFS/exFAT 4e QNX4.x 2nd part 8e Linux LVM df BootIt 08 AIX 4f QNX4.x 3rd part 93 Amoeba e1 DOS access 09 AIX bootable 50 OnTrack DM 94 Amoeba BBT e3 DOS R/O 0a OS/2 Boot Manag 51 OnTrack DM6 Aux 9f BSD/OS e4 SpeedStor 0b W95 FAT32 52 CP/M a0 IBM Thinkpad hi ea Linux extended 0c W95 FAT32 (LBA) 53 OnTrack DM6 Aux a5 FreeBSD eb BeOS fs 0e W95 FAT16 (LBA) 54 OnTrackDM6 a6 OpenBSD ee GPT 0f W95 Ext'd (LBA) 55 EZ-Drive a7 NeXTSTEP ef EFI (FAT-12/16/ 10 OPUS 56 Golden Bow a8 Darwin UFS f0 Linux/PA-RISC b 11 Hidden FAT12 5c Priam Edisk a9 NetBSD f1 SpeedStor 12 Compaq diagnost 61 SpeedStor ab Darwin boot f4 SpeedStor 14 Hidden FAT16 <3 63 GNU HURD or Sys af HFS / HFS+ f2 DOS secondary 16 Hidden FAT16 64 Novell Netware b7 BSDI fs f8 EBBR protective 17 Hidden HPFS/NTF 65 Novell Netware b8 BSDI swap fb VMware VMFS 18 AST SmartSleep 70 DiskSecure Mult bb Boot Wizard hid fc VMware VMKCORE 1b Hidden W95 FAT3 75 PC/IX bc Acronis FAT32 L fd Linux raid auto 1c Hidden W95 FAT3 80 Old Minix be Solaris boot fe LANstep 1e Hidden W95 FAT1 81 Minix / old Lin bf Solaris ff BBT 24 NEC DOS Aliases: linux - 83 swap - 82 extended - 05 uefi - EF raid - FD lvm - 8E linuxex - 85 Hex code or alias (type L to list all): 8e Changed type of partition 'Linux' to 'Linux LVM'. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks.
$ sudo pvs PV VG Fmt Attr PSize PFree /dev/sdb1 lvm2 --- <200.00g <200.00g $ sodu pvdisplay "/dev/sdb1" is a new physical volume of "<200.00 GiB" --- NEW Physical volume --- PV Name /dev/sdb1 VG Name PV Size <200.00 GiB Allocatable NO PE Size 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID 7eDKTm-12lF-Z39D-IXnd-mVQG-TzfO-zhgkTb
Welcome to fdisk (util-linux 2.39.3). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
Device does not contain a recognized partition table. Created a new DOS (MBR) disklabel with disk identifier 0x062ceef1.
Command (m forhelp): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): e Partition number (1-4, default 1): First sector (2048-2097151999, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-2097151999, default 2097151999):
Created a new partition 1 of type'Extended' and of size 1000 GiB.
Command (m forhelp): t Selected partition 1 Hex code or alias (type L to list all): 8e Changed type of partition 'Extended' to 'Linux LVM'.
Command (m forhelp): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks.
$ sudo pvcreate /dev/sdc1 Physical volume "/dev/sdc1" successfully created. root@ubuntu-ip42:/home/jack# pvdisplay --- Physical volume --- PV Name /dev/sdb1 VG Name vgdata PV Size <200.00 GiB / not usable 3.00 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 51199 Free PE 0 Allocated PE 51199 PV UUID 7eDKTm-12lF-Z39D-IXnd-mVQG-TzfO-zhgkTb "/dev/sdc1" is a new physical volume of "<1000.00 GiB" --- NEW Physical volume --- PV Name /dev/sdc1 VG Name PV Size <1000.00 GiB Allocatable NO PE Size 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID rzZlLM-wY3i-C9MM-UAz4-cPnq-2heF-YZCAUb
$ sudo vgdisplay --- Volume group --- VG Name vgdata System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 3 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size <200.00 GiB PE Size 4.00 MiB Total PE 51199 Alloc PE / Size 51199 / <200.00 GiB Free PE / Size 0 / 0 VG UUID 4s0XQX-Inp0-2Mk1-RjTz-gZU3-Cga7-28h43K $ sudo vgextend vgdata /dev/sdc1 Volume group "vgdata" successfully extended $ sudo vgdisplay --- Volume group --- VG Name vgdata System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 4 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 2 Act PV 2 VG Size 1.17 TiB PE Size 4.00 MiB Total PE 307198 Alloc PE / Size 51199 / <200.00 GiB Free PE / Size 255999 / <1000.00 GiB VG UUID 4s0XQX-Inp0-2Mk1-RjTz-gZU3-Cga7-28h43K