Why does pvcreate use character devices while vgcreate uses Block devices?

Source: Internet
Author: User

In LVM,
(1) pvcreate uses character devices.
# Pvcreate-F/dev/rdsk/c0t3d0

(2) vgcreate uses Block devices.
# Vgcreate/dev/vg01/dev/DSK/c0t3d0

(3) when creating a file system using newfs, what is the character device used ??
# Newfs-F vxfs/dev/vg01/rmyfs1

(4) The mount command requires a block device file.
# Mount/dev/vg01/myfs1/myfs1

I would like to ask, under what circumstances are character devices and Block devices used ??

margin

Logical volume management for hard disk resources for HP-UX
HP-UX Management of hard disk storage resources is the use of logical volumes to manage, to clarify the entire mechanism, first to introduce several concepts:

Physical Volume physical volume, called PV: refers to the physical hard disk, a hard disk is a PV

Logical volume group (VG): a VG contains an integer PV, which can be considered as a large hard disk.

Logical volume, called LV: it is equivalent to a logical partition of a large hard disk. a vg can contain several LV.

File System: On the basis of logical volumes, you can create a file system and mount it to a directory. In this way, you can use this hard disk by means of file access.

Of course, you can also directly use LV as a bare device without creating a file system to access data in trunk mode. Many databases use this method to access data.

margin

Character device, because the disk is reserved

Block device, because you do not need to operate on the reserved area

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.