Error::::
[root@pg ~]# pvcreate /dev/sdb /dev/sdc
Device /dev/sdb not found (or ignored by filtering).
Device /dev/sdc not found (or ignored by filtering).
(parted) print all
Model: HP LOGICAL VOLUME (scsi)
Disk /dev/sda: 300GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 2149MB 2147MB primary linux-swap(v1)
2 2149MB 300GB 298GB primary ext4 boot
Model: HP LOGICAL VOLUME (scsi)
Disk /dev/sdb: 36.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
Model: HP LOGICAL VOLUME (scsi)
Disk /dev/sdc: 36.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
Solution:
[root@lrsxfcp29112 ~]# parted
GNU Parted 2.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) select /dev/sdc
Using /dev/sdc
(parted) mklabel loop
Warning: The existing disk label on /dev/sdc will be destroyed and all data on this disk
will be lost. Do you want to continue?
Yes/No? y
(parted) q
Information: You may need to update /etc/fstab.
[root@lrsxfcp29112 ~]# pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created
[root@lrsxfcp29112 ~]# pvcreate /dev/sdc
Physical volume "/dev/sdc" successfully created
Monday, August 31, 2015
Tuesday, July 28, 2015
Pioneer VSX-822, ARC and Samsung UN55en7100
Problem: I want to play my pictures slideshow on my TV, also like to play my favorite songs in the background using the receiver (with external speakers). I start my slideshow using xbox which is connected to game port on the receiver. Now, I try to start my music using receiver, it changes the video output on TV.
Connect TV ARC hdmi port -----------> (PIONEER VSX-822 ) RECEIVER OUT hdmi port
For example: if you want to use Samsung picture app to connect to media server ( NAS/PC where ever you have your pictures stored). Start samsung picture app, connect to storage and start the slide show. Once you have the slide show on the TV.
Use Pioneer Receiver iphone app to connect to media server and choose the song to play.
** Samsung UN55D7000 series picture app doesn't play picture 24 mega pixel, that's why I have to switch to some thing better.
Now, I want to use xbox to display my pictures with music in background.
By the way xbox display is just fantastic, I tried plex media app, roku media player etc. but nothing like xbox quality.
One problem with Xbox is you have start the music before you start the picture slide show, and also you cannot change the songs once you start the slide show.
Now the problem, xbox is connected to game port on Receiver.
Connect TV ARC port -----------> (PIONEER VSX-822 )RECEIVER OUT hdmi port
XBOX --------> RECEIVER (game port)
Whenever you start Pioneer iphone app to connect to media server, it switches the video output on the receiver to media server.
Here is how it works:
Connect TV ARC port -----------> (PIONEER VSX-822 )RECEIVER OUT hdmi port
XBOX --------> TV (hdmi port)
Bottom line once you enable ARC on the Receiver and connected to TV ARC hdmi port correctly all the device you connect to TV will pass thru the audio using the Receiver.
And if you choose to change the mode in the receiver to media server it will not change the video output on the TV
Wednesday, July 1, 2015
Cron error
Error in cron log
tail -f /var/log/cron
Dec 3 00:21:01 lfvsfcp25961 crond[19203]: (root) CMD (/home/root/backup/backup.sh backup.pg.com)
Dec 3 00:23:01 lfvsfcp25961 crond[24488]: (root) CMD (rsync -av --progress --inplace -e "ssh -i /home/root/.ssh/backup_rsa -q -c arcfour" /data/backups/`date +")
actual cron entry
23 00 * * * rsync -av --progress --inplace -e "ssh -i /home/root/.ssh/backup_rsa -q -c arcfour" /data/backups/`date +"%Y%m"`* root@backup.pg.com:/data/backup/backups > /tmp/sync.log
Fix:
escape the % signs. They have a special meaning in crontabs:
man (5) crontab:
Percent-signs (%) in the command, unless escaped with backslash (\),
will be changed into newline characters, and all data after the
first % will be sent to the command as standard input.
23 00 * * * rsync -av --progress --inplace -e "ssh -i /home/root/.ssh/backup_rsa -q -c arcfour" /data/backups/`date +"\%\Y\%m"`* root@backup.pg.com:/data/backup/backups > /tmp/sync.log
tail -f /var/log/cron
Dec 3 00:21:01 lfvsfcp25961 crond[19203]: (root) CMD (/home/root/backup/backup.sh backup.pg.com)
Dec 3 00:23:01 lfvsfcp25961 crond[24488]: (root) CMD (rsync -av --progress --inplace -e "ssh -i /home/root/.ssh/backup_rsa -q -c arcfour" /data/backups/`date +")
actual cron entry
23 00 * * * rsync -av --progress --inplace -e "ssh -i /home/root/.ssh/backup_rsa -q -c arcfour" /data/backups/`date +"%Y%m"`* root@backup.pg.com:/data/backup/backups > /tmp/sync.log
Fix:
escape the % signs. They have a special meaning in crontabs:
man (5) crontab:
Percent-signs (%) in the command, unless escaped with backslash (\),
will be changed into newline characters, and all data after the
first % will be sent to the command as standard input.
23 00 * * * rsync -av --progress --inplace -e "ssh -i /home/root/.ssh/backup_rsa -q -c arcfour" /data/backups/`date +"\%\Y\%m"`* root@backup.pg.com:/data/backup/backups > /tmp/sync.log
Thursday, April 30, 2015
(CRON) ERROR chdir failed (/bin/bash): Not a directory
check /etc/passwd for typo :-(
# cat /etc/passwd
pg:x:100:100:pankaj gautam/pankaj:/bin/tcsh
# cat /etc/passwd ( : missing in root user home /root)
pg:x:100:100:pankaj gautam:/pankaj:/bin/tcsh
# cat /etc/passwd
pg:x:100:100:pankaj gautam/pankaj:/bin/tcsh
# cat /etc/passwd ( : missing in root user home /root)
pg:x:100:100:pankaj gautam:/pankaj:/bin/tcsh
Subscribe to:
Posts (Atom)
