Mounting LVM volume from another system

Questions about SNMP, Power, System, Logs, disk, & RAID.
Post Reply
bleeisblee
New here
Posts: 2
Joined: Fri Dec 02, 2022 7:17 pm

Mounting LVM volume from another system

Post by bleeisblee »

Hi all! I am new to QNAP (I have a TS-251D) but quite familiar with general linux admin.

I had an LVM volume spanning 2 USB hard drives on an old system I was using as an makeshift NAS. I would like to mount this LVM onto QNAP only temporarily to move the files, but I cant seem to import the LVM.

Here is the LVM exported on the old system:

Code: Select all

[root@ctr200 ~]# pvscan
  PV /dev/sdc    is in exported VG LVMStorage [<9.10 TiB / 0    free]
  PV /dev/sdb    is in exported VG LVMStorage [<4.55 TiB / 8.56 GiB free]
  Total: 2 [13.64 TiB] / in use: 2 [13.64 TiB] / in no VG: 0 [0   ]
No such luck when the drives are attached to the QNAP, i have "unmounted" them from the QNAP web UI as well. vg1 is the native QNAP LVM for reference.

Code: Select all

[~] # pvscan
  PV /dev/drbd1   VG vg1             lvm2 [32.72 TiB / 0    free]
  Total: 1 [32.72 TiB] / in use: 1 [32.72 TiB] / in no VG: 0 [0   ]
Any ideas? How have other people moved large amounts of data onto their new shiny QNAP? :D

Thanks all!
User avatar
Gaudi
Easy as a breeze
Posts: 406
Joined: Thu Mar 04, 2010 10:47 pm

Re: Mounting LVM volume from another system

Post by Gaudi »

Hi, why don’t you restore the data from your backup?

If you don’t have a backup, then next best thing to do will be mount the drives in your former system and copy the data. Then do a backup.

Fiddling around with a raid volume from QNAP cli may end in data being lost.

Just play safe.

And keep backups at all time. Specially when you are playing around with commands on a “non standard” Linux.

Regards
bleeisblee
New here
Posts: 2
Joined: Fri Dec 02, 2022 7:17 pm

Re: Mounting LVM volume from another system

Post by bleeisblee »

I know I’m coloring outside the lines, but it’s such a large amount of data I was hoping to make it go faster, haha.

At this stage I think I’m stuck so that’s my only option
Post Reply

Return to “System & Disk Volume Management”