everytime i boot up I have to:
vgscan
mount -a
what is the command to get suse to automatically run vgscan at boot?
everytime i boot up I have to:
what is the command to get suse to automatically run vgscan at boot?
The script /etc/init.d/boot.d/boot.lvm references a variable set in /etc/sysconfig/lvm, which enables boot time scanning for VG’s.
These sysconfig variables are generally set by YaST, so the safest way to enable it is normally there, unless you know what you’re doing
Thanks.
Do I need the quotation marks? eg
LVM_VGS_ACTIVATED_ON_BOOT="yes"
I have tried:
LVM_VGS_ACTIVATED_ON_BOOT=""
LVM_VGS_ACTIVATED_ON_BOOT=“yes”
LVM_VGS_ACTIVATED_ON_BOOT=“Data”
LVM_VGS_ACTIVATED_ON_BOOT=Data
They all result in the below happening:
linux-qu47 ~ # mount -a
mount: special device UUID=0a18d897-0aab-4098-a711-12f5f8c943c9 does not exist
linux-qu47 ~ # vgdisplay
— Volume group —
VG Name Data
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 1008.25 GB
PE Size 256.00 MB
Total PE 4033
Alloc PE / Size 4033 / 1008.25 GB
Free PE / Size 0 / 0
VG UUID uoNp1k-rh2o-SR6i-OLXm-0ybY-KamC-tCFeeN
linux-qu47 ~ # lvdisplay
— Logical volume —
LV Name /dev/Data/lvol0
VG Name Data
LV UUID jGUz3g-UGeS-avSu-cgBR-tJ62-t2Xf-KQY0yJ
LV Write Access read/write
LV Status NOT available
LV Size 1008.25 GB
Current LE 4033
Segments 2
Allocation inherit
Read ahead sectors auto
linux-qu47 ~ # ls -la /dev/Data/lvol0
ls: cannot access /dev/Data/lvol0: No such file or directory
linux-qu47 ~ # vgscan
Reading all physical volumes. This may take a while…
Found volume group “Data” using metadata type lvm2
linux-qu47 ~ # mount -a
linux-qu47 ~ # ls -la /dev/Data/lvol0
lrwxrwxrwx 1 root root 22 Nov 14 15:02 /dev/Data/lvol0 -> /dev/mapper/Data-lvol0
anyone with any ideas?