NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: access LVM logical volume as disk?
riz%tastylime.net@localhost (Jeff Rizzo) writes:
>Is there any way to get NetBSD 10.1 to treat an LVM logical volume as if
>it's
>a disk? Specifically, I can access the gpt on the raw device of the lv
>directly, and it shows:
You can create a ccd device on top of a LV.
# gpt show /dev/mapper/vg0-lvpbulk
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 419430333 1 GPT part - NetBSD FFSv1/FFSv2
419430367 32 Sec GPT table
419430399 1 Sec GPT header
# ccdconfig ccd0 1 /dev/mapper/vg0-lvpbulk
# gpt show ccd0
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 419430333 1 GPT part - NetBSD FFSv1/FFSv2
419430367 32 Sec GPT table
419430399 1 Sec GPT header
# gpt ccd0 listwedges
dk19: iqn.2007-09.jp.ne.peach.istgt:pbulk1, 419430333 blocks at 34, type: ffs
# fsck -n -f dk19
** /dev/rdk19 (NO WRITE)
** File system is already clean
** Last Mounted on /mnt
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
264542 files, 345267 used, 51270954 free (138 frags, 6408852 blocks, 0.0% fragmentation)
# mount /dev/dk19 /mnt
# df -h /mnt
Filesystem Size Used Avail %Cap Mounted on
/dev/dk19 197G 1.3G 186G 0% /mnt
Home |
Main Index |
Thread Index |
Old Index