더북(TheBook)

4. 이번에는 /etc/lvm/lvm.conf 파일을 열어 내용을 확인해 보겠습니다. 내용을 보면 devices라는 블록 디바이스를 설정하는 부분이 있습니다. 여기서 filter 항목을 찾아 앞에서 생성한 디바이스를 추가합니다. 이때 이름은 a/[디바이스 이름]으로 입력합니다. 앞에서 /dev/sdb로 볼륨을 설정했으므로 filter에도 a/sdb라고 입력합니다.

root@compute:~# vi /etc/lvm/lvm.conf

This is an example configuration file for the LVM2 system.

It contains the default settings that would be used if there was no

/etc/lvm/lvm.conf file.

#

Configuration section config.

How LVM configuration settings are handled.

config { checks = 1 abort_on_errors = 0 profile_dir = “/etc/lvm/profile” }

Configuration section devices.

How LVM uses block devices.

devices { dir = “/dev” scan = [ “/dev” ] obtain_device_list_from_udev = 1 external_device_info_source = “none” filter = [ “a/sdb/”, “r/.*/” ] cache_dir = “/run/lvm” cache_file_prefix = “” write_cache_state = 1 sysfs_scan = 1 multipath_component_detection = 1 md_component_detection = 1 fw_raid_component_detection = 0 md_chunk_alignment = 1 data_alignment_detection = 1 data_alignment = 0 #data_alignment_offset_dection = 1 ignore_suspended_devices = 0 ignore_lvm_mirrors = 1 disable_after_error_count = 0 require_restorefile_with_uuid = 1 pv_min_size = 2048 issue_discards = 1 }

Configuration section allocation.

How LVM selects space and applies properties to LVs.

allocation { maximise_cling = 1 use_blkid_wiping = 1 wipe_signatures_when_zeroing_new_lvs = 1 mirror_logs_require_separate_pvs = 0 cache_pool_metadata_require_separate_pvs = 0 #thin_pool_metadata_require_separate_pvs = 0 }

Configuration section log.

How LVM log information is reported.

log { verbose = 0 silent = 0 syslog = 1 overwrite = 0 level = 0 indent = 1 command_names = 0 prefix = “ “ activation = 0 debug_classes = [ “memory”, “devices”, “activation”, “allocation”, “lvmetad”, “metadata”, “cache”, “locking”, “lvmpolld” ] }

Configuration section backup.

backup { backup = 1 backup_dir = “/etc/lvm/backup” archive = 1 archive_dir = “/etc/lvm/archive” retain_min = 10 retain_days = 30 }

Configuration section shell.

Settings for running LVM in shell (readline) mode.

shell { history_size = 100 }

Configuration section global.

Miscellaneous global LVM settings.

global { umask = 077 test = 0 units = “h” si_unit_consistency = 1 suffix = 1 activation = 1 proc = “/proc” etc = “/etc” locking_type = 1 wait_for_locks = 1 fallback_to_clustered_locking = 1 fallback_to_local_locking = 1 locking_dir = “/run/lock/lvm” prioritise_write_locks = 1 abort_on_internal_errors = 0 detect_internal_vg_cache_corruption = 0 metadata_read_only = 0 mirror_segtype_default = “raid1” raid10_segtype_default = “raid10” sparse_segtype_default = “thin” use_lvmetad = 1 use_lvmlockd = 0 system_id_source = “none” use_lvmpolld = 1 }

Configuration section activation.

activation { checks = 0 udev_sync = 1 udev_rules = 1 verify_udev_operations = 0 retry_deactivation = 1 missing_stripe_filler = “error” use_linear_target = 1 reserved_stack = 64 reserved_memory = 8192 process_priority = -18 raid_region_size = 512 readahead = “auto” raid_fault_policy = “warn” mirror_image_fault_policy = “remove” mirror_log_fault_policy = “allocate” snapshot_autoextend_threshold = 100 snapshot_autoextend_percent = 20 # thin_pool_autoextend_threshold = 100 thin_pool_autoextend_percent = 20 use_mlockall = 0 monitoring = 1 polling_interval = 15 activation_mode = “degraded” }

Configuration section dmeventd.

Settings for the LVM event daemon.

dmeventd { mirror_library = “libdevmapper-event-lvm2mirror.so” snapshot_library = “libdevmapper-event-lvm2snapshot.so” thin_library = “libdevmapper-event-lvm2thin.so” }

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.