ClearFoundation Tracker - ClearOS
View Issue Details
0002227ClearOSapp-storage - Storagepublic2015-02-25 15:202021-01-18 05:23
taryck 
 
normaltweakalways
closedwon't fix 
6.5.0 
 
0002227: Storage Manager do not detect Physical Volume from LVM when directly mounted
Storage manager seems to detect only partition on disk or formated disk.
Like described in the documentation digest below :

Before we can enable the Storage Manager, we need to first format and mount the data drive. Following the example in the above screenshot, the /dev/sdc drive is formatted using the following command: mkfs.ext4 /dev/sdX
Feel free to partition the disk, use LVM tools, etc. The only requirement is to have a mounted disk for data. The next step is to create the /etc/fstab entry to mount the new disk to /store:
/dev/sdc /store ext4 defaults 1 2
And then mount /store: mount /store

but when disk is directly added to pvs of LVM nothing is detected and disk is sugested to partition creation allowing to destroy the LVM physical volume.
install Storage Manager
add new disk to system
call "pvcreate /dev/sdX"
Go to webconfig of Storage manager
/dev/sdX is not detected as used and create partition is proposed
Should make a pvs call to check is disk is used or not before offering to create partition.
Partition creation should be and otion that could be disabled in /etc/clearos/storage.conf
No tags attached.
Issue History
2015-02-25 15:20taryckNew Issue
2015-02-25 15:58taryckNote Added: 0001378
2015-04-20 07:47user2Note Added: 0001461
2015-04-20 07:47user2Severitymajor => tweak
2015-04-20 07:47user2Statusnew => confirmed
2021-01-18 05:23NickHNote Added: 0015201
2021-01-18 05:23NickHStatusconfirmed => closed
2021-01-18 05:23NickHResolutionopen => won't fix

Notes
(0001378)
taryck   
2015-02-25 15:58   
or use blkid
[root@home etc]# blkid
/dev/sda: UUID="xxxx" TYPE="LVM2_member"
/dev/sdb: UUID="xxxx" TYPE="LVM2_member"
/dev/sdc: UUID="xxxx" TYPE="LVM2_member"
/dev/sdd: UUID="xxxx" TYPE="LVM2_member"
/dev/sde: UUID="xxxx" TYPE="LVM2_member"
/dev/sdf: UUID="xxxx" TYPE="LVM2_member"
/dev/sdg: UUID="xxxx" TYPE="LVM2_member"
/dev/sdn1: UUID="xxxx" TYPE="ext4"
/dev/sdn2: UUID="xxxx" TYPE="ext4"
/dev/sdn3: UUID="xxxx" TYPE="ext4"
/dev/sdn4: LABEL="swap" UUID="xxxx" TYPE="swap"
/dev/sdo1: LABEL="VMwareActive" UUID="xxxx" TYPE="ext4"
/dev/sdp1: LABEL="Home" UUID="xxxx" TYPE="ext4"
/dev/sdh: UUID="xxxx" TYPE="LVM2_member"
/dev/sdi: UUID="xxxx" TYPE="LVM2_member"
/dev/sdj: UUID="xxxx" TYPE="LVM2_member"
/dev/sdk: UUID="xxxx" TYPE="LVM2_member"
/dev/sdl: UUID="xxxx" TYPE="LVM2_member"
/dev/mapper/My_Group_1-My--Raid1_mimage_0: LABEL="TEST_R1" UUID="xxxx" TYPE="ext4"
/dev/mapper/My_Group_1-My--Raid1_mimage_1: LABEL="TEST_R1" UUID="xxxx" TYPE="ext4"
/dev/mapper/My_Group_1-My--Raid1: LABEL="TEST_R1" UUID="xxxx" TYPE="ext4"
/dev/mapper/My_Group_1-copy_HS: LABEL="TEST_R1" UUID="xxxx" TYPE="ext4"
/dev/mapper/My_Group_A-Save: LABEL="Save_Part" UUID="xxxx" TYPE="ext4"
/dev/mapper/My_Group_A-Store: LABEL="Film_Part" UUID="xxxx" TYPE="ext4"

Here /dev/sdm is free to create partition
(0001461)
user2   
2015-04-20 07:47   
Though the Storage Manager is available via the command line, it is only meant for the ClearOS Amazon EC2 an Linode cloud images. LVM support is not typically used in these environments and not available in the ClearOS cloud images.

We'll add LVM support at some point in the future.
(0015201)
NickH   
2021-01-18 05:23   
Storage Manager has been considerable reworked in 7.x.