TAILIEUCHUNG - Ubuntu Linux Toolbox 1000+ Commands for Ubuntu and Debian Power Users phần 6

Sử dụng lvcreate để tạo ra một phân vùng LVM mới 10M từ nhóm khối vgusb. Sau đó sử dụng LVS để xem khối lượng hợp lý và VGS để thấy rằng số lượng không gian miễn phí đã thay đổi: Quản lý hệ thống tập tin Sau đó sử dụng vgcreate để tạo ra các nhóm khối lượng vgusb và danh sách các nhóm khối lượng hoạt động hiện tại: | Chapter 7 Administering File Systems Then use vgcreate to create the vgusb volume group and list the active current volume groups sudo vgcreate vgusb dev sdbl Create vgusb volume group Volume group vgusb successfully created sudo vgs View current volume groups VG PV LV SN Attr VSize VFree vgusb 1 0 0 wz--n- Use lvcreate to create a new LVM partition of 10M from the vgusb volume group. Then use Ivs to see the logical volume and vgs to see that the amount of free space has changed sudo lvcreate --size 10M --name lvm_u1 vgusb Rounding up size to full physical extent MB Logical volume lvm_u1 created sudo lvs View the logical volume information LV VG Attr LSize Origin Snap Move Log Copy lvm_u1 vgusb -wi-a- sudo vgs See that you still have 16M free VG PV LV SN Attr VSize VFree vgusb 1 1 0 wz--n- To create an ext3 file system on the lvm partition use the command as follows sudo dev mapper vgusb-lvm_u1 mke2fs 30-Jun-2005 Filesystem label OS type Linux Block size 1024 log 0 Fragment size 1024 log 0 3072 inodes 12288 blocks 614 blocks reserved for the super user First data block 1 Maximum filesystem blocks 12582912 2 block groups 8192 blocks per group 8192 fragments per group 1536 inodes per group Superblock backups stored on blocks 8193 Writing inode tables done Creating journal 1024 blocks done Writing superblocks and filesystem accounting information done This filesystem will be automatically checked every 35 mounts or 180 days whichever comes first. Use tune2fs -c or -i to override. The ext3 file system has now been created and the LVM volume is ready to use. 147 Chapter 7 Administering File Systems Using LVM Volumes To use the new volume just created represented by dev mapper vgusb-lvm_u1 create a mount point mnt u1 and mount the volume. Then use df to check the available space sudo mkdir mnt u1 Create mount point sudo mount -t ext3 dev mapper vgusb-lvm_u1 mnt u1 Mount volume df -m mnt u1 Check disk

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.