linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] mounting a filesystem on LVM2
@ 2010-10-04  8:02 Tapas Mishra
  2010-10-04 14:46 ` Phillip Susi
  0 siblings, 1 reply; 27+ messages in thread
From: Tapas Mishra @ 2010-10-04  8:02 UTC (permalink / raw)
  To: linux-lvm

I just created an LVM and using cfdisk I created a / type ext4
and swap filesystem in that.
Both are completely blank.
Is it possible to mount the above / filesystem in LVM at some place so
that I can write in it.
I am using LVM2.
I want to fill the data of a snapshot backup into this LVM.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04  8:02 [linux-lvm] mounting a filesystem on LVM2 Tapas Mishra
@ 2010-10-04 14:46 ` Phillip Susi
  2010-10-04 15:06   ` Tapas Mishra
  0 siblings, 1 reply; 27+ messages in thread
From: Phillip Susi @ 2010-10-04 14:46 UTC (permalink / raw)
  To: LVM general discussion and development; +Cc: Tapas Mishra

Perhaps you should start by reading the howto.

On 10/4/2010 4:02 AM, Tapas Mishra wrote:
> I just created an LVM and using cfdisk I created a / type ext4
> and swap filesystem in that.
> Both are completely blank.
> Is it possible to mount the above / filesystem in LVM at some place so
> that I can write in it.
> I am using LVM2.
> I want to fill the data of a snapshot backup into this LVM.
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 14:46 ` Phillip Susi
@ 2010-10-04 15:06   ` Tapas Mishra
  2010-10-04 15:32     ` Tapas Mishra
                       ` (3 more replies)
  0 siblings, 4 replies; 27+ messages in thread
From: Tapas Mishra @ 2010-10-04 15:06 UTC (permalink / raw)
  To: Phillip Susi; +Cc: LVM general discussion and development

On Mon, Oct 4, 2010 at 8:16 PM, Phillip Susi <psusi@cfl.rr.com> wrote:
> Perhaps you should start by reading the howto.


Ok here is some output I feel I should mention

mount output is
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)

nintendo is a volume group which holds these LVMs


> 1. ls -l /mnt/backup

 ls -l /mnt/backup/
total 0


> 2. ls -l /dev/mapper


crw-rw---- 1 root root  10, 59 2010-09-29 17:57 control
brw-rw---- 1 root disk 251,  0 2010-10-04 13:12 nintendo-backupos
brw-rw---- 1 root disk 251,  2 2010-10-04 13:57 nintendo-backupos1
brw-rw---- 1 root disk 251,  3 2010-10-04 13:57 nintendo-backupos2
brw-rw---- 1 root disk 251,  6 2010-10-04 18:56 nintendo-lvm1
brw-rw---- 1 root disk 251,  1 2010-10-04 18:56 nintendo-lvm2
brw-rw---- 1 root disk 251,  5 2010-10-04 18:56 nintendo-lvm3
brw-rw---- 1 root disk 251,  4 2010-10-04 18:56 nintendo-lvm4

> 3. cat /proc/self/mountinfo

15 19 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw
16 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw
17 19 0:5 / /dev rw,relatime - devtmpfs none
rw,size=4086108k,nr_inodes=1021527,mode=755
18 17 0:12 / /dev/pts rw,nosuid,noexec,relatime - devpts none
rw,gid=5,mode=620,ptmxmode=000
19 1 8:1 / / rw,relatime - ext4
/dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6
rw,errors=remount-ro,barrier=1,data=ordered
21 15 0:15 / /sys/fs/fuse/connections rw,relatime - fusectl none rw
22 15 0:7 / /sys/kernel/debug rw,relatime - debugfs none rw
23 15 0:10 / /sys/kernel/security rw,relatime - securityfs none rw
24 17 0:16 / /dev/shm rw,nosuid,nodev,relatime - tmpfs none rw
25 19 0:17 / /var/run rw,nosuid,relatime - tmpfs none rw,mode=755
26 19 0:18 / /var/lock rw,nosuid,nodev,noexec,relatime - tmpfs none rw
27 19 0:19 / /lib/init/rw rw,nosuid,relatime - tmpfs none rw,mode=755

> 4. cat /proc/self/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /dev devtmpfs rw,relatime,size=4086108k,nr_inodes=1021527,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6 / ext4
rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
none /var/run tmpfs rw,nosuid,relatime,mode=755 0 0
none /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
none /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0

> 5. cat /proc/1/mountinfo
15 19 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw
16 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw
17 19 0:5 / /dev rw,relatime - devtmpfs none
rw,size=4086108k,nr_inodes=1021527,mode=755
18 17 0:12 / /dev/pts rw,nosuid,noexec,relatime - devpts none
rw,gid=5,mode=620,ptmxmode=000
19 1 8:1 / / rw,relatime - ext4
/dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6
rw,errors=remount-ro,barrier=1,data=ordered
21 15 0:15 / /sys/fs/fuse/connections rw,relatime - fusectl none rw
22 15 0:7 / /sys/kernel/debug rw,relatime - debugfs none rw
23 15 0:10 / /sys/kernel/security rw,relatime - securityfs none rw
24 17 0:16 / /dev/shm rw,nosuid,nodev,relatime - tmpfs none rw
25 19 0:17 / /var/run rw,nosuid,relatime - tmpfs none rw,mode=755
26 19 0:18 / /var/lock rw,nosuid,nodev,noexec,relatime - tmpfs none rw
27 19 0:19 / /lib/init/rw rw,nosuid,relatime - tmpfs none rw,mode=755

> 6. cat /proc/1/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /dev devtmpfs rw,relatime,size=4086108k,nr_inodes=1021527,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6 / ext4
rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
none /var/run tmpfs rw,nosuid,relatime,mode=755 0 0
none /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
none /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0

strace -f -ooutout mount /dev/mapper/nintendo-backupos /mnt/backup
>
I got on terminal
mount: /dev/mapper/nintendo-backupos already mounted or /mnt/backup/ busy


and contents of outout
are



20525 execve("/bin/mount", ["mount", "/dev/mapper/nintendo-backu"...,
"/mnt/backup/"], [/* 18 vars */]) = 0
20525 brk(0)                            = 0x18f3000
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 mmap(NULL, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea240000
20525 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
20525 open("/etc/ld.so.cache", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=34118, ...}) = 0
20525 mmap(NULL, 34118, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea237000
20525 close(3)                          = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libblkid.so.1", O_RDONLY) = 3
20525 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@X\0\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=126536, ...}) = 0
20525 mmap(NULL, 2221608, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de9e04000
20525 mprotect(0x7f5de9e20000, 2093056, PROT_NONE) = 0
20525 mmap(0x7f5dea01f000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f5dea01f000
20525 close(3)                          = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libuuid.so.1", O_RDONLY) = 3
20525 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\25\0\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=19008, ...}) = 0
20525 mmap(NULL, 2113920, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de9bff000
20525 mprotect(0x7f5de9c03000, 2093056, PROT_NONE) = 0
20525 mmap(0x7f5de9e02000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f5de9e02000
20525 close(3)                          = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libselinux.so.1", O_RDONLY) = 3
20525 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20Y\0\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=117592, ...}) = 0
20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea236000
20525 mmap(NULL, 2217480, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de99e1000
20525 mprotect(0x7f5de99fd000, 2093056, PROT_NONE) = 0
20525 mmap(0x7f5de9bfc000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f5de9bfc000
20525 mmap(0x7f5de9bfe000, 1544, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5de9bfe000
20525 close(3)                          = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libsepol.so.1", O_RDONLY) = 3
20525 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340D\0\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=244576, ...}) = 0
20525 mmap(NULL, 2341536, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de97a5000
20525 mprotect(0x7f5de97df000, 2097152, PROT_NONE) = 0
20525 mmap(0x7f5de99df000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0x7f5de99df000
20525 close(3)                          = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libc.so.6", O_RDONLY)  = 3
20525 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\355\1\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0755, st_size=1568136, ...}) = 0
20525 mmap(NULL, 3676200, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de9423000
20525 mprotect(0x7f5de959b000, 2097152, PROT_NONE) = 0
20525 mmap(0x7f5de979b000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x178000) = 0x7f5de979b000
20525 mmap(0x7f5de97a0000, 18472, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5de97a0000
20525 close(3)                          = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libdl.so.2", O_RDONLY) = 3
20525 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\r\0\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=14696, ...}) = 0
20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea235000
20525 mmap(NULL, 2109696, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de921f000
20525 mprotect(0x7f5de9221000, 2097152, PROT_NONE) = 0
20525 mmap(0x7f5de9421000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f5de9421000
20525 close(3)                          = 0
20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea234000
20525 mmap(NULL, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea232000
20525 arch_prctl(ARCH_SET_FS, 0x7f5dea2327e0) = 0
20525 mprotect(0x7f5de9421000, 4096, PROT_READ) = 0
20525 mprotect(0x7f5de979b000, 16384, PROT_READ) = 0
20525 mprotect(0x7f5de99df000, 4096, PROT_READ) = 0
20525 mprotect(0x7f5de9bfc000, 4096, PROT_READ) = 0
20525 mprotect(0x7f5de9e02000, 4096, PROT_READ) = 0
20525 mprotect(0x7f5dea01f000, 12288, PROT_READ) = 0
20525 mprotect(0x612000, 4096, PROT_READ) = 0
20525 mprotect(0x7f5dea242000, 4096, PROT_READ) = 0
20525 munmap(0x7f5dea237000, 34118)     = 0
20525 statfs("/selinux", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096,
f_blocks=2402873, f_bfree=1379180, f_bavail=1257120, f_files=610800,
f_ffree=527078, f_fsid={-90057489, -1743393107}, f_namelen=255,
f_frsize=4096}) = 0
20525 brk(0)                            = 0x18f3000
20525 brk(0x1914000)                    = 0x1914000
20525 open("/proc/filesystems", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea23f000
20525 read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 313
20525 read(3, "", 1024)                 = 0
20525 close(3)                          = 0
20525 munmap(0x7f5dea23f000, 4096)      = 0
20525 open("/usr/lib/locale/locale-archive", O_RDONLY) = -1 ENOENT (No
such file or directory)
20525 open("/usr/share/locale/locale.alias", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea23f000
20525 read(3, "# Locale name alias data base.\n#"..., 4096) = 2570
20525 read(3, "", 4096)                 = 0
20525 close(3)                          = 0
20525 munmap(0x7f5dea23f000, 4096)      = 0
20525 open("/usr/lib/locale/en_IN/LC_IDENTIFICATION", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=458, ...}) = 0
20525 mmap(NULL, 458, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23f000
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_MEASUREMENT", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
20525 mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23e000
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_TELEPHONE", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=53, ...}) = 0
20525 mmap(NULL, 53, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23d000
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_ADDRESS", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=103, ...}) = 0
20525 mmap(NULL, 103, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23c000
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_NAME", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=72, ...}) = 0
20525 mmap(NULL, 72, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23b000
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_PAPER", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
20525 mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23a000
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_MESSAGES", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=53, ...}) = 0
20525 mmap(NULL, 53, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea239000
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_MONETARY", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=294, ...}) = 0
20525 mmap(NULL, 294, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea238000
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_COLLATE", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=1170770, ...}) = 0
20525 mmap(NULL, 1170770, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea114000
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_TIME", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=2578, ...}) = 0
20525 mmap(NULL, 2578, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea237000
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_NUMERIC", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
20525 mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea113000
20525 close(3)                          = 0
20525 open("/usr/lib/locale/en_IN/LC_CTYPE", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=256324, ...}) = 0
20525 mmap(NULL, 256324, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea0d4000
20525 close(3)                          = 0
20525 umask(022)                        = 022
20525 open("/dev/null", O_RDWR)         = 3
20525 close(3)                          = 0
20525 getuid()                          = 0
20525 geteuid()                         = 0
20525 stat("/dev/mapper/nintendo-backupos", {st_mode=S_IFBLK|0660,
st_rdev=makedev(251, 0), ...}) = 0
20525 readlink("/dev", 0x7fff0dd219b0, 4096) = -1 EINVAL (Invalid argument)
20525 readlink("/dev/mapper", 0x7fff0dd219b0, 4096) = -1 EINVAL
(Invalid argument)
20525 readlink("/dev/mapper/nintendo-backupos", 0x7fff0dd219b0, 4096)
= -1 EINVAL (Invalid argument)
20525 rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
20525 open("/dev/mapper/nintendo-backupos", O_RDONLY) = 3
20525 fadvise64(3, 0, 0, POSIX_FADV_RANDOM) = 0
20525 fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(251, 0), ...}) = 0
20525 uname({sys="Linux", node="openworld", ...}) = 0
20525 ioctl(3, BLKGETSIZE64, 0x18f6f60) = 0
20525 lseek(3, 5368643584, SEEK_SET)    = 5368643584
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
64) = 64
20525 lseek(3, 5368700928, SEEK_SET)    = 5368700928
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
64) = 64
20525 lseek(3, 0, SEEK_SET)             = 0
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
64) = 64
20525 lseek(3, 4096, SEEK_SET)          = 4096
20525 read(3, "A\1\0\0Q\1\0\0a\1\0\0hI\1\0v\5\4\0\0\0\0\0\0\0\0\0\0\0\335\315"...,
64) = 64
20525 lseek(3, 5368708608, SEEK_SET)    = 5368708608
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
40) = 40
20525 lseek(3, 5368577536, SEEK_SET)    = 5368577536
20525 read(3, "\350Jz\245\33\177\0\0\350\367y\245\33\177\0\0\370\370x\245\33\177\0\0h\245w\245\33\177\0\0"...,
40) = 40
20525 lseek(3, 5368708096, SEEK_SET)    = 5368708096
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
48) = 48
20525 lseek(3, 5368708608, SEEK_SET)    = 5368708608
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
51) = 51
20525 lseek(3, 5368708608, SEEK_SET)    = 5368708608
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
292) = 292
20525 lseek(3, 5368676864, SEEK_SET)    = 5368676864
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24) = 24
20525 lseek(3, 5368578560, SEEK_SET)    = 5368578560
20525 read(3, "\0\37F\245\33\177\0\0\240N\320\220\33\177\0\0\f\0\0\0\5\0\0\0",
24) = 24
20525 lseek(3, 5368578048, SEEK_SET)    = 5368578048
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0", 24) = 24
20525 lseek(3, 5368504832, SEEK_SET)    = 5368504832
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24) = 24
20525 lseek(3, 5368703488, SEEK_SET)    = 5368703488
20525 read(3, "\0\0\0\0", 4)            = 4
20525 lseek(3, 4096, SEEK_SET)          = 4096
20525 read(3, "A\1\0\0Q\1\0\0a\1\0\0hI\1\0v\5\4\0\0\0\0\0\0\0\0\0\0\0\335\315"...,
1024) = 1024
20525 lseek(3, 5368708608, SEEK_SET)    = 5368708608
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
512) = 512
20525 lseek(3, 5368705024, SEEK_SET)    = 5368705024
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
4096) = 4096
20525 lseek(3, 0, SEEK_SET)             = 0
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 1024, SEEK_SET)          = 1024
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 1048576, SEEK_SET)       = 1048576
20525 read(3, "\0\201\0\0\0\201\1\0\0\201\2\0\0\201\3\0\0\201\4\0\0\201\f\0\0\201\r\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 3072, SEEK_SET)          = 3072
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 7168, SEEK_SET)          = 7168
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 15360, SEEK_SET)         = 15360
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 31744, SEEK_SET)         = 31744
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 64512, SEEK_SET)         = 64512
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 8192, SEEK_SET)          = 8192
20525 read(3, "\2\200\0\0\2\200\1\0\2\200\2\0\2\200\3\0\2\200\4\0\2\200\f\0\2\200\r\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 65536, SEEK_SET)         = 65536
20525 read(3, "\20\200\0\0\20\200\1\0\20\200\2\0\20\200\3\0\20\200\4\0\20\200\f\0\20\200\r\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 32768, SEEK_SET)         = 32768
20525 read(3, "\10\200\0\0\10\200\1\0\10\200\2\0\10\200\3\0\10\200\4\0\10\200\f\0\10\200\r\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 131072, SEEK_SET)        = 131072
20525 read(3, " \200\0\0 \200\1\0 \200\2\0 \200\3\0 \200\4\0 \200\f\0
\200\r\0\0\0\0\0"..., 1024) = 1024
20525 lseek(3, 135168, SEEK_SET)        = 135168
20525 read(3, "!\200\0\0!\200\1\0!\200\2\0!\200\3\0!\200\4\0!\200\f\0!\200\r\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 139264, SEEK_SET)        = 139264
20525 read(3, "\"\200\0\0\"\200\1\0\"\200\2\0\"\200\3\0\"\200\4\0\"\200\f\0\"\200\r\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 393216, SEEK_SET)        = 393216
20525 read(3, "`\200\0\0`\200\1\0`\200\2\0`\200\3\0`\200\4\0`\200\f\0`\200\r\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 397312, SEEK_SET)        = 397312
20525 read(3, "a\200\0\0a\200\1\0a\200\2\0a\200\3\0a\200\4\0a\200\f\0a\200\r\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 401408, SEEK_SET)        = 401408
20525 read(3, "b\200\0\0b\200\1\0b\200\2\0b\200\3\0b\200\4\0b\200\f\0b\200\r\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 0, SEEK_SET)             = 0
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1377) = 1377
20525 lseek(3, 8192, SEEK_SET)          = 8192
20525 read(3, "\2\200\0\0\2\200\1\0\2\200\2\0\2\200\3\0\2\200\4\0\2\200\f\0\2\200\r\0\0\0\0\0"...,
1377) = 1377
20525 lseek(3, 65536, SEEK_SET)         = 65536
20525 read(3, "\20\200\0\0\20\200\1\0\20\200\2\0\20\200\3\0\20\200\4\0\20\200\f\0\20\200\r\0\0\0\0\0"...,
1377) = 1377
20525 lseek(3, 262144, SEEK_SET)        = 262144
20525 read(3, "@\200\0\0@\200\1\0@\200\2\0@\200\3\0@\200\4\0@\200\f\0@\200\r\0\0\0\0\0"...,
1377) = 1377
20525 lseek(3, 9728, SEEK_SET)          = 9728
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
512) = 512
20525 lseek(3, 18944, SEEK_SET)         = 18944
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
512) = 512
20525 lseek(3, 2048, SEEK_SET)          = 2048
20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
20525 lseek(3, 2097152, SEEK_SET)       = 2097152
20525 read(3, "\377\201\350\3\301\0\0\0bv\245Lbv\245L\30\246\237A\0\0\0\0\350\3\1\0\10\0\0\0"...,
1024) = 1024
20525 close(3)                          = 0
20525 open("/etc/filesystems", O_RDONLY) = -1 ENOENT (No such file or directory)
20525 open("/proc/filesystems", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea0d3000
20525 read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 313
20525 stat("/sbin/mount.fuseblk", 0x7fff0dd22560) = -1 ENOENT (No such
file or directory)
20525 mount("/dev/mapper/nintendo-backupos", "/mnt/backup/",
"fuseblk", MS_MGC_VAL, NULL) = -1 EBUSY (Device or resource busy)
20525 open("/proc/filesystems", O_RDONLY) = 4
20525 fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea0d2000
20525 read(4, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 313
20525 close(4)                          = 0
20525 munmap(0x7f5dea0d2000, 4096)      = 0
20525 close(3)                          = 0
20525 munmap(0x7f5dea0d3000, 4096)      = 0
20525 rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
20525 open("/usr/share/locale/en_IN/LC_MESSAGES/util-linux-ng.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
20525 open("/usr/share/locale/en/LC_MESSAGES/util-linux-ng.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
20525 open("/usr/share/locale-langpack/en_IN/LC_MESSAGES/util-linux-ng.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
20525 open("/usr/share/locale-langpack/en/LC_MESSAGES/util-linux-ng.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
20525 write(2, "mount: /dev/mapper/virtualizatio"..., 79) = 79
20525 write(2, "\n", 1)                 = 1
20525 readlink("/dev", 0x7fff0dd216b0, 4096) = -1 EINVAL (Invalid argument)
20525 readlink("/dev/mapper", 0x7fff0dd216b0, 4096) = -1 EINVAL
(Invalid argument)
20525 readlink("/dev/mapper/nintendo-backupos", 0x7fff0dd216b0, 4096)
= -1 EINVAL (Invalid argument)
20525 readlink("/mnt", 0x7fff0dd216c0, 4096) = -1 EINVAL (Invalid argument)
20525 readlink("/mnt/backup", 0x7fff0dd216c0, 4096) = -1 EINVAL
(Invalid argument)
20525 umask(077)                        = 022
20525 open("/etc/mtab", O_RDONLY)       = 3
20525 umask(022)                        = 077
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=586, ...}) = 0
20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea0d3000
20525 read(3, "/dev/sda1 / ext4 rw,errors=remou"..., 4096) = 586
20525 read(3, "", 4096)                 = 0
20525 close(3)                          = 0
20525 munmap(0x7f5dea0d3000, 4096)      = 0
20525 exit_group(32)                    = ?

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 15:06   ` Tapas Mishra
@ 2010-10-04 15:32     ` Tapas Mishra
  2010-10-04 15:37     ` Ray Morris
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 27+ messages in thread
From: Tapas Mishra @ 2010-10-04 15:32 UTC (permalink / raw)
  To: Phillip Susi; +Cc: LVM general discussion and development

On Mon, Oct 4, 2010 at 8:36 PM, Tapas Mishra <mightydreams@gmail.com> wrote:
> On Mon, Oct 4, 2010 at 8:16 PM, Phillip Susi <psusi@cfl.rr.com> wrote:
>> Perhaps you should start by reading the howto.
>
>
> Ok here is some output I feel I should mention
>
> "fuseblk", MS_MGC_VAL, NULL) = -1 EBUSY (Device or resource busy)

Here is the issue fuseblk I am not having any idea as why do this error occurs.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 15:06   ` Tapas Mishra
  2010-10-04 15:32     ` Tapas Mishra
@ 2010-10-04 15:37     ` Ray Morris
  2010-10-04 16:37     ` Alexander Skwar
  2010-10-04 20:03     ` Phillip Susi
  3 siblings, 0 replies; 27+ messages in thread
From: Ray Morris @ 2010-10-04 15:37 UTC (permalink / raw)
  To: LVM general discussion and development; +Cc: Phillip Susi

See kpartx
--
Ray Morris
support@bettercgi.com

Strongbox - The next generation in site security:
http://www.bettercgi.com/strongbox/

Throttlebox - Intelligent Bandwidth Control
http://www.bettercgi.com/throttlebox/

Strongbox / Throttlebox affiliate program:
http://www.bettercgi.com/affiliates/user/register.php


On 10/04/2010 10:06:07 AM, Tapas Mishra wrote:
> On Mon, Oct 4, 2010 at 8:16 PM, Phillip Susi <psusi@cfl.rr.com> wrote:
> > Perhaps you should start by reading the howto.
> 
> 
> Ok here is some output I feel I should mention
> 
> mount output is
> /dev/sda1 on / type ext4 (rw,errors=remount-ro)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> none on /sys type sysfs (rw,noexec,nosuid,nodev)
> none on /sys/fs/fuse/connections type fusectl (rw)
> none on /sys/kernel/debug type debugfs (rw)
> none on /sys/kernel/security type securityfs (rw)
> none on /dev type devtmpfs (rw,mode=0755)
> none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
> none on /dev/shm type tmpfs (rw,nosuid,nodev)
> none on /var/run type tmpfs (rw,nosuid,mode=0755)
> none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
> none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
> none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
> 
> nintendo is a volume group which holds these LVMs
> 
> 
> > 1. ls -l /mnt/backup
> 
>  ls -l /mnt/backup/
> total 0
> 
> 
> > 2. ls -l /dev/mapper
> 
> 
> crw-rw---- 1 root root  10, 59 2010-09-29 17:57 control
> brw-rw---- 1 root disk 251,  0 2010-10-04 13:12 nintendo-backupos
> brw-rw---- 1 root disk 251,  2 2010-10-04 13:57 nintendo-backupos1
> brw-rw---- 1 root disk 251,  3 2010-10-04 13:57 nintendo-backupos2
> brw-rw---- 1 root disk 251,  6 2010-10-04 18:56 nintendo-lvm1
> brw-rw---- 1 root disk 251,  1 2010-10-04 18:56 nintendo-lvm2
> brw-rw---- 1 root disk 251,  5 2010-10-04 18:56 nintendo-lvm3
> brw-rw---- 1 root disk 251,  4 2010-10-04 18:56 nintendo-lvm4
> 
> > 3. cat /proc/self/mountinfo
> 
> 15 19 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw
> 16 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw
> 17 19 0:5 / /dev rw,relatime - devtmpfs none
> rw,size=4086108k,nr_inodes=1021527,mode=755
> 18 17 0:12 / /dev/pts rw,nosuid,noexec,relatime - devpts none
> rw,gid=5,mode=620,ptmxmode=000
> 19 1 8:1 / / rw,relatime - ext4
> /dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6
> rw,errors=remount-ro,barrier=1,data=ordered
> 21 15 0:15 / /sys/fs/fuse/connections rw,relatime - fusectl none rw
> 22 15 0:7 / /sys/kernel/debug rw,relatime - debugfs none rw
> 23 15 0:10 / /sys/kernel/security rw,relatime - securityfs none rw
> 24 17 0:16 / /dev/shm rw,nosuid,nodev,relatime - tmpfs none rw
> 25 19 0:17 / /var/run rw,nosuid,relatime - tmpfs none rw,mode=755
> 26 19 0:18 / /var/lock rw,nosuid,nodev,noexec,relatime - tmpfs none rw
> 27 19 0:19 / /lib/init/rw rw,nosuid,relatime - tmpfs none rw,mode=755
> 
> > 4. cat /proc/self/mounts
> rootfs / rootfs rw 0 0
> none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
> none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
> none /dev devtmpfs  
> rw,relatime,size=4086108k,nr_inodes=1021527,mode=755 0 0
> none /dev/pts devpts  
> rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
> /dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6 / ext4
> rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
> none /sys/fs/fuse/connections fusectl rw,relatime 0 0
> none /sys/kernel/debug debugfs rw,relatime 0 0
> none /sys/kernel/security securityfs rw,relatime 0 0
> none /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
> none /var/run tmpfs rw,nosuid,relatime,mode=755 0 0
> none /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
> none /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
> 
> > 5. cat /proc/1/mountinfo
> 15 19 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw
> 16 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw
> 17 19 0:5 / /dev rw,relatime - devtmpfs none
> rw,size=4086108k,nr_inodes=1021527,mode=755
> 18 17 0:12 / /dev/pts rw,nosuid,noexec,relatime - devpts none
> rw,gid=5,mode=620,ptmxmode=000
> 19 1 8:1 / / rw,relatime - ext4
> /dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6
> rw,errors=remount-ro,barrier=1,data=ordered
> 21 15 0:15 / /sys/fs/fuse/connections rw,relatime - fusectl none rw
> 22 15 0:7 / /sys/kernel/debug rw,relatime - debugfs none rw
> 23 15 0:10 / /sys/kernel/security rw,relatime - securityfs none rw
> 24 17 0:16 / /dev/shm rw,nosuid,nodev,relatime - tmpfs none rw
> 25 19 0:17 / /var/run rw,nosuid,relatime - tmpfs none rw,mode=755
> 26 19 0:18 / /var/lock rw,nosuid,nodev,noexec,relatime - tmpfs none rw
> 27 19 0:19 / /lib/init/rw rw,nosuid,relatime - tmpfs none rw,mode=755
> 
> > 6. cat /proc/1/mounts
> rootfs / rootfs rw 0 0
> none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
> none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
> none /dev devtmpfs  
> rw,relatime,size=4086108k,nr_inodes=1021527,mode=755 0 0
> none /dev/pts devpts  
> rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
> /dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6 / ext4
> rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
> none /sys/fs/fuse/connections fusectl rw,relatime 0 0
> none /sys/kernel/debug debugfs rw,relatime 0 0
> none /sys/kernel/security securityfs rw,relatime 0 0
> none /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
> none /var/run tmpfs rw,nosuid,relatime,mode=755 0 0
> none /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
> none /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
> 
> strace -f -ooutout mount /dev/mapper/nintendo-backupos /mnt/backup
> >
> I got on terminal
> mount: /dev/mapper/nintendo-backupos already mounted or /mnt/backup/  
> busy
> 
> 
> and contents of outout
> are
> 
> 
> 
> 20525 execve("/bin/mount", ["mount", "/dev/mapper/nintendo-backu"...,
> "/mnt/backup/"], [/* 18 vars */]) = 0
> 20525 brk(0)                            = 0x18f3000
> 20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or  
> directory)
> 20525 mmap(NULL, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea240000
> 20525 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or  
> directory)
> 20525 open("/etc/ld.so.cache", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=34118, ...}) = 0
> 20525 mmap(NULL, 34118, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea237000
> 20525 close(3)                          = 0
> 20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or  
> directory)
> 20525 open("/lib/libblkid.so.1", O_RDONLY) = 3
> 20525 read(3,  
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@X\0\0\0\0\0\0"...,
> 832) = 832
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=126536, ...}) = 0
> 20525 mmap(NULL, 2221608, PROT_READ|PROT_EXEC,
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de9e04000
> 20525 mprotect(0x7f5de9e20000, 2093056, PROT_NONE) = 0
> 20525 mmap(0x7f5dea01f000, 16384, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f5dea01f000
> 20525 close(3)                          = 0
> 20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or  
> directory)
> 20525 open("/lib/libuuid.so.1", O_RDONLY) = 3
> 20525 read(3,  
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\25\0\0\0\0\0\0"...,
> 832) = 832
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=19008, ...}) = 0
> 20525 mmap(NULL, 2113920, PROT_READ|PROT_EXEC,
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de9bff000
> 20525 mprotect(0x7f5de9c03000, 2093056, PROT_NONE) = 0
> 20525 mmap(0x7f5de9e02000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f5de9e02000
> 20525 close(3)                          = 0
> 20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or  
> directory)
> 20525 open("/lib/libselinux.so.1", O_RDONLY) = 3
> 20525 read(3,  
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20Y\0\0\0\0\0\0"...,
> 832) = 832
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=117592, ...}) = 0
> 20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea236000
> 20525 mmap(NULL, 2217480, PROT_READ|PROT_EXEC,
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de99e1000
> 20525 mprotect(0x7f5de99fd000, 2093056, PROT_NONE) = 0
> 20525 mmap(0x7f5de9bfc000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f5de9bfc000
> 20525 mmap(0x7f5de9bfe000, 1544, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5de9bfe000
> 20525 close(3)                          = 0
> 20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or  
> directory)
> 20525 open("/lib/libsepol.so.1", O_RDONLY) = 3
> 20525 read(3,  
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340D\0\0\0\0\0\0"...,
> 832) = 832
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=244576, ...}) = 0
> 20525 mmap(NULL, 2341536, PROT_READ|PROT_EXEC,
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de97a5000
> 20525 mprotect(0x7f5de97df000, 2097152, PROT_NONE) = 0
> 20525 mmap(0x7f5de99df000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0x7f5de99df000
> 20525 close(3)                          = 0
> 20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or  
> directory)
> 20525 open("/lib/libc.so.6", O_RDONLY)  = 3
> 20525 read(3,  
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\355\1\0\0\0\0\0"...,
> 832) = 832
> 20525 fstat(3, {st_mode=S_IFREG|0755, st_size=1568136, ...}) = 0
> 20525 mmap(NULL, 3676200, PROT_READ|PROT_EXEC,
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de9423000
> 20525 mprotect(0x7f5de959b000, 2097152, PROT_NONE) = 0
> 20525 mmap(0x7f5de979b000, 20480, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x178000) = 0x7f5de979b000
> 20525 mmap(0x7f5de97a0000, 18472, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5de97a0000
> 20525 close(3)                          = 0
> 20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or  
> directory)
> 20525 open("/lib/libdl.so.2", O_RDONLY) = 3
> 20525 read(3,  
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\r\0\0\0\0\0\0"...,
> 832) = 832
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=14696, ...}) = 0
> 20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea235000
> 20525 mmap(NULL, 2109696, PROT_READ|PROT_EXEC,
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de921f000
> 20525 mprotect(0x7f5de9221000, 2097152, PROT_NONE) = 0
> 20525 mmap(0x7f5de9421000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f5de9421000
> 20525 close(3)                          = 0
> 20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea234000
> 20525 mmap(NULL, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea232000
> 20525 arch_prctl(ARCH_SET_FS, 0x7f5dea2327e0) = 0
> 20525 mprotect(0x7f5de9421000, 4096, PROT_READ) = 0
> 20525 mprotect(0x7f5de979b000, 16384, PROT_READ) = 0
> 20525 mprotect(0x7f5de99df000, 4096, PROT_READ) = 0
> 20525 mprotect(0x7f5de9bfc000, 4096, PROT_READ) = 0
> 20525 mprotect(0x7f5de9e02000, 4096, PROT_READ) = 0
> 20525 mprotect(0x7f5dea01f000, 12288, PROT_READ) = 0
> 20525 mprotect(0x612000, 4096, PROT_READ) = 0
> 20525 mprotect(0x7f5dea242000, 4096, PROT_READ) = 0
> 20525 munmap(0x7f5dea237000, 34118)     = 0
> 20525 statfs("/selinux", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096,
> f_blocks=2402873, f_bfree=1379180, f_bavail=1257120, f_files=610800,
> f_ffree=527078, f_fsid={-90057489, -1743393107}, f_namelen=255,
> f_frsize=4096}) = 0
> 20525 brk(0)                            = 0x18f3000
> 20525 brk(0x1914000)                    = 0x1914000
> 20525 open("/proc/filesystems", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> 20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea23f000
> 20525 read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 313
> 20525 read(3, "", 1024)                 = 0
> 20525 close(3)                          = 0
> 20525 munmap(0x7f5dea23f000, 4096)      = 0
> 20525 open("/usr/lib/locale/locale-archive", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> 20525 open("/usr/share/locale/locale.alias", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
> 20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea23f000
> 20525 read(3, "# Locale name alias data base.\n#"..., 4096) = 2570
> 20525 read(3, "", 4096)                 = 0
> 20525 close(3)                          = 0
> 20525 munmap(0x7f5dea23f000, 4096)      = 0
> 20525 open("/usr/lib/locale/en_IN/LC_IDENTIFICATION", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=458, ...}) = 0
> 20525 mmap(NULL, 458, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23f000
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_MEASUREMENT", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
> 20525 mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23e000
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_TELEPHONE", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=53, ...}) = 0
> 20525 mmap(NULL, 53, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23d000
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_ADDRESS", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=103, ...}) = 0
> 20525 mmap(NULL, 103, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23c000
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_NAME", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=72, ...}) = 0
> 20525 mmap(NULL, 72, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23b000
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_PAPER", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
> 20525 mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea23a000
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_MESSAGES", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_MESSAGES/SYS_LC_MESSAGES",  
> O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=53, ...}) = 0
> 20525 mmap(NULL, 53, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea239000
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_MONETARY", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=294, ...}) = 0
> 20525 mmap(NULL, 294, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea238000
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_COLLATE", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=1170770, ...}) = 0
> 20525 mmap(NULL, 1170770, PROT_READ, MAP_PRIVATE, 3, 0) =  
> 0x7f5dea114000
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_TIME", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=2578, ...}) = 0
> 20525 mmap(NULL, 2578, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea237000
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_NUMERIC", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
> 20525 mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea113000
> 20525 close(3)                          = 0
> 20525 open("/usr/lib/locale/en_IN/LC_CTYPE", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=256324, ...}) = 0
> 20525 mmap(NULL, 256324, PROT_READ, MAP_PRIVATE, 3, 0) =  
> 0x7f5dea0d4000
> 20525 close(3)                          = 0
> 20525 umask(022)                        = 022
> 20525 open("/dev/null", O_RDWR)         = 3
> 20525 close(3)                          = 0
> 20525 getuid()                          = 0
> 20525 geteuid()                         = 0
> 20525 stat("/dev/mapper/nintendo-backupos", {st_mode=S_IFBLK|0660,
> st_rdev=makedev(251, 0), ...}) = 0
> 20525 readlink("/dev", 0x7fff0dd219b0, 4096) = -1 EINVAL (Invalid  
> argument)
> 20525 readlink("/dev/mapper", 0x7fff0dd219b0, 4096) = -1 EINVAL
> (Invalid argument)
> 20525 readlink("/dev/mapper/nintendo-backupos", 0x7fff0dd219b0, 4096)
> = -1 EINVAL (Invalid argument)
> 20525 rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
> 20525 open("/dev/mapper/nintendo-backupos", O_RDONLY) = 3
> 20525 fadvise64(3, 0, 0, POSIX_FADV_RANDOM) = 0
> 20525 fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(251, 0), ...})  
> = 0
> 20525 uname({sys="Linux", node="openworld", ...}) = 0
> 20525 ioctl(3, BLKGETSIZE64, 0x18f6f60) = 0
> 20525 lseek(3, 5368643584, SEEK_SET)    = 5368643584
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 64) = 64
> 20525 lseek(3, 5368700928, SEEK_SET)    = 5368700928
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 64) = 64
> 20525 lseek(3, 0, SEEK_SET)             = 0
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 64) = 64
> 20525 lseek(3, 4096, SEEK_SET)          = 4096
> 20525 read(3,  
> "A\1\0\0Q\1\0\0a\1\0\0hI\1\0v\5\4\0\0\0\0\0\0\0\0\0\0\0\335\315"...,
> 64) = 64
> 20525 lseek(3, 5368708608, SEEK_SET)    = 5368708608
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 40) = 40
> 20525 lseek(3, 5368577536, SEEK_SET)    = 5368577536
> 20525 read(3,  
> "\350Jz\245\33\177\0\0\350\367y\245\33\177\0\0\370\370x\245\33\177\0\0h\245w\245\33\177\0\0"...,
> 40) = 40
> 20525 lseek(3, 5368708096, SEEK_SET)    = 5368708096
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 48) = 48
> 20525 lseek(3, 5368708608, SEEK_SET)    = 5368708608
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 51) = 51
> 20525 lseek(3, 5368708608, SEEK_SET)    = 5368708608
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 292) = 292
> 20525 lseek(3, 5368676864, SEEK_SET)    = 5368676864
> 20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24)  
> = 24
> 20525 lseek(3, 5368578560, SEEK_SET)    = 5368578560
> 20525 read(3,  
> "\0\37F\245\33\177\0\0\240N\320\220\33\177\0\0\f\0\0\0\5\0\0\0",
> 24) = 24
> 20525 lseek(3, 5368578048, SEEK_SET)    = 5368578048
> 20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0", 24)  
> = 24
> 20525 lseek(3, 5368504832, SEEK_SET)    = 5368504832
> 20525 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24)  
> = 24
> 20525 lseek(3, 5368703488, SEEK_SET)    = 5368703488
> 20525 read(3, "\0\0\0\0", 4)            = 4
> 20525 lseek(3, 4096, SEEK_SET)          = 4096
> 20525 read(3,  
> "A\1\0\0Q\1\0\0a\1\0\0hI\1\0v\5\4\0\0\0\0\0\0\0\0\0\0\0\335\315"...,
> 1024) = 1024
> 20525 lseek(3, 5368708608, SEEK_SET)    = 5368708608
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 512) = 512
> 20525 lseek(3, 5368705024, SEEK_SET)    = 5368705024
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 4096) = 4096
> 20525 lseek(3, 0, SEEK_SET)             = 0
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 1024, SEEK_SET)          = 1024
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 1048576, SEEK_SET)       = 1048576
> 20525 read(3,  
> "\0\201\0\0\0\201\1\0\0\201\2\0\0\201\3\0\0\201\4\0\0\201\f\0\0\201\r\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 3072, SEEK_SET)          = 3072
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 7168, SEEK_SET)          = 7168
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 15360, SEEK_SET)         = 15360
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 31744, SEEK_SET)         = 31744
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 64512, SEEK_SET)         = 64512
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 8192, SEEK_SET)          = 8192
> 20525 read(3,  
> "\2\200\0\0\2\200\1\0\2\200\2\0\2\200\3\0\2\200\4\0\2\200\f\0\2\200\r\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 65536, SEEK_SET)         = 65536
> 20525 read(3,  
> "\20\200\0\0\20\200\1\0\20\200\2\0\20\200\3\0\20\200\4\0\20\200\f\0\20\200\r\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 32768, SEEK_SET)         = 32768
> 20525 read(3,  
> "\10\200\0\0\10\200\1\0\10\200\2\0\10\200\3\0\10\200\4\0\10\200\f\0\10\200\r\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 131072, SEEK_SET)        = 131072
> 20525 read(3, " \200\0\0 \200\1\0 \200\2\0 \200\3\0 \200\4\0 \200\f\0
> \200\r\0\0\0\0\0"..., 1024) = 1024
> 20525 lseek(3, 135168, SEEK_SET)        = 135168
> 20525 read(3,  
> "!\200\0\0!\200\1\0!\200\2\0!\200\3\0!\200\4\0!\200\f\0!\200\r\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 139264, SEEK_SET)        = 139264
> 20525 read(3,  
> "\"\200\0\0\"\200\1\0\"\200\2\0\"\200\3\0\"\200\4\0\"\200\f\0\"\200\r\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 393216, SEEK_SET)        = 393216
> 20525 read(3,  
> "`\200\0\0`\200\1\0`\200\2\0`\200\3\0`\200\4\0`\200\f\0`\200\r\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 397312, SEEK_SET)        = 397312
> 20525 read(3,  
> "a\200\0\0a\200\1\0a\200\2\0a\200\3\0a\200\4\0a\200\f\0a\200\r\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 401408, SEEK_SET)        = 401408
> 20525 read(3,  
> "b\200\0\0b\200\1\0b\200\2\0b\200\3\0b\200\4\0b\200\f\0b\200\r\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 0, SEEK_SET)             = 0
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1377) = 1377
> 20525 lseek(3, 8192, SEEK_SET)          = 8192
> 20525 read(3,  
> "\2\200\0\0\2\200\1\0\2\200\2\0\2\200\3\0\2\200\4\0\2\200\f\0\2\200\r\0\0\0\0\0"...,
> 1377) = 1377
> 20525 lseek(3, 65536, SEEK_SET)         = 65536
> 20525 read(3,  
> "\20\200\0\0\20\200\1\0\20\200\2\0\20\200\3\0\20\200\4\0\20\200\f\0\20\200\r\0\0\0\0\0"...,
> 1377) = 1377
> 20525 lseek(3, 262144, SEEK_SET)        = 262144
> 20525 read(3,  
> "@\200\0\0@\200\1\0@\200\2\0@\200\3\0@\200\4\0@\200\f\0@\200\r\0\0\0\0\0"...,
> 1377) = 1377
> 20525 lseek(3, 9728, SEEK_SET)          = 9728
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 512) = 512
> 20525 lseek(3, 18944, SEEK_SET)         = 18944
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 512) = 512
> 20525 lseek(3, 2048, SEEK_SET)          = 2048
> 20525 read(3,  
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1024) = 1024
> 20525 lseek(3, 2097152, SEEK_SET)       = 2097152
> 20525 read(3,  
> "\377\201\350\3\301\0\0\0bv\245Lbv\245L\30\246\237A\0\0\0\0\350\3\1\0\10\0\0\0"...,
> 1024) = 1024
> 20525 close(3)                          = 0
> 20525 open("/etc/filesystems", O_RDONLY) = -1 ENOENT (No such file or  
> directory)
> 20525 open("/proc/filesystems", O_RDONLY) = 3
> 20525 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> 20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea0d3000
> 20525 read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 313
> 20525 stat("/sbin/mount.fuseblk", 0x7fff0dd22560) = -1 ENOENT (No such
> file or directory)
> 20525 mount("/dev/mapper/nintendo-backupos", "/mnt/backup/",
> "fuseblk", MS_MGC_VAL, NULL) = -1 EBUSY (Device or resource busy)
> 20525 open("/proc/filesystems", O_RDONLY) = 4
> 20525 fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> 20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea0d2000
> 20525 read(4, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 313
> 20525 close(4)                          = 0
> 20525 munmap(0x7f5dea0d2000, 4096)      = 0
> 20525 close(3)                          = 0
> 20525 munmap(0x7f5dea0d3000, 4096)      = 0
> 20525 rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) =  
> 0
> 20525 open("/usr/share/locale/en_IN/LC_MESSAGES/util-linux-ng.mo",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> 20525 open("/usr/share/locale/en/LC_MESSAGES/util-linux-ng.mo",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> 20525  
> open("/usr/share/locale-langpack/en_IN/LC_MESSAGES/util-linux-ng.mo",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> 20525  
> open("/usr/share/locale-langpack/en/LC_MESSAGES/util-linux-ng.mo",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> 20525 write(2, "mount: /dev/mapper/virtualizatio"..., 79) = 79
> 20525 write(2, "\n", 1)                 = 1
> 20525 readlink("/dev", 0x7fff0dd216b0, 4096) = -1 EINVAL (Invalid  
> argument)
> 20525 readlink("/dev/mapper", 0x7fff0dd216b0, 4096) = -1 EINVAL
> (Invalid argument)
> 20525 readlink("/dev/mapper/nintendo-backupos", 0x7fff0dd216b0, 4096)
> = -1 EINVAL (Invalid argument)
> 20525 readlink("/mnt", 0x7fff0dd216c0, 4096) = -1 EINVAL (Invalid  
> argument)
> 20525 readlink("/mnt/backup", 0x7fff0dd216c0, 4096) = -1 EINVAL
> (Invalid argument)
> 20525 umask(077)                        = 022
> 20525 open("/etc/mtab", O_RDONLY)       = 3
> 20525 umask(022)                        = 077
> 20525 fstat(3, {st_mode=S_IFREG|0644, st_size=586, ...}) = 0
> 20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea0d3000
> 20525 read(3, "/dev/sda1 / ext4 rw,errors=remou"..., 4096) = 586
> 20525 read(3, "", 4096)                 = 0
> 20525 close(3)                          = 0
> 20525 munmap(0x7f5dea0d3000, 4096)      = 0
> 20525 exit_group(32)                    = ?
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> 
> 

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 15:06   ` Tapas Mishra
  2010-10-04 15:32     ` Tapas Mishra
  2010-10-04 15:37     ` Ray Morris
@ 2010-10-04 16:37     ` Alexander Skwar
  2010-10-04 17:33       ` Tapas Mishra
  2010-10-04 20:03     ` Phillip Susi
  3 siblings, 1 reply; 27+ messages in thread
From: Alexander Skwar @ 2010-10-04 16:37 UTC (permalink / raw)
  To: LVM general discussion and development; +Cc: Phillip Susi

Hi!

2010/10/4 Tapas Mishra <mightydreams@gmail.com>

[…]
> 20525 execve("/bin/mount", ["mount", "/dev/mapper/nintendo-backu"...,
"/mnt/backup/"], [/* 18 vars */]) = 0
[…]

Is that a typo "/dev/mapper/nintendo-backu"? If it is, or if it's just
truncated output, what kind of filesystem is on "/dev/mapper/nintendo-backu"?


Regards,
Alexander
--
↯    Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/     ↯
↯ Chat (Jabber/Google Talk) ↣ a.skwar@gmail.com , AIM: alexws77  ↯

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 16:37     ` Alexander Skwar
@ 2010-10-04 17:33       ` Tapas Mishra
  2010-10-04 18:30         ` Alexander Skwar
  0 siblings, 1 reply; 27+ messages in thread
From: Tapas Mishra @ 2010-10-04 17:33 UTC (permalink / raw)
  To: LVM general discussion and development

It was a type error
on this lvm I created a filesystem in cfdisk whose type is 83 and
another whose type is 82.
On Mon, Oct 4, 2010 at 10:07 PM, Alexander Skwar
<alexanders.mailinglists+nospam@gmail.com> wrote:
> Hi!
>
> 2010/10/4 Tapas Mishra <mightydreams@gmail.com>
>
> […]
>> 20525 execve("/bin/mount", ["mount", "/dev/mapper/nintendo-backu"...,
> "/mnt/backup/"], [/* 18 vars */]) = 0
> […]
>
> Is that a typo "/dev/mapper/nintendo-backu"? If it is, or if it's just
> truncated output, what kind of filesystem is on "/dev/mapper/nintendo-backu"?
>
>
> Regards,
> Alexander
> --
> ↯    Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/     ↯
> ↯ Chat (Jabber/Google Talk) ↣ a.skwar@gmail.com , AIM: alexws77  ↯
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 17:33       ` Tapas Mishra
@ 2010-10-04 18:30         ` Alexander Skwar
  2010-10-04 19:08           ` Tapas Mishra
  0 siblings, 1 reply; 27+ messages in thread
From: Alexander Skwar @ 2010-10-04 18:30 UTC (permalink / raw)
  To: LVM general discussion and development

Hi.

2010/10/4 Tapas Mishra <mightydreams@gmail.com>:
> It was a type error
> on this lvm I created a filesystem in cfdisk whose type is 83 and
> another whose type is 82.

Okay. In cfdisk, you don't create filesystems. And cfdisk is
of no use for dealing with LVM (besides maybe creating
partitions which have to be made PVs with pvcreate).

Hence the question: What filesystem is on this lv? And I'd
like to restate the advice from someone else:

   Read the howto!

Alexander
--
↯    Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/     ↯
↯ Chat (Jabber/Google Talk) ↣ a.skwar@gmail.com , AIM: alexws77  ↯

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 18:30         ` Alexander Skwar
@ 2010-10-04 19:08           ` Tapas Mishra
  2010-10-04 19:10             ` Tapas Mishra
                               ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Tapas Mishra @ 2010-10-04 19:08 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Oct 5, 2010 at 12:00 AM, Alexander Skwar
<alexanders.mailinglists+nospam@gmail.com> wrote:
> Okay. In cfdisk, you don't create filesystems. And cfdisk is
> of no use for dealing with LVM (besides maybe creating
> partitions which have to be made PVs with pvcreate).
I created partitions with cfdisk and the one of the partition is
partition number 83 I made it and another is 82 which is swap space.


> Hence the question: What filesystem is on this lv?
I was searching what is the code 83 corresponds to that I could not find
because if I remember 83,84 like that it was used for ext3/etx4 but
when I used cfdisk
i could not find a hex code corresponding to ext3,ext4.
> And I'd
> like to restate the advice from someone else:
>
> � Read the howto!
Well what exactly ?

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 19:08           ` Tapas Mishra
@ 2010-10-04 19:10             ` Tapas Mishra
  2010-10-04 19:20               ` Tapas Mishra
  2010-10-04 19:57             ` Alexander Skwar
  2010-10-05  6:33             ` Stuart D. Gathman
  2 siblings, 1 reply; 27+ messages in thread
From: Tapas Mishra @ 2010-10-04 19:10 UTC (permalink / raw)
  To: LVM general discussion and development

> On Tue, Oct 5, 2010 at 12:00 AM, Alexander Skwar
> <alexanders.mailinglists+nospam@gmail.com> wrote:
>> like to restate the advice from someone else:
>>
>> � Read the howto!
I thoroughly read
http://www.howtoforge.com/linux_lvm
http://tldp.org/HOWTO/LVM-HOWTO/
then I asked this question also if you look above strace log fuseblk
is some thing which is giving error.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 19:10             ` Tapas Mishra
@ 2010-10-04 19:20               ` Tapas Mishra
  0 siblings, 0 replies; 27+ messages in thread
From: Tapas Mishra @ 2010-10-04 19:20 UTC (permalink / raw)
  To: LVM general discussion and development

>> On Tue, Oct 5, 2010 at 12:00 AM, Alexander Skwar
>> <alexanders.mailinglists+nospam@gmail.com> wrote:
>>> like to restate the advice from someone else:
>>>
>>> � Read the howto!
> I thoroughly read
> http://www.howtoforge.com/linux_lvm
> http://tldp.org/HOWTO/LVM-HOWTO/
> then I asked this question also if you look above strace log fuseblk
> is some thing which is giving error.
>
I am not looking to convert an LVM
mkfs.ext3 /dev/fileserver/share
to ext3 file system with above command.
Check this thread
https://www.redhat.com/archives/virt-tools-list/2010-October/msg00011.html
I am looking for very specific information.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 19:08           ` Tapas Mishra
  2010-10-04 19:10             ` Tapas Mishra
@ 2010-10-04 19:57             ` Alexander Skwar
  2010-10-05  2:40               ` Tapas Mishra
  2010-10-05  6:33             ` Stuart D. Gathman
  2 siblings, 1 reply; 27+ messages in thread
From: Alexander Skwar @ 2010-10-04 19:57 UTC (permalink / raw)
  To: LVM general discussion and development

Hi.

2010/10/4 Tapas Mishra <mightydreams@gmail.com>:
> On Tue, Oct 5, 2010 at 12:00 AM, Alexander Skwar
> <alexanders.mailinglists+nospam@gmail.com> wrote:
>> Okay. In cfdisk, you don't create filesystems. And cfdisk is
>> of no use for dealing with LVM (besides maybe creating
>> partitions which have to be made PVs with pvcreate).
> I created partitions with cfdisk and the one of the partition is
> partition number 83 I made it and another is 82 which is swap space.

Yes. The question was, what filesystem you've put
on the lv. cfdisk is (basically) of no use for LVM. And
even in old style partitioning, cfdisk isn't used for
creating filesystems.

>> Hence the question: What filesystem is on this lv?
> I was searching what is the code 83 corresponds to

-> Linux.

> that I could not find

You're using cfdisk? It shows they types, when you hit
"t" (for Types).

-> http://www.imgzzz.com/pic/1286222062

> because if I remember 83,84 like that it was used for ext3/etx4 but
> when I used cfdisk

83 -> Linux
84 -> OS/2 hidden C: drive

> i could not find a hex code corresponding to ext3,ext4.

Of course not. Partitiontypes don't have that much to
do with filesystem.

>> And I'd
>> like to restate the advice from someone else:
>>
>>   Read the howto!
> Well what exactly ?
>

The LVM howto.

> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

---> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 
Alexander
--
↯    Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/     ↯
↯ Chat (Jabber/Google Talk) ↣ a.skwar@gmail.com , AIM: alexws77  ↯

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 15:06   ` Tapas Mishra
                       ` (2 preceding siblings ...)
  2010-10-04 16:37     ` Alexander Skwar
@ 2010-10-04 20:03     ` Phillip Susi
  2010-10-05  2:30       ` Tapas Mishra
  3 siblings, 1 reply; 27+ messages in thread
From: Phillip Susi @ 2010-10-04 20:03 UTC (permalink / raw)
  To: Tapas Mishra; +Cc: LVM general discussion and development

On 10/4/2010 11:06 AM, Tapas Mishra wrote:
> I got on terminal
> mount: /dev/mapper/nintendo-backupos already mounted or /mnt/backup/ busy

Does /mnt/backup exist?

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 20:03     ` Phillip Susi
@ 2010-10-05  2:30       ` Tapas Mishra
  0 siblings, 0 replies; 27+ messages in thread
From: Tapas Mishra @ 2010-10-05  2:30 UTC (permalink / raw)
  To: Phillip Susi; +Cc: LVM general discussion and development

On Tue, Oct 5, 2010 at 1:33 AM, Phillip Susi <psusi@cfl.rr.com> wrote:
>
> Does /mnt/backup exist?
Yes that exist and when ever I am trying to mount it gives me error
resource busy .
I have given all the steps in above message.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 19:57             ` Alexander Skwar
@ 2010-10-05  2:40               ` Tapas Mishra
  2010-10-05  3:31                 ` Ray Morris
  2010-10-05  6:24                 ` Stuart D. Gathman
  0 siblings, 2 replies; 27+ messages in thread
From: Tapas Mishra @ 2010-10-05  2:40 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Oct 5, 2010 at 1:27 AM, Alexander Skwar
<alexanders.mailinglists+nospam@gmail.com> wrote:
>
> Yes. The question was, what filesystem you've put
> on the lv. cfdisk is (basically) of no use for LVM. And
> even in old style partitioning, cfdisk isn't used for
> creating filesystems.
Are you referring to ext3/ext4 type of file system.
>>>
>>> � Read the howto!
>> Well what exactly ?
>>
>
> The LVM howto.
I have read it but what I am asking is not mentioned.
I am breaking an LVM which is not having any filesystem on it into 2 parts.
One will be used as root of type ext4 and another part will be used as
swap filesystem.
How can this be done.
mkfs.ext3 and mkswapfs commands exist but how to I break the LVM in to 2 parts.
I am not asking to extend or move or resize or taking snapshot of the
LVM which is given in your LVM Howto.
If you used virt-manager it does that
any user space program will show you one LVM but inside it will be
having ext3 and swap partition within same LVM.
I do not want to have different LVM for swap and ext3.
I want both these filesystems to co exist.
This thing is not mentioned in the LVM How to.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-05  2:40               ` Tapas Mishra
@ 2010-10-05  3:31                 ` Ray Morris
  2010-10-05  5:33                   ` Tapas Mishra
  2010-10-05  6:24                 ` Stuart D. Gathman
  1 sibling, 1 reply; 27+ messages in thread
From: Ray Morris @ 2010-10-05  3:31 UTC (permalink / raw)
  To: LVM general discussion and development

> mkfs.ext3 and mkswapfs commands exist but how to I break the LVM in  
> to 2 parts.
> I am not asking to extend or move or resize or taking snapshot of the
> LVM which is given in your LVM Howto.
> If you used virt-manager it does that
> any user space program will show you one LVM but inside it will be
> having ext3 and swap partition within same LVM.

partitions, just like any other block device.
Preferably use parted as opposed to fdisk, as
fdisk can support only up to 2 TB.
--
Ray Morris
support@bettercgi.com

Strongbox - The next generation in site security:
http://www.bettercgi.com/strongbox/

Throttlebox - Intelligent Bandwidth Control
http://www.bettercgi.com/throttlebox/

Strongbox / Throttlebox affiliate program:
http://www.bettercgi.com/affiliates/user/register.php


On 10/04/2010 09:40:57 PM, Tapas Mishra wrote:
> On Tue, Oct 5, 2010 at 1:27 AM, Alexander Skwar
> <alexanders.mailinglists+nospam@gmail.com> wrote:
> >
> > Yes. The question was, what filesystem you've put
> > on the lv. cfdisk is (basically) of no use for LVM. And
> > even in old style partitioning, cfdisk isn't used for
> > creating filesystems.
> Are you referring to ext3/ext4 type of file system.
> >>>
> >>> � Read the howto!
> >> Well what exactly ?
> >>
> >
> > The LVM howto.
> I have read it but what I am asking is not mentioned.
> I am breaking an LVM which is not having any filesystem on it into 2  
> parts.
> One will be used as root of type ext4 and another part will be used as
> swap filesystem.
> How can this be done.
> mkfs.ext3 and mkswapfs commands exist but how to I break the LVM in  
> to 2 parts.
> I am not asking to extend or move or resize or taking snapshot of the
> LVM which is given in your LVM Howto.
> If you used virt-manager it does that
> any user space program will show you one LVM but inside it will be
> having ext3 and swap partition within same LVM.
> I do not want to have different LVM for swap and ext3.
> I want both these filesystems to co exist.
> This thing is not mentioned in the LVM How to.
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> 
> 

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-05  3:31                 ` Ray Morris
@ 2010-10-05  5:33                   ` Tapas Mishra
  2010-10-05  6:32                     ` Alexander Skwar
  2010-10-05 14:40                     ` Stuart D. Gathman
  0 siblings, 2 replies; 27+ messages in thread
From: Tapas Mishra @ 2010-10-05  5:33 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Oct 5, 2010 at 9:01 AM, Ray Morris <support@bettercgi.com> wrote:
>
> partitions, just like any other block device.
> Preferably use parted as opposed to fdisk, as
> fdisk can support only up to 2 TB.

You mean to say within the LVM if I use parted that way I will be able
to create two different filesystems existing together.
Until now what ever I came across internet is mkfs.ext3 and mkswapfs but
they work on two different LVM and will convert those LVM into ext3
and swap respectively.
I want to break one LVM into 2 one of which I want to populate with a
root filesystem
and another with swap.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-05  2:40               ` Tapas Mishra
  2010-10-05  3:31                 ` Ray Morris
@ 2010-10-05  6:24                 ` Stuart D. Gathman
  2010-10-05  7:30                   ` Tapas Mishra
  1 sibling, 1 reply; 27+ messages in thread
From: Stuart D. Gathman @ 2010-10-05  6:24 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, 5 Oct 2010, Tapas Mishra wrote:

> I have read it but what I am asking is not mentioned.
> I am breaking an LVM which is not having any filesystem on it into 2 parts.

"LVM" stands for Logical Volume Manager. You can't break it up.  It is a set
of software.  (Well, you can, but then it wouldn't work so good.)  Some things
you might be trying to say:

1) a "PV" is a Physical Volume.  You add these to to a Volume Group, and
   once you do that you can do one of the following.

2) a "VG" is a Volume Group.  This you can "break up" into many logical
   volumes.  Use the lvcreate command to create logical volumes, one
   for your filesystem and another for your swap.

3) an "LV" is a Logical Volume.  An advanced user might want to use an
   LV to simulate a disk, putting a partitional table on it.  Usually
   this is done by using the LV as a virtual disk for a Virtual Machine,
   which then partitions and uses the virtual disk as it pleases.
   You could also use fdisk/parted to partition an LV, and kparted to
   make the partitions available as separate block devices.

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-05  5:33                   ` Tapas Mishra
@ 2010-10-05  6:32                     ` Alexander Skwar
  2010-10-05 15:41                       ` K. Richard Pixley
  2010-10-05 14:40                     ` Stuart D. Gathman
  1 sibling, 1 reply; 27+ messages in thread
From: Alexander Skwar @ 2010-10-05  6:32 UTC (permalink / raw)
  To: LVM general discussion and development

hi.

You seem to be confused about the steps that are required for
"getting a directory to store stuff" on Linux. Let me give you a
basic workflow:

In old fashioned partition setup:

a) Get a storage device (hard disk, SSD, FC, iSCSI, ...)
 -> Result: Device "file" like /dev/sda
b) Split the storage device into chunks of wanted size ("partitions")
 using tools like fdisk, cfdisk, parted === REQUIRED TO BE DONE!
 -> Result: Device "files" like /dev/sda1, /dev/sda3, /dev/sda15
f) On those partitions, create a filesystem (eg. mkfs.ext3) or swap (mkswap)
g) Mount

In LVM, you'd do:

a) Get a storage device (hard disk, SSD, FC, iSCSI, ...)
 -> Result: Device "file" like /dev/sda
b) Split the storage device into chunks of wanted size ("partitions")
 using tools like fdisk, cfdisk, parted === COMPLETELY OPTIONAL!
 -> Result: Device "files" like /dev/sda1, /dev/sda3, /dev/sda15
c) "Declare" the "storage spot" (/dev/sda, /dev/sda3, ...) as physical
 volumes (pv) using pvcreate
d) Create a volume group (vg), using this/these pv(s)
e) On a vg, create logical volumes (lv) using lvcreate
f) On these/this lv, create a filesystem (eg. mkfs.ext3) or swap (mkswap)
g) mount

Steps a), f) and g) are identical in old fashioned way and LVM. Step
b) is required in partitioning way and optional in LVM setup.

It's also identical, that you only create ONE (1) filesystem on any
ONE (1) partition or lv. You do *NOT* create two or more filesystems
on one partition/lv (it's doable, but *EXTREMELY* unusual).

But that's also outlined in the LVM howto... Chapter 11.
http://tldp.org/HOWTO/LVM-HOWTO/commontask.html

You really should read it...

Alexander

2010/10/5 Tapas Mishra <mightydreams@gmail.com>:
> On Tue, Oct 5, 2010 at 9:01 AM, Ray Morris <support@bettercgi.com> wrote:
>>
>> partitions, just like any other block device.
>> Preferably use parted as opposed to fdisk, as
>> fdisk can support only up to 2 TB.
>
> You mean to say within the LVM if I use parted that way I will be able
> to create two different filesystems existing together.
> Until now what ever I came across internet is mkfs.ext3 and mkswapfs but
> they work on two different LVM and will convert those LVM into ext3
> and swap respectively.
> I want to break one LVM into 2 one of which I want to populate with a
> root filesystem
> and another with swap.
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>



-- 
Alexander
--
↯    Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/     ↯
↯ Chat (Jabber/Google Talk) ↣ a.skwar@gmail.com , AIM: alexws77  ↯

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-04 19:08           ` Tapas Mishra
  2010-10-04 19:10             ` Tapas Mishra
  2010-10-04 19:57             ` Alexander Skwar
@ 2010-10-05  6:33             ` Stuart D. Gathman
  2 siblings, 0 replies; 27+ messages in thread
From: Stuart D. Gathman @ 2010-10-05  6:33 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, 5 Oct 2010, Tapas Mishra wrote:

> > Hence the question: What filesystem is on this lv?

Whatever filesystem you decide to put there.

> I was searching what is the code 83 corresponds to that I could not find
> because if I remember 83,84 like that it was used for ext3/etx4 but
> when I used cfdisk
> i could not find a hex code corresponding to ext3,ext4.

There are no codes for ext3,ext4.  There is a code for "Linux Fileystem".
Actually, you can put any code you feel like, and put any filesystem
you feel like.  It won't make any difference for creating and
mounting the filesystem.  The codes are strictly for documentation.
In some cases, they are also used for heuristics, like auto starting
raid arrays that are marked with the raid code.

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-05  6:24                 ` Stuart D. Gathman
@ 2010-10-05  7:30                   ` Tapas Mishra
  2010-10-05 14:25                     ` Stuart D. Gathman
  0 siblings, 1 reply; 27+ messages in thread
From: Tapas Mishra @ 2010-10-05  7:30 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Oct 5, 2010 at 11:54 AM, Stuart D. Gathman <stuart@bmsi.com> wrote:
> 3) an "LV" is a Logical Volume. �An advanced user might want to use an
> � LV to simulate a disk, putting a partitional table on it. �Usually
> � this is done by using the LV as a virtual disk for a Virtual Machine,
> � which then partitions and uses the virtual disk as it pleases.
> � You could also use fdisk/parted to partition an LV, and kparted to
> � make the partitions available as separate block devices.

This is exactly what I am looking at.
A tool virt-manager (from Red Hat does that)
how does it do ?
While installing a guest OS in an LVM I do not have to create a swap I
just point to the ISO on my server
and rest is done.
How is that part taken care of does virt-manager do it or the OS which
is being installed some thing from that makes sure that when you are
installing a guest OS in a virtualization environment then in an LVM
it will do.
Because I never needed to create partitions within LVM until I am
doing this setup to clone the LVM on the server to a
USB backup drive.

On Tue, Oct 5, 2010 at 12:02 PM, Alexander Skwar
<alexanders.mailinglists+nospam@gmail.com> wrote:
> hi.
>

>It's also identical, that you only create ONE (1) filesystem on any
>ONE (1) partition or lv. You do *NOT* create two or more filesystems
>on one partition/lv (it's doable, but *EXTREMELY* unusual).
That is exactly what I have to do.

>But that's also outlined in the LVM howto... Chapter 11.
>http://tldp.org/HOWTO/LVM-HOWTO/commontask.html

>You really should read it...
I did read and I could not find what I am trying.Can you exactly say
which point or para you see this being done what I asked?
I am not looking to create PV,VG I am trying to have two partitions
within LVM and then use them to populate with what ever I have.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-05  7:30                   ` Tapas Mishra
@ 2010-10-05 14:25                     ` Stuart D. Gathman
  2010-10-05 15:53                       ` Tapas Mishra
  0 siblings, 1 reply; 27+ messages in thread
From: Stuart D. Gathman @ 2010-10-05 14:25 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: TEXT/PLAIN, Size: 3991 bytes --]

On Tue, 5 Oct 2010, Tapas Mishra wrote:

> On Tue, Oct 5, 2010 at 11:54 AM, Stuart D. Gathman <stuart@bmsi.com> wrote:
> > 3) an "LV" is a Logical Volume. �An advanced user might want to use an
> > � LV to simulate a disk, putting a partitional table on it. �Usually
> > � this is done by using the LV as a virtual disk for a Virtual Machine,
> > � which then partitions and uses the virtual disk as it pleases.
> > � You could also use fdisk/parted to partition an LV, and kparted to
> > � make the partitions available as separate block devices.
> 
> This is exactly what I am looking at.
> A tool virt-manager (from Red Hat does that)
> how does it do ?
> While installing a guest OS in an LVM I do not have to create a swap I
> just point to the ISO on my server
> and rest is done.
> How is that part taken care of does virt-manager do it or the OS which
> is being installed some thing from that makes sure that when you are
> installing a guest OS in a virtualization environment then in an LVM
> it will do.
> Because I never needed to create partitions within LVM until I am
> doing this setup to clone the LVM on the server to a
> USB backup drive.

1) man kpartx

2) "partitions within LVM" doesn't make sense.  LVM is a software package,
   not a storage device, and it doesn't do partitions.
   You probably mean "partitions within an LV".

Here is an example of using kpartx:

# lvcreate -L1G -n test vg_sdg
# fdisk /dev/vg_sdg/test
...
# sfdisk -l /dev/vg_sdg/test

Disk /dev/vg_sdg/test: 130 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
   /dev/vg_sdg/test1          0+     99     100-    803218+  83  Linux
   /dev/vg_sdg/test2        100     129      30     240975   82  Linux swap / Solaris
   /dev/vg_sdg/test3          0       -       0          0    0  Empty
   /dev/vg_sdg/test4          0       -       0          0    0  Empty
# kpartx -l /dev/vg_sdg/test
vg_sdg-test1 : 0 1606437 /dev/vg_sdg/test 63
vg_sdg-test2 : 0 481950 /dev/vg_sdg/test 1606500
# kpartx -av /dev/vg_sdg/test
add map vg_sdg-test1 (253:6): 0 1606437 linear /dev/vg_sdg/test 63
add map vg_sdg-test2 (253:7): 0 481950 linear /dev/vg_sdg/test 1606500
# mke2fs /dev/mapper/vg_sdg-test1
mke2fs 1.41.9 (22-Aug-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
50288 inodes, 200804 blocks
10040 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=209715200
7 block groups
32768 blocks per group, 32768 fragments per group
7184 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840

	Writing inode tables: done                            
	Writing superblocks and filesystem accounting information: done

	This filesystem will be automatically checked every 29 mounts or
	180 days, whichever comes first.  Use tune2fs -c or -i to override.
# mount /dev/mapper/vg_sdg-test1 /mnt/tmp
# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/dm-1             15481840  12143008   2552400  83% /
tmpfs                   512672       404    512268   1% /dev/shm
/dev/sda1               295561     95222    185079  34% /boot
/dev/dm-0             36124288  31419784   2869688  92% /home
/dev/dm-3             10321208   5969640   3827324  61% /video
/dev/sr1                  6828      6828         0 100% /media/U3 System
/dev/sdb1              7837760   2046560   5791200  27% /media/Cruzer
/dev/mapper/vg_sdg-test1
                        790556       808    749588   1% /mnt/tmp


-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-05  5:33                   ` Tapas Mishra
  2010-10-05  6:32                     ` Alexander Skwar
@ 2010-10-05 14:40                     ` Stuart D. Gathman
  1 sibling, 0 replies; 27+ messages in thread
From: Stuart D. Gathman @ 2010-10-05 14:40 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, 5 Oct 2010, Tapas Mishra wrote:

> I want to break one LVM into 2 one of which I want to populate with a
> root filesystem
> and another with swap.

If you want people to understand your questions, stop talk about "one LVM"
as if it was a storage device (virtual or real).  LVM is a software
package, and the objects you manipulate using it include

LV	Logical Volume
PV	Physical Volume
VG	Volume Group

In addition, kpartx creates virtual block devices.

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-05  6:32                     ` Alexander Skwar
@ 2010-10-05 15:41                       ` K. Richard Pixley
  2010-10-05 15:55                         ` Tapas Mishra
  0 siblings, 1 reply; 27+ messages in thread
From: K. Richard Pixley @ 2010-10-05 15:41 UTC (permalink / raw)
  To: LVM general discussion and development

  This isn't right.

What you need to understand is that most file systems in unix and linux 
are built on the concept of a block special device.  A block special 
device is a block based device driver.  A block based device driver can, 
(in the general case), only read and write blocks from it's associated 
device, but it can do so in random order.  (As distinct from a character 
special device which, in the general case, can only read and write 
sequential characters like /dev/tty, (although blocking may be supplied 
by the device driver))

You can mkfs any block special device.  You can also use block special 
devices without using mkfs as sequential access devices and write 
whatever you want to them directly, although you'll need to use a 
blocking program like dd or tar in order to get them written solely in 
blocks.  In the past this was used for writing to sequential block 
devices like tape drives.

Many physical devices come from the vendor with block special devices.  
This includes disk drives, floppy disks, optical drives, and things that 
mimic disk drives like some types of solid state storage.

There are also games that can be played at the block device level.  Mkfs 
puts a file system on a block special device which allows it to be 
mounted in the systems file name space.  Partitioning allows you to take 
a single block special device and break it up into several smaller block 
special devices, each of which could potentially be used individually in 
any of the ways I've described.

LVM is a way of aggregating block special devices.  That is, it can take 
several block special devices and combine them to produce a single, 
artificial, (in the sense that there is no single associated physical 
device), block special device.  Actually, it creates a pool of blocks 
from which block special devices can be allocated, so there could be 
multiple block special devices allocated from the same pool.  And any of 
these devices could be partitioned or potentially reused in other block 
device manipulations.  LVM is usually used to provide mirroring, 
striping, aggregation, run time relocation, snapshots, or some 
combination of these.

Other available block device manipulations of which I'm aware include 
compression, remote access, fail over fault tolerance, wear leveling, 
load balancing, and the ability to create a block based device using a 
file located on an existing file system.

You don't have to partition a block device before you mkfs it.  You can, 
but you can also just mkfs it.  This is true regardless of whether the 
device is associated with a particular physical device or whether the 
device was created using LVM.

--rich

On 10/4/10 23:32 , Alexander Skwar wrote:
> hi.
>
> You seem to be confused about the steps that are required for
> "getting a directory to store stuff" on Linux. Let me give you a
> basic workflow:
>
> In old fashioned partition setup:
>
> a) Get a storage device (hard disk, SSD, FC, iSCSI, ...)
>   ->  Result: Device "file" like /dev/sda
> b) Split the storage device into chunks of wanted size ("partitions")
>   using tools like fdisk, cfdisk, parted === REQUIRED TO BE DONE!
>   ->  Result: Device "files" like /dev/sda1, /dev/sda3, /dev/sda15
> f) On those partitions, create a filesystem (eg. mkfs.ext3) or swap (mkswap)
> g) Mount
>
> In LVM, you'd do:
>
> a) Get a storage device (hard disk, SSD, FC, iSCSI, ...)
>   ->  Result: Device "file" like /dev/sda
> b) Split the storage device into chunks of wanted size ("partitions")
>   using tools like fdisk, cfdisk, parted === COMPLETELY OPTIONAL!
>   ->  Result: Device "files" like /dev/sda1, /dev/sda3, /dev/sda15
> c) "Declare" the "storage spot" (/dev/sda, /dev/sda3, ...) as physical
>   volumes (pv) using pvcreate
> d) Create a volume group (vg), using this/these pv(s)
> e) On a vg, create logical volumes (lv) using lvcreate
> f) On these/this lv, create a filesystem (eg. mkfs.ext3) or swap (mkswap)
> g) mount
>
> Steps a), f) and g) are identical in old fashioned way and LVM. Step
> b) is required in partitioning way and optional in LVM setup.
>
> It's also identical, that you only create ONE (1) filesystem on any
> ONE (1) partition or lv. You do *NOT* create two or more filesystems
> on one partition/lv (it's doable, but *EXTREMELY* unusual).
>
> But that's also outlined in the LVM howto... Chapter 11.
> http://tldp.org/HOWTO/LVM-HOWTO/commontask.html
>
> You really should read it...
>
> Alexander
>
> 2010/10/5 Tapas Mishra<mightydreams@gmail.com>:
>> On Tue, Oct 5, 2010 at 9:01 AM, Ray Morris<support@bettercgi.com>  wrote:
>>> partitions, just like any other block device.
>>> Preferably use parted as opposed to fdisk, as
>>> fdisk can support only up to 2 TB.
>> You mean to say within the LVM if I use parted that way I will be able
>> to create two different filesystems existing together.
>> Until now what ever I came across internet is mkfs.ext3 and mkswapfs but
>> they work on two different LVM and will convert those LVM into ext3
>> and swap respectively.
>> I want to break one LVM into 2 one of which I want to populate with a
>> root filesystem
>> and another with swap.
>>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm@redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>
>
>

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-05 14:25                     ` Stuart D. Gathman
@ 2010-10-05 15:53                       ` Tapas Mishra
  0 siblings, 0 replies; 27+ messages in thread
From: Tapas Mishra @ 2010-10-05 15:53 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Oct 5, 2010 at 7:55 PM, Stuart D. Gathman <stuart@bmsi.com> wrote:
> On Tue, 5 Oct 2010, Tapas Mishra wrote:
>
>> On Tue, Oct 5, 2010 at 11:54 AM, Stuart D. Gathman <stuart@bmsi.com> wrote:
>> > 3) an "LV" is a Logical Volume. �An advanced user might want to use an
>> > � LV to simulate a disk, putting a partitional table on it. �Usually
>> > � this is done by using the LV as a virtual disk for a Virtual Machine,
>> > � which then partitions and uses the virtual disk as it pleases.
>> > � You could also use fdisk/parted to partition an LV, and kparted to
>> > � make the partitions available as separate block devices.
>>
>> This is exactly what I am looking at.
>> A tool virt-manager (from Red Hat does that)
>> how does it do ?
>> While installing a guest OS in an LVM I do not have to create a swap I
>> just point to the ISO on my server
>> and rest is done.
>> How is that part taken care of does virt-manager do it or the OS which
>> is being installed some thing from that makes sure that when you are
>> installing a guest OS in a virtualization environment then in an LVM
>> it will do.
>> Because I never needed to create partitions within LVM until I am
>> doing this setup to clone the LVM on the server to a
>> USB backup drive.
>
> 1) man kpartx
>
> 2) "partitions within LVM" doesn't make sense. �LVM is a software package,
> � not a storage device, and it doesn't do partitions.
> � You probably mean "partitions within an LV".
>
> Here is an example of using kpartx:
>
> # lvcreate -L1G -n test vg_sdg
> # fdisk /dev/vg_sdg/test
> ...
> # sfdisk -l /dev/vg_sdg/test
>
> Disk /dev/vg_sdg/test: 130 cylinders, 255 heads, 63 sectors/track
> Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
>
> � Device Boot Start � � End � #cyls � �#blocks � Id �System
> � /dev/vg_sdg/test1 � � � � �0+ � � 99 � � 100- � �803218+ �83 �Linux
> � /dev/vg_sdg/test2 � � � �100 � � 129 � � �30 � � 240975 � 82 �Linux swap / Solaris
> � /dev/vg_sdg/test3 � � � � �0 � � � - � � � 0 � � � � �0 � �0 �Empty
> � /dev/vg_sdg/test4 � � � � �0 � � � - � � � 0 � � � � �0 � �0 �Empty
> # kpartx -l /dev/vg_sdg/test
> vg_sdg-test1 : 0 1606437 /dev/vg_sdg/test 63
> vg_sdg-test2 : 0 481950 /dev/vg_sdg/test 1606500
> # kpartx -av /dev/vg_sdg/test
> add map vg_sdg-test1 (253:6): 0 1606437 linear /dev/vg_sdg/test 63
> add map vg_sdg-test2 (253:7): 0 481950 linear /dev/vg_sdg/test 1606500
> # mke2fs /dev/mapper/vg_sdg-test1
> mke2fs 1.41.9 (22-Aug-2009)
> Filesystem label=
> OS type: Linux
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> 50288 inodes, 200804 blocks
> 10040 blocks (5.00%) reserved for the super user
> First data block=0
> Maximum filesystem blocks=209715200
> 7 block groups
> 32768 blocks per group, 32768 fragments per group
> 7184 inodes per group
> Superblock backups stored on blocks:
> � � � �32768, 98304, 163840
>
> � � � �Writing inode tables: done
> � � � �Writing superblocks and filesystem accounting information: done
>
> � � � �This filesystem will be automatically checked every 29 mounts or
> � � � �180 days, whichever comes first. �Use tune2fs -c or -i to override.
> # mount /dev/mapper/vg_sdg-test1 /mnt/tmp
> # df
> Filesystem � � � � � 1K-blocks � � �Used Available Use% Mounted on
> /dev/dm-1 � � � � � � 15481840 �12143008 � 2552400 �83% /
> tmpfs � � � � � � � � � 512672 � � � 404 � �512268 � 1% /dev/shm
> /dev/sda1 � � � � � � � 295561 � � 95222 � �185079 �34% /boot
> /dev/dm-0 � � � � � � 36124288 �31419784 � 2869688 �92% /home
> /dev/dm-3 � � � � � � 10321208 � 5969640 � 3827324 �61% /video
> /dev/sr1 � � � � � � � � �6828 � � �6828 � � � � 0 100% /media/U3 System
> /dev/sdb1 � � � � � � �7837760 � 2046560 � 5791200 �27% /media/Cruzer
> /dev/mapper/vg_sdg-test1
> � � � � � � � � � � � �790556 � � � 808 � �749588 � 1% /mnt/tmp
I was about to reply but you posted it first.
By  the time  your message came I had been able to do it by steps
similar to what you mentioned above.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-05 15:41                       ` K. Richard Pixley
@ 2010-10-05 15:55                         ` Tapas Mishra
  2010-10-05 15:56                           ` Tapas Mishra
  0 siblings, 1 reply; 27+ messages in thread
From: Tapas Mishra @ 2010-10-05 15:55 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Oct 5, 2010 at 9:11 PM, K. Richard Pixley <rich@noir.com> wrote:
> �This isn't right.
Why?
I used virt-manager and it does that.
Check this link from Red Hats forum
http://www.redhat.com/archives/linux-lvm/2010-October/msg00024.html
this is what I am trying.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [linux-lvm] mounting a filesystem on LVM2
  2010-10-05 15:55                         ` Tapas Mishra
@ 2010-10-05 15:56                           ` Tapas Mishra
  0 siblings, 0 replies; 27+ messages in thread
From: Tapas Mishra @ 2010-10-05 15:56 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Oct 5, 2010 at 9:25 PM, Tapas Mishra <mightydreams@gmail.com> wrote:
> On Tue, Oct 5, 2010 at 9:11 PM, K. Richard Pixley <rich@noir.com> wrote:
>> �This isn't right.
> Why?
> I used virt-manager and it does that.
> Check this link from Red Hats forum
> http://www.redhat.com/archives/linux-lvm/2010-October/msg00024.html
> this is what I am trying.
Also check this link
https://www.redhat.com/archives/virt-tools-list/2010-October/msg00011.html

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2010-10-05 16:05 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-04  8:02 [linux-lvm] mounting a filesystem on LVM2 Tapas Mishra
2010-10-04 14:46 ` Phillip Susi
2010-10-04 15:06   ` Tapas Mishra
2010-10-04 15:32     ` Tapas Mishra
2010-10-04 15:37     ` Ray Morris
2010-10-04 16:37     ` Alexander Skwar
2010-10-04 17:33       ` Tapas Mishra
2010-10-04 18:30         ` Alexander Skwar
2010-10-04 19:08           ` Tapas Mishra
2010-10-04 19:10             ` Tapas Mishra
2010-10-04 19:20               ` Tapas Mishra
2010-10-04 19:57             ` Alexander Skwar
2010-10-05  2:40               ` Tapas Mishra
2010-10-05  3:31                 ` Ray Morris
2010-10-05  5:33                   ` Tapas Mishra
2010-10-05  6:32                     ` Alexander Skwar
2010-10-05 15:41                       ` K. Richard Pixley
2010-10-05 15:55                         ` Tapas Mishra
2010-10-05 15:56                           ` Tapas Mishra
2010-10-05 14:40                     ` Stuart D. Gathman
2010-10-05  6:24                 ` Stuart D. Gathman
2010-10-05  7:30                   ` Tapas Mishra
2010-10-05 14:25                     ` Stuart D. Gathman
2010-10-05 15:53                       ` Tapas Mishra
2010-10-05  6:33             ` Stuart D. Gathman
2010-10-04 20:03     ` Phillip Susi
2010-10-05  2:30       ` Tapas Mishra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).