RedHat LVM Error


Trivia Category: Science: Computers
Difficulty: Easy
The Windows 7 operating system has six main editions.
True or False?
Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
# 1  
RedHat LVM Error

hello guys,

I just had some issues with a script it is giving some errors or warning like
Code:
[Ensure that data and catalog directories do not exist on the following logical volumes: [33m[WARN]    LV name root

what do i need to do to remove this directory from the existing logical volume
Thanks

Last edited by vgersh99; 03-04-2019 at 05:34 PM..
# 2  
You should list the exact information about the volumes you are referring to.
# 3  
Code:
root@NRCADR IMDataRepository_vertica9]# vgs
  VG   #PV #LV #SN Attr   VSize  VFree
  rhel   1   5   0 wz--n- 58.00g 4.00m

*******************************************************************************************
*******************************************************************************************

[root@NRCADR IMDataRepository_vertica9]# fdisk -l

Disk /dev/sda: 68.7 GB, 68719476736 bytes, 134217728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b45d6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200   123748351    60824576   8e  Linux LVM

Disk /dev/mapper/rhel-root: 17.2 GB, 17179869184 bytes, 33554432 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/rhel-swap: 2147 MB, 2147483648 bytes, 4194304 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/rhel-home: 17.2 GB, 17179869184 bytes, 33554432 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/rhel-var: 17.2 GB, 17179869184 bytes, 33554432 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/rhel-tmp: 8589 MB, 8589934592 bytes, 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

*******************************************************************************************
*******************************************************************************************

[root@NRCADR IMDataRepository_vertica9]# lvs
  LV   VG   Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home rhel -wi-ao---- 16.00g
  root rhel -wi-ao---- 16.00g
  swap rhel -wi-ao----  2.00g
  tmp  rhel -wi-ao----  8.00g
  var  rhel -wi-ao---- 16.00g

*******************************************************************************************
*******************************************************************************************

[root@NRCADR IMDataRepository_vertica9]# df -h
Filesystem             Size  Used Avail Use% Mounted on
/dev/mapper/rhel-root   16G  8.1G  6.8G  55% /
devtmpfs               5.8G     0  5.8G   0% /dev
tmpfs                  5.8G   88K  5.8G   1% /dev/shm
tmpfs                  5.8G   17M  5.8G   1% /run
tmpfs                  5.8G     0  5.8G   0% /sys/fs/cgroup
/dev/sda1              976M  143M  767M  16% /boot
/dev/mapper/rhel-tmp   7.8G  1.1G  6.4G  14% /tmp
/dev/mapper/rhel-var    16G  543M   15G   4% /var
/dev/mapper/rhel-home   16G   45M   15G   1% /home
tmpfs                  1.2G   36K  1.2G   1% /run/user/0
/dev/sr0               3.6G  3.6G     0 100% /run/media/root/RHEL-7.3 Server.x86_64

*******************************************************************************************
*******************************************************************************************

[root@NRCADR IMDataRepository_vertica9]# file -sL /dev/mapper/rhel-root
/dev/mapper/rhel-root: Linux rev 1.0 ext4 filesystem data, UUID=709c82ab-9f8b-41e4-a4d0-e81c74c1a66b (needs journal recovery) (extents) (64bit) (large files) (huge files)

thanks
# 4  
Has this box been abruptly powered off (power failure or kernel panic ?)

That would be the reason for error regarding journal recovery.
Course of action would be to boot rescue / live, active the root volume group and run a fsck on root logical volume.

Or do a clean reboot, and it should run fsck automatically during boot.

As for the error in the first post, well, looks like data and catalog directories of <insert application> exist, so you need to delete those before rerun.

Hope that helps
Regards
Peasant.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

10 More Discussions You Might Find Interesting

1. Red Hat

Redhat Linux xinetd error

Dear all, I am reciving the following error in the /var/log/messages of my system Jul 18 11:14:27 airtest xinetd: START: echo-dgram pid=0 from=::ffff:XX.XX.XX.X Jul 18 11:14:27 airtest xinetd: START: echo-dgram pid=0 from=::ffff:XX.XX.XX.X Jul 18 11:19:17 airtest xinetd: START: echo-dgram... (1 Reply)
Discussion started by: pistachio
1 Replies

2. UNIX for Advanced & Expert Users

Sort command results are different in Redhat 4 vs Redhat 5

Hi, I am having a text file with the following contents ########### File1 ########### some page1.txt text page.txt When I sort this file on Red Hat 5, then I get the following output ########### File1 ########### page1.txt page.txt some (3 Replies)
Discussion started by: sarbjit
3 Replies

3. UNIX for Dummies Questions & Answers

check 1 lvm for error

i have several lv (data , data1 , data2) under same volume group, i just want to test 1 lv for data errors is that possible? this test all sdc disk , but i just want to test lv_data smartctl -a /dev/sdc because lv_data2 is corrupt , but i don't know if this lv uses sdc disk (1 Reply)
Discussion started by: prpkrk
1 Replies

4. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

5. Red Hat

Redhat cluster error

hi all , I'm trying for the Red-hat cluster setup with the ' Enable shared storage support'. But hang up with a error that "Packages of set "Clustered Storage" are not present in any available repository". I made this setup by installing the rpm manually..I ve attached the rpm list and error... (0 Replies)
Discussion started by: sriniv666
0 Replies

6. Red Hat

Error restarting autofs in RedHat

Hi Expert, I am trying to restart automount as it's consume much CPU. Tasks: 2392 total, 7 running, 2352 sleeping, 25 stopped, 8 zombie Cpu(s): 9.3% us, 28.5% sy, 0.0% ni, 61.5% id, 0.2% wa, 0.2% hi, 0.2% si Mem: 15799928k total, 11029764k used, 4770164k free, 162424k buffers Swap: 22773752k... (2 Replies)
Discussion started by: regmaster
2 Replies

7. HP-UX

How to reduce LVM to create another LVM

Hi, I'm new to HP-UX. I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3 Thanks (4 Replies)
Discussion started by: lamoul
4 Replies

8. Red Hat

Dns configuration error in Redhat

Dear All I want to configure DNS in redhat linux. i am following these steps but when i restart the services it is showing status failed. Please any body can help me on urgent basis. #service named restart Stopping named: Starting named: ---------Edited in named.conf... (2 Replies)
Discussion started by: sahu.tapan
2 Replies

9. UNIX for Dummies Questions & Answers

LyX-1.4.3 compiler error on redhat-7.3

Hi There, I'm trying to install LyX 1.4.3 on a machine running Redhat 7.3. I can't upgrade the OS since I don't have root, but I've been given permission to install sw into pkgs by the Sys Admins. ./configure using the Qt frontend worked, but when I then enter make I get: make: Entering... (3 Replies)
Discussion started by: dirgni
3 Replies

10. UNIX for Dummies Questions & Answers

mysql installation error using redhat 7.2

i am a newbie to unix admin stuff so bare with me. -- i get this message when executing mysql_install_db during the installation of mysql. what is the cause of this and how can it be fixed. btw - i have tried installing as root and other accounts also. scripts/mysql_install_db:... (6 Replies)
Discussion started by: theDirtiest
6 Replies

Featured Tech Videos