清理osd 磁碟

清理osd 磁碟

fdisk /dev/sde

Command (m for help): s

Created a new partition 1 of type 'Linux native' and of size 1.5 TiB.
Created a new partition 2 of type 'Linux swap' and of size 47.1 MiB.
Created a new partition 3 of type 'Whole disk' and of size 1.5 TiB.
Created a new Sun disklabel.
The old dos signature will be removed by a write command.

Command (m for help): p

Disk /dev/sde: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Disk model: HGST HUS726060AL
Geometry: 255 heads, 63 sectors/track, 729601 cylinders
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: sun

Device          Start        End    Sectors  Size Id Type         Flags
/dev/sde1           0 3131009082 3131009083  1.5T 83 Linux native
/dev/sde2  3131004240 3131100629      96390 47.1M 82 Linux swap      u
/dev/sde3           0 3131105472 3131105473  1.5T  5 Whole disk

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

root@pve1:~# fdisk /dev/sde

Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): d
Partition number (1-3, default 3):

Partition 3 has been deleted.

Command (m for help): d
Partition number (1,2, default 2):

Partition 2 has been deleted.

Command (m for help): d
Selected partition 1
Partition 1 has been deleted.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

root@pve1:~# fdisk /dev/sdf

Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

The old LVM2_member signature will be removed by a write command.

Device does not contain a recognized partition table.
The size of this disk is 5.5 TiB (6001175126016 bytes). DOS partition table format cannot be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT).

Created a new DOS disklabel with disk identifier 0xf89b4f2f.

Command (m for help): s
Created a new partition 1 of type 'Linux native' and of size 1.5 TiB.
Created a new partition 2 of type 'Linux swap' and of size 47.1 MiB.
Created a new partition 3 of type 'Whole disk' and of size 1.5 TiB.
Created a new Sun disklabel.
The old LVM2_member signature will be removed by a write command.

Command (m for help): p

Disk /dev/sdf: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Disk model: HGST HUS726060AL
Geometry: 255 heads, 63 sectors/track, 729601 cylinders
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: sun

Device          Start        End    Sectors  Size Id Type         Flags
/dev/sdf1           0 3131009082 3131009083  1.5T 83 Linux native
/dev/sdf2  3131004240 3131100629      96390 47.1M 82 Linux swap      u
/dev/sdf3           0 3131105472 3131105473  1.5T  5 Whole disk

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

root@pve1:~# fdisk /dev/sdf

Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): d
Partition number (1-3, default 3):

Partition 3 has been deleted.

Command (m for help): d
Partition number (1,2, default 2):

Partition 2 has been deleted.

Command (m for help): d
Selected partition 1
Partition 1 has been deleted.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

Last updated